pystencils.codegen.gpu_indexing.GpuLaunchConfiguration#
- class pystencils.codegen.gpu_indexing.GpuLaunchConfiguration(hw_props)#
Base class for launch configurations for CUDA and HIP kernels.
- Parameters:
block_size – A triple of lambdas determining the GPU block size
grid_size – A triple of lambdas determining the GPU grid size
config_parameters – Set containing all parameters to the given lambdas that are not also parameters to the associated kernel
hw_props (HardwareProperties | None)
- abstract evaluate(**kwargs)#
Compute block and grid size for a kernel launch.