forked from neka-nat/cupoch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
conan: fix custom stdgpu CMake modules
- Loading branch information
Showing
2 changed files
with
3 additions
and
3 deletions.
There are no files selected for viewing
3 changes: 2 additions & 1 deletion
3
third_party/conan-recipes/stdgpu/cmake/stdgpu-dependencies-cuda.cmake
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
# Mimics the behavior of stdgpu-dependencies.cmake exported by stdgpu for the CUDA backend | ||
|
||
find_dependency(CUDAToolkit 11.0 REQUIRED) | ||
|
||
# Using ${stdgpu_LIBRARIES} to allow the target to be renamed using the "cmake_target_name" CMakeDeps property | ||
target_link_libraries(${stdgpu_LIBRARIES} INTERFACE CUDA::cudart) | ||
set_property(TARGET ${stdgpu_LIBRARIES} PROPERTY INTERFACE_LINK_LIBRARIES CUDA::cudart APPEND) | ||
set_property(TARGET ${stdgpu_LIBRARIES} PROPERTY INTERFACE_COMPILE_FEATURES cuda_std_17) |
3 changes: 1 addition & 2 deletions
3
third_party/conan-recipes/stdgpu/cmake/stdgpu-dependencies-hip.cmake
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 |
---|---|---|
@@ -1,9 +1,8 @@ | ||
# Mimics the behavior of stdgpu-dependencies.cmake exported by stdgpu for the HIP backend | ||
|
||
find_dependency(thrust 1.9.9 REQUIRED) | ||
|
||
find_dependency(hip 5.1 REQUIRED) | ||
|
||
# Using ${stdgpu_LIBRARIES} to allow the target to be renamed using the "cmake_target_name" CMakeDeps property | ||
target_link_libraries(${stdgpu_LIBRARIES} INTERFACE hip::host) | ||
set_property(TARGET ${stdgpu_LIBRARIES} PROPERTY INTERFACE_LINK_LIBRARIES hip::host APPEND) | ||
set_property(TARGET ${stdgpu_LIBRARIES} PROPERTY INTERFACE_COMPILE_FEATURES hip_std_17) |