Library/ManagedCuda/CudaKernel.cs
/// <summary>
/// Returns the number of the maximum active blocks per
/// streaming multiprocessor.
/// </summary>
/// <returns>number of the maximum active blocks per
/// streaming multiprocessor.</returns>
Returns the number of the maximum active blocks per
streaming multiprocessor.
Returns the number of the maximum active blocks per streaming multiprocessor .
public int GetOccupancyMaxActiveBlocksPerMultiprocessor()
		{
			CUResult res;
			int numBlocks = 0;
			int blockSize = (int)_blockDim.x * (int)_blockDim.y * (int)_blockDim.z;
			res = DriverAPINativeMethods.Occupancy.cuOccupancyMaxActiveBlocksPerMultiprocessor(ref numBlocks, _function, blockSize, _sharedMemSize);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cuOccupancyMaxActiveBlocksPerMultiprocessor", res));
			if (res != CUResult.Success)
				throw new CudaException(res);
			return numBlocks;
		}
public int GetOccupancyMaxActiveBlocksPerMultiprocessor ( ) { CUResult res ; int numBlocks = 0 ; int blockSize = ( int ) _blockDim . x * ( int ) _blockDim . y * ( int ) _blockDim . z ; res = DriverAPINativeMethods . Occupancy . cuOccupancyMaxActiveBlocksPerMultiprocessor ( ref numBlocks , _function , blockSize , _sharedMemSize ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , res ) ) ; if ( res != CUResult . Success ) throw new CudaException ( res ) ; return numBlocks ; }
Returns the number of the maximum active blocks per
streaming multiprocessor.
Returns the number of the maximum active blocks per streaming multiprocessor .
number of the maximum active blocks per
streaming multiprocessor.
number of the maximum active blocks per streaming multiprocessor .