mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-10-05 09:59:12 +00:00
a157c0e846
Some of the unit tests for serial and kokkos are disable for hipcc to properly compile. VTKM_MATH_ASSERT and VTKM_TEST_ASSERT fail to compile with HIP in execution environment so they are disabled with building with HIP. Kokkos::finalize is causing error so it is temporarily disabled.
49 lines
1.6 KiB
CMake
49 lines
1.6 KiB
CMake
##============================================================================
|
|
## Copyright (c) Kitware, Inc.
|
|
## All rights reserved.
|
|
## See LICENSE.txt for details.
|
|
##
|
|
## This software is distributed WITHOUT ANY WARRANTY; without even
|
|
## the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
## PURPOSE. See the above copyright notice for more information.
|
|
##============================================================================
|
|
|
|
set(headers
|
|
DeviceAdapterAlgorithmKokkos.h
|
|
DeviceAdapterMemoryManagerKokkos.h
|
|
DeviceAdapterRuntimeDetectorKokkos.h
|
|
DeviceAdapterTagKokkos.h
|
|
KokkosAlloc.h
|
|
KokkosTypes.h
|
|
RuntimeDeviceConfigurationKokkos.h
|
|
)
|
|
|
|
if (NOT VTKm_NO_DEPRECATED_VIRTUAL)
|
|
set(headers ${headers}
|
|
VirtualObjectTransferKokkos.h
|
|
)
|
|
endif()
|
|
|
|
vtkm_declare_headers(${headers})
|
|
|
|
if (TARGET vtkm::kokkos)
|
|
set(sources
|
|
${CMAKE_CURRENT_SOURCE_DIR}/DeviceAdapterAlgorithmKokkos.cxx
|
|
${CMAKE_CURRENT_SOURCE_DIR}/DeviceAdapterMemoryManagerKokkos.cxx
|
|
${CMAKE_CURRENT_SOURCE_DIR}/DeviceAdapterRuntimeDetectorKokkos.cxx
|
|
${CMAKE_CURRENT_SOURCE_DIR}/KokkosAlloc.cxx
|
|
${CMAKE_CURRENT_SOURCE_DIR}/KokkosTypes.cxx)
|
|
target_sources(vtkm_cont PRIVATE ${sources})
|
|
|
|
if (TARGET vtkm::kokkos_cuda)
|
|
set_source_files_properties(${sources} TARGET_DIRECTORY vtkm_cont PROPERTIES LANGUAGE CUDA)
|
|
elseif(TARGET vtkm::kokkos_hip)
|
|
set_source_files_properties(${sources} TARGET_DIRECTORY vtkm_cont PROPERTIES LANGUAGE HIP)
|
|
kokkos_compilation(SOURCE ${sources})
|
|
endif()
|
|
|
|
else()
|
|
target_sources(vtkm_cont PRIVATE
|
|
${CMAKE_CURRENT_SOURCE_DIR}/DeviceAdapterRuntimeDetectorKokkos.cxx)
|
|
endif()
|