libtorch-bin: fix false CUDA dependency in passthru test
The passthru test used the CUDA toolkit for the CUDA stub unconditionally, also requiring the cudatoolkit derivation when cudaSupport = false.
This commit is contained in:
parent
039101ad94
commit
303977634c
|
@ -42,8 +42,9 @@ in stdenv.mkDerivation {
|
||||||
touch $out
|
touch $out
|
||||||
'';
|
'';
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = lib.optionalString cudaSupport ''
|
||||||
LD_LIBRARY_PATH=${cudaStub}''${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH \
|
LD_LIBRARY_PATH=${cudaStub}''${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH \
|
||||||
./test
|
'' + ''
|
||||||
|
./test
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue