-
Notifications
You must be signed in to change notification settings - Fork 363
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
toolchain/sirius: fix CXX_FLAGS override, import patch to fix build i…
…ssues with CUDA with newer NVHPC packages
- Loading branch information
Showing
2 changed files
with
19 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
tools/toolchain/scripts/stage8/sirius-7.3.0-cudatoolkit.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/cmake/cudalibs_target.cmake b/cmake/cudalibs_target.cmake | ||
index 29802dd3..3d4d761b 100644 | ||
--- a/cmake/cudalibs_target.cmake | ||
+++ b/cmake/cudalibs_target.cmake | ||
@@ -1,6 +1,5 @@ | ||
+find_package(CUDAToolkit REQUIRED) | ||
if (NOT TARGET sirius::cudalibs) | ||
add_library(sirius::cudalibs INTERFACE IMPORTED) | ||
- set_target_properties(sirius::cudalibs PROPERTIES | ||
- INTERFACE_INCLUDE_DIRECTORIES "${CUDA_INCLUDE_DIRS}" | ||
- INTERFACE_LINK_LIBRARIES "${CUDA_LIBRARIES};${CUDA_CUBLAS_LIBRARIES};${CUDA_CUFFT_LIBRARIES};${CUDA_cusolver_LIBRARY}") | ||
+ target_link_libraries(sirius::cudalibs INTERFACE CUDA::cudart CUDA::cublas CUDA::cufft CUDA::cusolver) | ||
endif() |