remove unused headers, restore device compiler for worklet example

This commit is contained in:
Li-Ta Lo 2022-08-09 11:07:23 -06:00
parent 0ecfdcb2fa
commit ce6cf2498a
2 changed files with 3 additions and 6 deletions

@ -9,19 +9,13 @@
//============================================================================ //============================================================================
#include <algorithm> #include <algorithm>
#include <cctype> #include <cctype>
#include <fstream>
#include <iostream> #include <iostream>
#include <sstream>
#include <vtkm/Math.h> #include <vtkm/Math.h>
#include <vtkm/cont/ArrayHandle.h> #include <vtkm/cont/ArrayHandle.h>
#include <vtkm/cont/DataSetBuilderUniform.h> #include <vtkm/cont/DataSetBuilderUniform.h>
#include <vtkm/cont/Initialize.h> #include <vtkm/cont/Initialize.h>
#include <vtkm/filter/FilterDataSet.h>
#include <vtkm/cont/TryExecute.h>
#include <vtkm/source/Oscillator.h> #include <vtkm/source/Oscillator.h>
#if !defined(_WIN32) || defined(__CYGWIN__) #if !defined(_WIN32) || defined(__CYGWIN__)

@ -14,4 +14,7 @@ find_package(VTKm REQUIRED QUIET)
if (VTKm_ENABLE_RENDERING) if (VTKm_ENABLE_RENDERING)
add_executable(PolyLineArchimedeanHelix PolyLineArchimedeanHelix.cxx) add_executable(PolyLineArchimedeanHelix PolyLineArchimedeanHelix.cxx)
target_link_libraries(PolyLineArchimedeanHelix PRIVATE vtkm_filter vtkm_rendering) target_link_libraries(PolyLineArchimedeanHelix PRIVATE vtkm_filter vtkm_rendering)
vtkm_add_target_information(PolyLineArchimedeanHelix
DROP_UNUSED_SYMBOLS MODIFY_CUDA_FLAGS
DEVICE_SOURCES PolyLineArchimedeanHelix.cxx)
endif() endif()