ed41874cc8
Some of the code in the base `vtkm` namespace is device specific. For example, the functions in `Math.h` are customized for specific devices. Thus, we want this code to be specially compiled and run on these devices. Previously, we made a header file and then added separate tests to each device package. That was created before we had ways of running on any device. Now, it is much easier to compile the test a single time for all devices and use the `ALL_BACKENDS` feature of `vtkm_unit_tests` CMake function to automatically create the test for all devices.
34 lines
1.2 KiB
CMake
34 lines
1.2 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(unit_tests
|
|
UnitTestTBBArrayHandle.cxx
|
|
UnitTestTBBArrayHandleFancy.cxx
|
|
UnitTestTBBArrayHandleMultiplexer.cxx
|
|
UnitTestTBBArrayHandleVirtualCoordinates.cxx
|
|
UnitTestTBBBitField.cxx
|
|
UnitTestTBBCellLocatorRectilinearGrid.cxx
|
|
UnitTestTBBCellLocatorUniformBins.cxx
|
|
UnitTestTBBCellLocatorUniformGrid.cxx
|
|
UnitTestTBBColorTable.cxx
|
|
UnitTestTBBComputeRange.cxx
|
|
UnitTestTBBDataSetExplicit.cxx
|
|
UnitTestTBBDataSetSingleType.cxx
|
|
UnitTestTBBDeviceAdapter.cxx
|
|
UnitTestTBBImplicitFunction.cxx
|
|
UnitTestTBBPointLocatorUniformGrid.cxx
|
|
UnitTestTBBVirtualObjectHandle.cxx
|
|
)
|
|
|
|
vtkm_unit_tests(SOURCES ${unit_tests}
|
|
LABEL "TBB"
|
|
DEFINES VTKM_NO_ERROR_ON_MIXED_CUDA_CXX_TAG
|
|
LIBRARIES vtkm_worklet)
|