Class CudaJOThreadsPerBlock
IN: Specifies minimum number of threads per block to target compilation for
OUT: Returns the number of threads the compiler actually targeted. This restricts the resource utilization fo the compiler (e.g. max registers) such that a block with the given number of threads should be able to launch based on register limitations. Note, this option does not currently take into account any other resource limitations, such as shared memory utilization.
Option type: unsigned int
Applies to: compiler only
Implements
Inherited Members
Namespace: ManagedCuda
Assembly: ManagedCuda.dll
Syntax
public class CudaJOThreadsPerBlock : CudaJitOption, IDisposable
Constructors
| Improve this Doc View SourceCudaJOThreadsPerBlock(Int32)
IN: Specifies minimum number of threads per block to target compilation for
OUT: Returns the number of threads the compiler actually targeted. This restricts the resource utilization fo the compiler (e.g. max registers) such that a block with the given number of threads should be able to launch based on register limitations. Note, this option does not currently take into account any other resource limitations, such as shared memory utilization.
Option type: unsigned int
Applies to: compiler only
Declaration
public CudaJOThreadsPerBlock(int value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | value |
Properties
| Improve this Doc View SourceValue
Returns the number of threads the compiler actually targeted. This restricts the resource utilization fo the compiler (e.g. max registers) such that a block with the given number of threads should be able to launch based on register limitations. Note, this option does not currently take into account any other resource limitations, such as shared memory utilization.
The value is only valid after a succesful call to UpdateValues()
Declaration
public int Value { get; }
Property Value
Type | Description |
---|---|
System.Int32 |