Skip to content

Fix CUDA compilation with Cray Wrappers #416

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

Merged
merged 1 commit into from
Sep 14, 2023
Merged
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
10 changes: 9 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -255,13 +255,21 @@ set(_TILEDARRAY_DEPENDENCIES MADworld TiledArray_Eigen BTAS::BTAS blaspp_headers
# TODO better ways to handle tiledarray cuda dependency
if(CUDA_FOUND)

list(APPEND TILEDARRAY_SOURCE_FILES
set(TILEDARRAY_CUDA_SOURCE_FILES
TiledArray/cuda/btas_um_tensor.cpp
TiledArray/cuda/cpu_cuda_vector.cu
TiledArray/cuda/kernel/mult_kernel.cu
TiledArray/cuda/kernel/reduce_kernel.cu
TiledArray/cuda/um_storage.cu)

list(APPEND TILEDARRAY_SOURCE_FILES "${TILEDARRAY_CUDA_SOURCE_FILES}")

foreach( f IN LISTS TILEDARRAY_CUDA_SOURCE_FILES )
set_source_files_properties( "${f}"
PROPERTIES
INCLUDE_DIRECTORIES "${CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES}")
endforeach()

set_source_files_properties(TiledArray/cuda/btas_um_tensor.cpp
PROPERTIES
LANGUAGE CUDA)
Expand Down