-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
C++ compiler should not be enforced globally #238
Comments
This can be resolved in our build scripts after we update the minimum CMake version to 3.21. |
@mfep Please take a look at this. |
@dmikushin Our libraries are transitioning to better support for cmake's HIP language support. I appreciate your bug report. A fix will be targeted for a future release. |
This item is still in progress. A fix will should appear in a future release. |
Would you just consider making this a warning for now anyway? It's not easy to work around in our builds (a large project supporting multiple GPU/CPU backends). |
When doing
add_subdirectory(ThirdParty/rocThrust)
from a project, rocThrust fails to installrocprim
with the following error message:Please correct me, if I'm wrong: this message requests that the
CMAKE_CXX_COMPILER
must behipcc
. I believe this requirement contradicts with the way how modern CMake is designed. Starting from CMake 3.18/3.23, CUDA and HIP are CMake "languages" that could be enabled with e.g.enable_language(HIP)
. The hipcc compiler is then provided byCMAKE_HIP_COMPILER
, independently of the mainCMAKE_CXX_COMPILER
. Furthermore, CMake chooses the C++ compiler variant, depending on the file extension (.cpp, .cu, .hip, etc.). In order to comply with this flexibility of CMake, rocThrust should not post this error, and instead check forCMAKE_HIP_COMPILER
, and use it internally if it wishes so.The text was updated successfully, but these errors were encountered: