Building Fides with VTK-m with CUDA
Currently it is not supported, attempting to build Fides with VTKm_ENABLE_CUDA=ON results in:
sccache /usr/bin/c++ -DADIOS2_USE_MPI -DFIDES_USE_MPI -DMPICH_SKIP_MPICXX -DMPI_NO_CPPBIND -DOMPI_SKIP_MPICXX -DVTKMDIY_MPI_AS_LIB -DVTKMDIY_NO_THREADS -DVTK_IN_VTK -DVTK_MODULE_ENABLE_VTK_mpi=1 -D_MPICC_H -Dfides_EXPORTS -I/builds/gitlab-kitware-sciviz-ci/build/ThirdParty/fides/vtkfides/fides -I/builds/gitlab-kitware-sciviz-ci/ThirdParty/fides/vtkfides/fides -I/builds/gitlab-kitware-sciviz-ci/ThirdParty/fides/vtkfides -I/builds/gitlab-kitware-sciviz-ci/ThirdParty/fides/vtkfides/fides/xgc -I/builds/gitlab-kitware-sciviz-ci/ThirdParty/fides/vtkfides/fides/predefined -I/builds/gitlab-kitware-sciviz-ci/build/ThirdParty/vtkm/vtkvtkm -I/builds/gitlab-kitware-sciviz-ci/ThirdParty/vtkm/vtkvtkm -I/builds/gitlab-kitware-sciviz-ci/ThirdParty/vtkm/vtkvtkm/vtk-m -I/builds/gitlab-kitware-sciviz-ci/build/ThirdParty/vtkm/vtkvtkm/vtk-m/include -I/builds/gitlab-kitware-sciviz-ci/ThirdParty/vtkm/vtkvtkm/vtk-m/vtkm/thirdparty/optionparser -I/builds/gitlab-kitware-sciviz-ci/ThirdParty/vtkm/vtkvtkm/vtk-m/vtkm/thirdparty/diy -I/builds/gitlab-kitware-sciviz-ci/ThirdParty/vtkm/vtkvtkm/vtk-m/vtkm/thirdparty/lcl/vtkmlcl -I/builds/gitlab-kitware-sciviz-ci/ThirdParty/fides/vtkfides/thirdparty/rapidjson -I/builds/gitlab-kitware-sciviz-ci/build/ThirdParty/fides/vtkfides/thirdparty/rapidjson -isystem /builds/gitlab-kitware-sciviz-ci/build/ThirdParty/vtkm -isystem /builds/gitlab-kitware-sciviz-ci/ThirdParty/vtkm -isystem /builds/gitlab-kitware-sciviz-ci/ThirdParty/vtkm/vtkvtkm/vtk-m/vtkm/thirdparty/diy/vtkmdiy/include -isystem /builds/gitlab-kitware-sciviz-ci/build/ThirdParty/vtkm/vtkvtkm/vtk-m/vtkm/thirdparty/diy/vtkmdiy/include/vtkmdiy/mpi -isystem /builds/gitlab-kitware-sciviz-ci/build/Utilities/MPI -isystem /builds/gitlab-kitware-sciviz-ci/Utilities/MPI -isystem /usr/include/mpich-x86_64 -isystem /usr/lib64/mpich/include -O3 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -ffunction-sections -pthread -std=c++14 -MD -MT ThirdParty/fides/vtkfides/fides/CMakeFiles/fides.dir/CellSet.cxx.o -MF ThirdParty/fides/vtkfides/fides/CMakeFiles/fides.dir/CellSet.cxx.o.d -o ThirdParty/fides/vtkfides/fides/CMakeFiles/fides.dir/CellSet.cxx.o -c /builds/gitlab-kitware-sciviz-ci/ThirdParty/fides/vtkfides/fides/CellSet.cxx
In file included from /builds/gitlab-kitware-sciviz-ci/ThirdParty/vtkm/vtkvtkm/vtk-m/vtkm/cont/DeviceAdapter.h:18,
from /builds/gitlab-kitware-sciviz-ci/ThirdParty/vtkm/vtkvtkm/vtk-m/vtkm/cont/Algorithm.h:16,
from /builds/gitlab-kitware-sciviz-ci/ThirdParty/fides/vtkfides/fides/CellSet.cxx:15:
/builds/gitlab-kitware-sciviz-ci/ThirdParty/vtkm/vtkvtkm/vtk-m/vtkm/cont/cuda/DeviceAdapterCuda.h:33:2: error: #error When VTK-m is built with CUDA enabled all compilation units that include DeviceAdapterTagCuda must use the cuda compiler
33 | #error When VTK-m is built with CUDA enabled all compilation units that include DeviceAdapterTagCuda must use the cuda compiler
| ^~~~~
[7618/9988] Building CXX object ThirdParty/fides/vtkfides/fides/CMakeFiles/fides.dir/Array.cxx.o
FAILED: ThirdParty/fides/vtkfides/fides/CMakeFiles/fides.dir/Array.cxx.o
sccache /usr/bin/c++ -DADIOS2_USE_MPI -DFIDES_USE_MPI -DMPICH_SKIP_MPICXX -DMPI_NO_CPPBIND -DOMPI_SKIP_MPICXX -DVTKMDIY_MPI_AS_LIB -DVTKMDIY_NO_THREADS -DVTK_IN_VTK -DVTK_MODULE_ENABLE_VTK_mpi=1 -D_MPICC_H -Dfides_EXPORTS -I/builds/gitlab-kitware-sciviz-ci/build/ThirdParty/fides/vtkfides/fides -I/builds/gitlab-kitware-sciviz-ci/ThirdParty/fides/vtkfides/fides -I/builds/gitlab-kitware-sciviz-ci/ThirdParty/fides/vtkfides -I/builds/gitlab-kitware-sciviz-ci/ThirdParty/fides/vtkfides/fides/xgc -I/builds/gitlab-kitware-sciviz-ci/ThirdParty/fides/vtkfides/fides/predefined -I/builds/gitlab-kitware-sciviz-ci/build/ThirdParty/vtkm/vtkvtkm -I/builds/gitlab-kitware-sciviz-ci/ThirdParty/vtkm/vtkvtkm -I/builds/gitlab-kitware-sciviz-ci/ThirdParty/vtkm/vtkvtkm/vtk-m -I/builds/gitlab-kitware-sciviz-ci/build/ThirdParty/vtkm/vtkvtkm/vtk-m/include -I/builds/gitlab-kitware-sciviz-ci/ThirdParty/vtkm/vtkvtkm/vtk-m/vtkm/thirdparty/optionparser -I/builds/gitlab-kitware-sciviz-ci/ThirdParty/vtkm/vtkvtkm/vtk-m/vtkm/thirdparty/diy -I/builds/gitlab-kitware-sciviz-ci/ThirdParty/vtkm/vtkvtkm/vtk-m/vtkm/thirdparty/lcl/vtkmlcl -I/builds/gitlab-kitware-sciviz-ci/ThirdParty/fides/vtkfides/thirdparty/rapidjson -I/builds/gitlab-kitware-sciviz-ci/build/ThirdParty/fides/vtkfides/thirdparty/rapidjson -isystem /builds/gitlab-kitware-sciviz-ci/build/ThirdParty/vtkm -isystem /builds/gitlab-kitware-sciviz-ci/ThirdParty/vtkm -isystem /builds/gitlab-kitware-sciviz-ci/ThirdParty/vtkm/vtkvtkm/vtk-m/vtkm/thirdparty/diy/vtkmdiy/include -isystem /builds/gitlab-kitware-sciviz-ci/build/ThirdParty/vtkm/vtkvtkm/vtk-m/vtkm/thirdparty/diy/vtkmdiy/include/vtkmdiy/mpi -isystem /builds/gitlab-kitware-sciviz-ci/build/Utilities/MPI -isystem /builds/gitlab-kitware-sciviz-ci/Utilities/MPI -isystem /usr/include/mpich-x86_64 -isystem /usr/lib64/mpich/include -O3 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -ffunction-sections -pthread -std=c++14 -MD -MT ThirdParty/fides/vtkfides/fides/CMakeFiles/fides.dir/Array.cxx.o -MF ThirdParty/fides/vtkfides/fides/CMakeFiles/fides.dir/Array.cxx.o.d -o ThirdParty/fides/vtkfides/fides/CMakeFiles/fides.dir/Array.cxx.o -c /builds/gitlab-kitware-sciviz-ci/ThirdParty/fides/vtkfides/fides/Array.cxx
In file included from /builds/gitlab-kitware-sciviz-ci/ThirdParty/vtkm/vtkvtkm/vtk-m/vtkm/cont/DeviceAdapter.h:18,
from /builds/gitlab-kitware-sciviz-ci/ThirdParty/vtkm/vtkvtkm/vtk-m/vtkm/cont/AtomicArray.h:17,
from /builds/gitlab-kitware-sciviz-ci/ThirdParty/vtkm/vtkvtkm/vtk-m/vtkm/cont/arg/TransportTagAtomicArray.h:25,
from /builds/gitlab-kitware-sciviz-ci/ThirdParty/vtkm/vtkvtkm/vtk-m/vtkm/worklet/internal/WorkletBase.h:28,
from /builds/gitlab-kitware-sciviz-ci/ThirdParty/vtkm/vtkvtkm/vtk-m/vtkm/worklet/WorkletMapField.h:13,
from /builds/gitlab-kitware-sciviz-ci/ThirdParty/fides/vtkfides/fides/Array.cxx:17:
/builds/gitlab-kitware-sciviz-ci/ThirdParty/vtkm/vtkvtkm/vtk-m/vtkm/cont/cuda/DeviceAdapterCuda.h:33:2: error: #error When VTK-m is built with CUDA enabled all compilation units that include DeviceAdapterTagCuda must use the cuda compiler
33 | #error When VTK-m is built with CUDA enabled all compilation units that include DeviceAdapterTagCuda must use the cuda compiler
| ^~~~~
Related: paraview/paraview#20635 (closed)
Edited by Vicente Bolea