Skip to content
Snippets Groups Projects
Commit 06b26a77 authored by Abhishek Yenpure's avatar Abhishek Yenpure Committed by Lucas Givord
Browse files

Fixing Kokkos relocatable device code error with desul atomics

(cherry picked from commit f47258be)
parent 0fad4d1f
No related branches found
No related tags found
No related merge requests found
......@@ -50,15 +50,18 @@ if (TARGET vtkm::cuda)
# individual warning types.
string(APPEND CMAKE_CUDA_FLAGS " -Xnvlink -w")
set_source_files_properties(${device_sources} PROPERTIES LANGUAGE CUDA)
vtk_module_set_properties(VTK::AcceleratorsVTKmCore CUDA_SEPARABLE_COMPILATION ON)
elseif (TARGET vtkm::kokkos_cuda)
string(APPEND CMAKE_CUDA_FLAGS " -Xnvlink -w")
set_source_files_properties(${device_sources} PROPERTIES LANGUAGE CUDA)
kokkos_compilation(SOURCE ${device_sources})
elseif (TARGET vtkm::kokkos_hip)
set_source_files_properties(${device_sources} PROPERTIES LANGUAGE HIP)
kokkos_compilation(SOURCE ${device_sources})
endif ()
if (MSVC)
set(msvc_warning_flags
# Generates numerous false positives with template code about unreachable
......
......@@ -59,8 +59,10 @@ if (TARGET vtkm::cuda)
set(cuda_impl ${nowrap_sources} vtkmDataSet.cxx)
set_source_files_properties(${cuda_impl} PROPERTIES LANGUAGE CUDA)
vtk_module_set_properties(VTK::AcceleratorsVTKmDataModel
CUDA_SEPARABLE_COMPILATION ON)
if (TARGET vtkm::cuda)
vtk_module_set_properties(VTK::AcceleratorsVTKmDataModel
CUDA_SEPARABLE_COMPILATION ON)
endif()
vtk_module_compile_options(VTK::AcceleratorsVTKmDataModel
PUBLIC $<$<COMPILE_LANGUAGE:CUDA>:-Xcudafe --diag_suppress=extra_semicolon>)
......
......@@ -116,8 +116,10 @@ if (TARGET vtkm::cuda)
list(TRANSFORM classes APPEND ".cxx" OUTPUT_VARIABLE cuda_impl)
set_source_files_properties(${cuda_impl} PROPERTIES LANGUAGE CUDA)
vtk_module_set_properties(VTK::AcceleratorsVTKmFilters
CUDA_SEPARABLE_COMPILATION ON)
if (TARGET vtkm::cuda)
vtk_module_set_properties(VTK::AcceleratorsVTKmFilters
CUDA_SEPARABLE_COMPILATION ON)
endif()
vtk_module_compile_options(VTK::AcceleratorsVTKmFilters
PUBLIC $<$<COMPILE_LANGUAGE:CUDA>:-Xcudafe --diag_suppress=extra_semicolon>)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment