Library/ManagedCuda/CudaKernel.cs
/// <summary>
/// Sets the grid dimensions according to block dimensions, so that each dimension has at least computeSize threads
/// </summary>
/// <param name="computeSizeX">Minimum number of threads in X dimension</param>
/// <param name="computeSizeY">Minimum number of threads in Y dimension</param>
/// <param name="computeSizeZ">Minimum number of threads in Z dimension</param>
Sets the grid dimensions according to block dimensions, so that each dimension has at least computeSize threads
Sets the grid dimensions according to block dimensions so that each dimension has at least computeSize threads
public void SetComputeSize(uint computeSizeX, uint computeSizeY, uint computeSizeZ)
		{
			_gridDim.x = (computeSizeX + _blockDim.x - 1) / _blockDim.x;
			_gridDim.y = (computeSizeY + _blockDim.y - 1) / _blockDim.y;
			_gridDim.z = (computeSizeZ + _blockDim.z - 1) / _blockDim.z;
		}
public void SetComputeSize ( uint computeSizeX , uint computeSizeY , uint computeSizeZ ) { _gridDim . x = ( computeSizeX + _blockDim . x - 1 ) / _blockDim . x ; _gridDim . y = ( computeSizeY + _blockDim . y - 1 ) / _blockDim . y ; _gridDim . z = ( computeSizeZ + _blockDim . z - 1 ) / _blockDim . z ; }
Sets the grid dimensions according to block dimensions, so that each dimension has at least computeSize threads
Sets the grid dimensions according to block dimensions so that each dimension has at least computeSize threads
computeSizeX
uint
Minimum number of threads in X dimension
Minimum number of threads in X dimension
computeSizeY
uint
Minimum number of threads in Y dimension
Minimum number of threads in Y dimension
computeSizeZ
uint
Minimum number of threads in Z dimension
Minimum number of threads in Z dimension