xgboost: GCC 8+ required (#32282)

This commit is contained in:
Adam J. Stewart 2022-08-22 08:48:18 -07:00 committed by GitHub
parent 72b133a875
commit 177e2e2672
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,6 +39,8 @@ class Xgboost(CMakePackage, CudaPackage):
depends_on("llvm-openmp", when="%apple-clang +openmp")
depends_on("hwloc", when="%clang")
# https://github.com/dmlc/xgboost/issues/6972
conflicts("%gcc@:7", when="+cuda")
conflicts("%gcc@:4", msg="GCC version must be at least 5.0!")
conflicts("+nccl", when="~cuda", msg="NCCL requires CUDA")
conflicts("+cuda", when="~openmp", msg="CUDA requires OpenMP")