xgboost: fix cmake for cuda>=11.4
This commit is contained in:
parent
a7bbda4271
commit
325adc9280
1 changed files with 1 additions and 0 deletions
|
@ -33,6 +33,7 @@ stdenv.mkDerivation rec {
|
|||
|
||||
cmakeFlags = lib.optionals doCheck [ "-DGOOGLE_TEST=ON" ]
|
||||
++ lib.optionals cudaSupport [ "-DUSE_CUDA=ON" "-DCUDA_HOST_COMPILER=${cudatoolkit.cc}/bin/cc" ]
|
||||
++ lib.optionals (cudaSupport && lib.versionAtLeast cudatoolkit.version "11.4.0") [ "-DBUILD_WITH_CUDA_CUB=ON" ]
|
||||
++ lib.optionals ncclSupport [ "-DUSE_NCCL=ON" ];
|
||||
|
||||
inherit doCheck;
|
||||
|
|
Loading…
Reference in a new issue