Skip to content

Commit ca43943

Browse files
authored
CMake: Need to set CUDA ARCH for plotfile tools (#4485)
1 parent 51da623 commit ca43943

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Tools/Plotfile/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ foreach( _exe IN LISTS _exe_names)
2626
target_link_libraries(${_exe} PRIVATE amrex)
2727
if (AMReX_CUDA)
2828
set_source_files_properties(${_exe}.cpp PROPERTIES LANGUAGE CUDA)
29+
set_cuda_architectures(AMReX_CUDA_ARCH)
30+
set_target_properties(${_exe} PROPERTIES CUDA_ARCHITECTURES "${AMREX_CUDA_ARCHS}")
2931
endif()
3032

3133
# Add prefix to each tool's name to make them unique when installed.

0 commit comments

Comments
 (0)