Unverified Commit 7036be80 authored by Vladimír Čunát's avatar Vladimír Čunát Committed by GitHub
Browse files

[staging-next] Reapply "onnxruntime,python3.pkgs.onnxruntime: fix runtime w/ glibc-2.42" (#482435)

parents 521f37c1 e50b4054
Loading
Loading
Loading
Loading
+22 −20
Original line number Diff line number Diff line
@@ -317,8 +317,10 @@ effectiveStdenv.mkDerivation (finalAttrs: {
    (lib.cmakeBool "onnxruntime_USE_COMPOSABLE_KERNEL_CK_TILE" false)
  ];

  env =
    lib.optionalAttrs rocmSupport {
  env = {
    NIX_LDFLAGS = "-z,noexecstack";
  }
  // lib.optionalAttrs rocmSupport {
    MIOPEN_PATH = rocmPackages.miopen;
    # HIP steps fail to find ROCm libs when not in HIPFLAGS, causing
    # fatal error: 'rocrand/rocrand.h' file not found
+4 −0
Original line number Diff line number Diff line
@@ -38,6 +38,10 @@ buildPythonPackage {
    chmod +w dist
  '';

  env = {
    NIX_LDFLAGS = "-z,noexecstack";
  };

  nativeBuildInputs = lib.optionals stdenv.hostPlatform.isLinux [ autoPatchelfHook ];

  # This project requires fairly large dependencies such as sympy which we really don't always need.