xgboost: disable TestXGBoostLib when cudaSupport

...because the test suite includes .cu files so it won't run in the
sandbox, isolated from gpu
main
Someone Serge 2 years ago
parent 13265d3bba
commit c18e8335e8
No known key found for this signature in database
GPG Key ID: 7B0E3B1390D61DA4
  1. 6
      pkgs/development/libraries/xgboost/default.nix

@ -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…
Cancel
Save