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:
Someone Serge 2022-05-12 13:00:49 +03:00
parent 13265d3bba
commit c18e8335e8
No known key found for this signature in database
GPG key ID: 7B0E3B1390D61DA4

View file

@ -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 ''