Show / Hide Table of Contents

    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

    Inheritance
    System.Object
    CudaJitOption
    CudaJOThreadsPerBlock
    Implements
    System.IDisposable
    Inherited Members
    CudaJitOption._ptrValue
    CudaJitOption._option
    CudaJitOption.disposed
    CudaJitOption.Dispose()
    CudaJitOption.Dispose(Boolean)
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: ManagedCuda
    Assembly: ManagedCuda.dll
    Syntax
    public class CudaJOThreadsPerBlock : CudaJitOption, IDisposable

    Constructors

    | Improve this Doc View Source

    CudaJOThreadsPerBlock(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 Source

    Value

    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

    Implements

    System.IDisposable
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX