Library/ManagedCuda/CudaKernel.cs
/// <summary>
/// Returns the number of the maximum active blocks per
/// streaming multiprocessor (Ignores current kernel settings).
/// </summary>
/// <param name="blockSize">Block size the kernel is intended to be launched with</param>
/// <param name="dynamicSMemSize">Per-block dynamic shared memory usage intended, in bytes</param>
/// <returns>number of the maximum active blocks per
/// streaming multiprocessor.</returns>
Returns the number of the maximum active blocks per
streaming multiprocessor (Ignores current kernel settings).
Returns the number of the maximum active blocks per streaming multiprocessor ( Ignores current kernel settings ) .
public int GetOccupancyMaxActiveBlocksPerMultiprocessor(int blockSize, SizeT dynamicSMemSize)
		{
			CUResult res;
			int numBlocks = 0;
			res = DriverAPINativeMethods.Occupancy.cuOccupancyMaxActiveBlocksPerMultiprocessor(ref numBlocks, _function, blockSize, dynamicSMemSize);
			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 ( int blockSize , SizeT dynamicSMemSize ) { CUResult res ; int numBlocks = 0 ; res = DriverAPINativeMethods . Occupancy . cuOccupancyMaxActiveBlocksPerMultiprocessor ( ref numBlocks , _function , blockSize , dynamicSMemSize ) ; 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 (Ignores current kernel settings).
Returns the number of the maximum active blocks per streaming multiprocessor ( Ignores current kernel settings ) .
number of the maximum active blocks per
streaming multiprocessor.
number of the maximum active blocks per streaming multiprocessor .
blockSize
int
Block size the kernel is intended to be launched with
Block size the kernel is intended to be launched with
dynamicSMemSize
SizeT
Per-block dynamic shared memory usage intended, in bytes
Per - block dynamic shared memory usage intended in bytes