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
1 changed files with 6 additions and 0 deletions
|
@ -43,6 +43,12 @@ stdenv.mkDerivation rec {
|
|||
|
||||
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
|
||||
libname = "libxgboost${stdenv.hostPlatform.extensions.sharedLibrary}";
|
||||
in ''
|
||||
|
|
Loading…
Reference in a new issue