-
Notifications
You must be signed in to change notification settings - Fork 94
fix: make install error on ROCm #473
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
Conversation
stotko
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fix! Could you address the two (minor) comments I've left, before this gets merged?
src/stdgpu/CMakeLists.txt
Outdated
| install(FILES "${stdgpu_SOURCE_DIR}/cmake/${STDGPU_BACKEND_DIRECTORY}/determine_thrust_paths.cmake" | ||
| DESTINATION "${STDGPU_CMAKE_INSTALL_DIR}/${STDGPU_BACKEND_DIRECTORY}" | ||
| COMPONENT stdgpu) | ||
| if(STDGPU_BACKEND STREQUAL STDGPU_BACKEND_CUDA) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| if(STDGPU_BACKEND STREQUAL STDGPU_BACKEND_CUDA) | |
| if(NOT STDGPU_BACKEND STREQUAL STDGPU_BACKEND_HIP) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The OpenMP backend also makes use of determine_thrust_paths.cmake, so it's better to check for HIP rather than for CUDA.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK. Thx.
src/stdgpu/CMakeLists.txt
Outdated
| install(FILES "${stdgpu_SOURCE_DIR}/cmake/${STDGPU_BACKEND_DIRECTORY}/determine_thrust_paths.cmake" | ||
| DESTINATION "${STDGPU_CMAKE_INSTALL_DIR}/${STDGPU_BACKEND_DIRECTORY}" | ||
| COMPONENT stdgpu) | ||
| endif() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a newline at the end of the file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK. Thx.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #473 +/- ##
==========================================
+ Coverage 96.64% 96.75% +0.11%
==========================================
Files 33 33
Lines 2622 2622
==========================================
+ Hits 2534 2537 +3
+ Misses 88 85 -3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
stotko
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, LGTM 👍
Fix make install error on ROCm because
hip/determine_thrust_paths.cmakenot exist.The snapshot with error show as below:
