xgboost: disable TestXGBoostLib when cudaSupport
...because the test suite includes .cu files so it won't run in the sandbox, isolated from gpu
This commit is contained in:
parent
13265d3bba
commit
c18e8335e8
|
@ -43,6 +43,12 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
inherit doCheck;
|
inherit doCheck;
|
||||||
|
|
||||||
|
# By default, cmake build will run ctests with all checks enabled
|
||||||
|
# If we're building with cuda, we run ctest manually so that we can skip the GPU tests
|
||||||
|
checkPhase = lib.optionalString cudaSupport ''
|
||||||
|
ctest --force-new-ctest-process ${lib.optionalString cudaSupport "-E TestXGBoostLib"}
|
||||||
|
'';
|
||||||
|
|
||||||
installPhase = let
|
installPhase = let
|
||||||
libname = "libxgboost${stdenv.hostPlatform.extensions.sharedLibrary}";
|
libname = "libxgboost${stdenv.hostPlatform.extensions.sharedLibrary}";
|
||||||
in ''
|
in ''
|
||||||
|
|
Loading…
Reference in a new issue