Skip to content
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

Allow multiple CUDA architectures #532

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions src/cuda/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ target_include_directories(cufinufft_common_objects
set_target_properties(
cufinufft_common_objects
PROPERTIES POSITION_INDEPENDENT_CODE ${FINUFFT_SHARED_LINKING}
CUDA_ARCHITECTURES ${FINUFFT_CUDA_ARCHITECTURES}
CUDA_ARCHITECTURES "${FINUFFT_CUDA_ARCHITECTURES}"
CUDA_SEPARABLE_COMPILATION ON
CUDA_STANDARD 17
CUDA_STANDARD_REQUIRED ON)
Expand All @@ -60,7 +60,7 @@ target_include_directories(cufinufft_objects PUBLIC ${CUFINUFFT_INCLUDE_DIRS})
set_target_properties(
cufinufft_objects
PROPERTIES POSITION_INDEPENDENT_CODE ${FINUFFT_SHARED_LINKING}
CUDA_ARCHITECTURES ${FINUFFT_CUDA_ARCHITECTURES}
CUDA_ARCHITECTURES "${FINUFFT_CUDA_ARCHITECTURES}"
CUDA_SEPARABLE_COMPILATION ON
CUDA_STANDARD 17
CUDA_STANDARD_REQUIRED ON)
Expand All @@ -78,12 +78,11 @@ endif()

set_target_properties(
cufinufft
PROPERTIES CUDA_ARCHITECTURES ${FINUFFT_CUDA_ARCHITECTURES}
PROPERTIES CUDA_ARCHITECTURES "${FINUFFT_CUDA_ARCHITECTURES}"
CUDA_SEPARABLE_COMPILATION ON
CUDA_STANDARD 17
CUDA_STANDARD_REQUIRED ON
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
CUDA_ARCHITECTURES ${FINUFFT_CUDA_ARCHITECTURES})
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}")
target_compile_features(cufinufft PRIVATE cxx_std_17)

if(WIN32)
Expand Down
Loading