2014-11-26 17:19:46 +00:00
|
|
|
##============================================================================
|
|
|
|
## Copyright (c) Kitware, Inc.
|
|
|
|
## All rights reserved.
|
|
|
|
## See LICENSE.txt for details.
|
2019-04-15 23:24:21 +00:00
|
|
|
##
|
2014-11-26 17:19:46 +00:00
|
|
|
## 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
|
2017-07-14 14:36:15 +00:00
|
|
|
CudaAllocator.h
|
2014-11-26 17:19:46 +00:00
|
|
|
DeviceAdapterAlgorithmCuda.h
|
2020-03-26 23:34:18 +00:00
|
|
|
DeviceAdapterMemoryManagerCuda.h
|
2018-05-10 13:08:03 +00:00
|
|
|
DeviceAdapterRuntimeDetectorCuda.h
|
2014-11-26 17:19:46 +00:00
|
|
|
DeviceAdapterTagCuda.h
|
2018-05-10 13:08:03 +00:00
|
|
|
DeviceAdapterTimerImplementationCuda.h
|
2015-09-07 16:20:31 +00:00
|
|
|
MakeThrustIterator.h
|
2021-05-26 19:43:36 +00:00
|
|
|
RuntimeDeviceConfigurationCuda.h
|
2020-06-16 12:54:01 +00:00
|
|
|
ScopedCudaStackSize.h
|
2015-09-07 16:20:31 +00:00
|
|
|
ThrustExceptionHandler.h
|
2014-11-26 17:19:46 +00:00
|
|
|
)
|
|
|
|
|
2019-01-24 19:26:40 +00:00
|
|
|
vtkm_declare_headers(${headers})
|
2014-11-26 17:19:46 +00:00
|
|
|
|
2018-05-14 20:21:30 +00:00
|
|
|
|
2022-12-09 23:46:56 +00:00
|
|
|
if (TARGET vtkm_cuda)
|
2019-01-09 15:04:34 +00:00
|
|
|
target_sources(vtkm_cont PRIVATE
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/CudaAllocator.cu
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/DeviceAdapterAlgorithmCuda.cu
|
2020-03-26 23:34:18 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/DeviceAdapterMemoryManagerCuda.cu
|
2019-01-09 15:04:34 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/DeviceAdapterRuntimeDetectorCuda.cu
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/DeviceAdapterTimerImplementationCuda.cu
|
|
|
|
)
|
|
|
|
else()
|
|
|
|
#build the file with cpp compiler if cuda is disabled
|
2018-05-14 20:21:30 +00:00
|
|
|
target_sources(vtkm_cont PRIVATE
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/DeviceAdapterRuntimeDetectorCuda.cxx
|
|
|
|
)
|
2017-09-25 12:47:47 +00:00
|
|
|
endif()
|