Skip to content

xgboost: CMakeLists.txt does not respect CUDA_HOST_COMPILER#217333

Merged
samuela merged 1 commit intoNixOS:masterfrom
ConnorBaker:fix/xgboost-cmake-cuda-compiler
Feb 22, 2023
Merged

xgboost: CMakeLists.txt does not respect CUDA_HOST_COMPILER#217333
samuela merged 1 commit intoNixOS:masterfrom
ConnorBaker:fix/xgboost-cmake-cuda-compiler

Conversation

@ConnorBaker
Copy link
Contributor

@ConnorBaker ConnorBaker commented Feb 20, 2023

Description of changes

XGBoost's CMakeLists.txt does not respect CUDA_HOST_COMPILER, instead using whatever the CXX compiler is. This change ensures the C/CXX compilers are provided by cudatoolkit when CUDA support is enabled.
https://github.com/dmlc/xgboost/blob/ccf43d4ba0a94e2f0a3cc5a526197539ae46f410/CMakeLists.txt#L145

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 23.05 Release Notes (or backporting 22.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

CC @abbradar @nviets

@ConnorBaker
Copy link
Contributor Author

Result of nixpkgs-review pr 217333 run on x86_64-linux 1

1 package built:
  • xgboostWithCuda

@ConnorBaker ConnorBaker marked this pull request as ready for review February 20, 2023 17:11
@ofborg ofborg bot requested review from abbradar and nviets February 20, 2023 17:14
@ofborg ofborg bot added 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. labels Feb 20, 2023
Copy link
Contributor

@nviets nviets left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks - looks good to me

@ConnorBaker ConnorBaker mentioned this pull request Feb 21, 2023
12 tasks
@samuela
Copy link
Member

samuela commented Feb 21, 2023

Result of nixpkgs-review pr 217333 run on x86_64-linux 1

1 package built:
  • xgboostWithCuda

@ConnorBaker ConnorBaker force-pushed the fix/xgboost-cmake-cuda-compiler branch from 2524283 to 85323f3 Compare February 22, 2023 01:30
@ConnorBaker ConnorBaker requested review from samuela and removed request for abbradar February 22, 2023 01:31
@ConnorBaker
Copy link
Contributor Author

Fixed the issue with formatting around the let statement and removed the Stack heading in the OP because it can be merged independently of the others.

@samuela samuela merged commit e475831 into NixOS:master Feb 22, 2023
@ConnorBaker ConnorBaker deleted the fix/xgboost-cmake-cuda-compiler branch February 22, 2023 01:54
@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/tweag-nix-dev-update-45/26397/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants