2014-11-26 17:19:46 +00:00
|
|
|
##============================================================================
|
|
|
|
## 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.
|
|
|
|
##
|
2017-09-20 21:33:44 +00:00
|
|
|
## Copyright 2014 National Technology & Engineering Solutions of Sandia, LLC (NTESS).
|
2014-11-26 17:19:46 +00:00
|
|
|
## Copyright 2014 UT-Battelle, LLC.
|
2015-05-21 12:09:22 +00:00
|
|
|
## Copyright 2014 Los Alamos National Security.
|
2014-11-26 17:19:46 +00:00
|
|
|
##
|
2017-09-20 21:33:44 +00:00
|
|
|
## Under the terms of Contract DE-NA0003525 with NTESS,
|
2014-11-26 17:19:46 +00:00
|
|
|
## the U.S. Government retains certain rights in this software.
|
|
|
|
##
|
|
|
|
## Under the terms of Contract DE-AC52-06NA25396 with Los Alamos National
|
|
|
|
## Laboratory (LANL), the U.S. Government retains certain rights in
|
|
|
|
## this software.
|
|
|
|
##============================================================================
|
|
|
|
|
|
|
|
set(headers
|
|
|
|
ArrayManagerExecutionCuda.h
|
2017-07-14 14:36:15 +00:00
|
|
|
CudaAllocator.h
|
2014-11-26 17:19:46 +00:00
|
|
|
DeviceAdapterAlgorithmCuda.h
|
2018-05-25 17:35:34 +00:00
|
|
|
DeviceAdapterAtomicArrayImplementationCuda.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
|
2018-02-12 19:45:59 +00:00
|
|
|
ExecutionArrayInterfaceBasicCuda.h
|
2015-09-07 16:20:31 +00:00
|
|
|
MakeThrustIterator.h
|
2017-06-23 17:27:33 +00:00
|
|
|
TaskTuner.h
|
2015-09-07 16:20:31 +00:00
|
|
|
ThrustExceptionHandler.h
|
2017-03-29 14:48:43 +00:00
|
|
|
VirtualObjectTransferCuda.h
|
2014-11-26 17:19:46 +00:00
|
|
|
)
|
|
|
|
|
2015-09-17 13:23:53 +00:00
|
|
|
vtkm_declare_headers(CUDA ${headers} TESTABLE ${VTKm_ENABLE_CUDA})
|
2014-11-26 17:19:46 +00:00
|
|
|
|
2018-05-14 20:21:30 +00:00
|
|
|
|
2017-09-25 12:47:47 +00:00
|
|
|
if (NOT VTKm_ENABLE_CUDA)
|
2018-05-14 20:21:30 +00:00
|
|
|
#build the file with cpp compiler if cuda is disabled
|
|
|
|
target_sources(vtkm_cont PRIVATE
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/DeviceAdapterRuntimeDetectorCuda.cxx
|
|
|
|
)
|
|
|
|
|
2017-09-25 12:47:47 +00:00
|
|
|
return()
|
|
|
|
endif()
|
2017-09-21 14:33:17 +00:00
|
|
|
|
2018-01-17 22:13:50 +00:00
|
|
|
target_sources(vtkm_cont PRIVATE
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/ArrayManagerExecutionCuda.cu
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/CudaAllocator.cu
|
2018-05-25 18:59:35 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/DeviceAdapterAlgorithmCuda.cu
|
2018-05-10 13:08:03 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/DeviceAdapterRuntimeDetectorCuda.cu
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/DeviceAdapterTimerImplementationCuda.cu
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/ExecutionArrayInterfaceBasicCuda.cu
|
2018-01-17 22:13:50 +00:00
|
|
|
)
|