diff options
| author | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-11-09 22:32:31 +0100 |
|---|---|---|
| committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-11-09 22:32:31 +0100 |
| commit | 2e63c4a31f946a8bafa92c49c1a0a116c0eb6dae (patch) | |
| tree | 9d9b1022350a21d106a954513cc9567fd974e781 /modules/sycl/.nix/derivation.nix | |
| parent | 5c708bb3a0c9faec82a0deb32478370f9d780ea8 (diff) | |
| download | libs-lbm-2e63c4a31f946a8bafa92c49c1a0a116c0eb6dae.tar.gz | |
Fixing rocm up
Diffstat (limited to 'modules/sycl/.nix/derivation.nix')
| -rw-r--r-- | modules/sycl/.nix/derivation.nix | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/modules/sycl/.nix/derivation.nix b/modules/sycl/.nix/derivation.nix index 4422739..bfcb541 100644 --- a/modules/sycl/.nix/derivation.nix +++ b/modules/sycl/.nix/derivation.nix @@ -7,10 +7,12 @@ , forstio , kel , adaptive-cpp +# Names the build so the ROCm and non-ROCm variants land in distinct outputs. +, variant ? "" }: stdenv.mkDerivation { - pname = "${pname}-sycl"; + pname = "${pname}-sycl${variant}"; inherit version; src = ./..; @@ -33,6 +35,11 @@ stdenv.mkDerivation { doCheck = true; checkPhase = '' + # AdaptiveCpp caches JIT output under $HOME, which is /homeless-shelter + # in a nix build. Point it somewhere writable or the tests die before + # running a single case. + export HOME="$TMPDIR" + scons test ./bin/tests ''; |
