mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-08 13:23:51 +00:00
If a global static array is declared with VTKM_EXEC_CONSTANT and the code is compiled by nvcc (for multibackend code) then the array is only accesible on the GPU. If for some reason a worklet fails on the cuda backend and it is re-executed on any of the CPU backends, it will continue to fail. We couldn't find a simple way to declare the array once and have it available on both CPU and GPU. The approach we are using here is to declare the arrays as static inside some "Get" function which is marked as VTKM_EXEC_CONT. |
||
---|---|---|
.. | ||
arg | ||
cuda | ||
internal | ||
serial | ||
tbb | ||
testing | ||
AtomicArray.h | ||
CellDerivative.h | ||
CellEdge.h | ||
CellFace.h | ||
CellInside.h | ||
CellInterpolate.h | ||
CMakeLists.txt | ||
ConnectivityExplicit.h | ||
ConnectivityPermuted.h | ||
ConnectivityStructured.h | ||
ExecutionObjectBase.h | ||
ExecutionWholeArray.h | ||
FunctorBase.h | ||
ImplicitFunction.h | ||
Jacobian.h | ||
ParametricCoordinates.h | ||
TaskBase.h |