catboost: use llvm 14 for cuda (#333562)
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
gitUpdater,
|
||||
cudaSupport ? config.cudaSupport,
|
||||
cudaPackages ? { },
|
||||
llvmPackages_12,
|
||||
llvmPackagesCuda ? llvmPackages,
|
||||
pythonSupport ? false,
|
||||
}:
|
||||
let
|
||||
@@ -93,7 +93,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
# catboost requires clang 14+ for build, but does clang 12 for cuda build.
|
||||
# after bumping the default version of llvm, check for compatibility with the cuda backend and pin it.
|
||||
# see https://catboost.ai/en/docs/installation/build-environment-setup-for-cmake#compilers,-linkers-and-related-tools
|
||||
CUDAHOSTCXX = lib.optionalString cudaSupport "${llvmPackages_12.stdenv.cc}/bin/cc";
|
||||
CUDAHOSTCXX = lib.optionalString cudaSupport "${llvmPackagesCuda.stdenv.cc}/bin/cc";
|
||||
NIX_CFLAGS_LINK = lib.optionalString stdenv.hostPlatform.isLinux "-fuse-ld=lld";
|
||||
NIX_LDFLAGS = "-lc -lm";
|
||||
NIX_CFLAGS_COMPILE = toString (
|
||||
|
||||
@@ -8526,6 +8526,7 @@ with pkgs;
|
||||
catboost = callPackage ../by-name/ca/catboost/package.nix {
|
||||
# https://github.com/catboost/catboost/issues/2540
|
||||
cudaPackages = cudaPackages_11;
|
||||
llvmPackagesCuda = llvmPackages_14;
|
||||
};
|
||||
|
||||
cctag = callPackage ../development/libraries/cctag {
|
||||
|
||||
Reference in New Issue
Block a user