VTK-m
1.8
|
CUDA implementation for Control Environment. More...
Classes | |
class | ErrorCuda |
This error is thrown whenever an unidentified CUDA runtime error is encountered. More... | |
struct | ScheduleParameters |
Represents how to schedule 1D, 2D, and 3D Cuda kernels. More... | |
Functions | |
VTKM_DEPRECATED (1.7, "Use " "RuntimeInformation{}.GetRuntimeConfiguration(vtkm::cont::DeviceAdapterTagCuda)." "SetDeviceInstance(id) instead") static void SetCudaDevice(int id) | |
VTKM_CONT_EXPORT void | InitScheduleParameters (vtkm::cont::cuda::ScheduleParameters(*)(char const *name, int major, int minor, int multiProcessorCount, int maxThreadsPerMultiProcessor, int maxThreadsPerBlock)) |
Specify the custom scheduling to use for VTK-m CUDA kernel launches. More... | |
CUDA implementation for Control Environment.
vtkm::cont::cuda includes the code to implement the VTK-m Control Environment for the CUDA-based device adapter.
VTKM_CONT_EXPORT void vtkm::cont::cuda::InitScheduleParameters | ( | vtkm::cont::cuda::ScheduleParameters(*)(char const *name, int major, int minor, int multiProcessorCount, int maxThreadsPerMultiProcessor, int maxThreadsPerBlock) | ) |
Specify the custom scheduling to use for VTK-m CUDA kernel launches.
By default VTK-m uses a preset table based on the GPU's found at runtime to determine the best scheduling parameters for a worklet. When these defaults are insufficient for certain projects it is possible to override the defaults by binding a custom function to InitScheduleParameters
.
Note: The this function must be called before any invocation of any worklets by VTK-m.
Note: This function will be called for each GPU on a machine.
vtkm::cont::cuda::VTKM_DEPRECATED | ( | 1. | 7, |
"Use " "RuntimeInformation{}.GetRuntimeConfiguration(vtkm::cont::DeviceAdapterTagCuda)." "SetDeviceInstance(id) instead" | |||
) |