Skip to content

Add DEVICE_SOURCES to vtkm_unit_tests

Kenneth Moreland requested to merge kmorel/vtk-m:test-device-source into master

The vtkm_unit_tests function in the CMake build now allows you to specify which files need to be compiled with a device compiler using the DEVICE_SOURCES argument. Previously, the only way to specify that unit tests needed to be compiled with a device compiler was to use the ALL_BACKENDS argument, which would automatically compile everything with the device compiler as well as test the code on all backends. ALL_BACKENDS is still supported, but it no longer changes the sources to be compiled with the device compiler.

Fixes #705 (closed)

Edited by Kenneth Moreland

Merge request reports

Loading