Show / Hide Table of Contents

    Enum CUJITOption

    Online compiler options

    Namespace: ManagedCuda.BasicTypes
    Assembly: ManagedCuda.dll
    Syntax
    public enum CUJITOption

    Fields

    Name Description
    ErrorLogBuffer

    Pointer to a buffer in which to print any log messages from PTXAS that reflect errors (the buffer size is specified via option ::CU_JIT_ERROR_LOG_BUFFER_SIZE_BYTES)

    Option type: char*

    Applies to: compiler and linker

    ErrorLogBufferSizeBytes

    IN: Log buffer size in bytes. Log messages will be capped at this size (including null terminator)

    OUT: Amount of log buffer filled with messages

    Option type: unsigned int

    Applies to: compiler and linker

    FallbackStrategy

    Specifies choice of fallback strategy if matching cubin is not found. Choice is based on supplied ::CUjit_fallback_enum.

    Option type: unsigned int for enumerated type ::CUjit_fallback_enum

    Applies to: compiler only

    FastCompile

    The below jit options are used for internal purposes only, in this version of CUDA

    GenerateDebugInfo

    Specifies whether to create debug information in output (-g)

    (0: false, default)

    Option type: int

    Applies to: compiler and linker

    GenerateLineInfo

    Generate line number information (-lineinfo)

    (0: false, default)

    Option type: int

    Applies to: compiler only

    InfoLogBuffer

    Pointer to a buffer in which to print any log messsages from PTXAS that are informational in nature (the buffer size is specified via option ::CU_JIT_INFO_LOG_BUFFER_SIZE_BYTES)

    Option type: char*

    Applies to: compiler and linker

    InfoLogBufferSizeBytes

    IN: Log buffer size in bytes. Log messages will be capped at this size (including null terminator)

    OUT: Amount of log buffer filled with messages

    Option type: unsigned int

    Applies to: compiler and linker

    JITCacheMode

    Specifies whether to enable caching explicitly (-dlcm)

    Choice is based on supplied ::CUjit_cacheMode_enum.

    Option type: unsigned int for enumerated type ::CUjit_cacheMode_enum

    Applies to: compiler only

    LogVerbose

    Generate verbose log messages

    (0: false, default)

    Option type: int

    Applies to: compiler and linker

    MaxRegisters

    Max number of registers that a thread may use.

    Option type: unsigned int

    Applies to: compiler only

    NewSM3XOpt

    The below jit options are used for internal purposes only, in this version of CUDA

    OptimizationLevel

    Level of optimizations to apply to generated code (0 - 4), with 4 being the default and highest level of optimizations.

    Option type: unsigned int

    Applies to: compiler only

    Target

    Target is chosen based on supplied ::CUjit_target_enum. This option cannot be used with cuLink* APIs as the linker requires exact matches.

    Option type: unsigned int for enumerated type ::CUjit_target_enum

    Applies to: compiler and linker

    TargetFromContext

    No option value required. Determines the target based on the current attached context (default)

    Option type: No option value needed

    Applies to: compiler and linker

    ThreadsPerBlock

    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

    WallTime

    Returns a float value in the option of the wall clock time, in milliseconds, spent creating the cubin

    Option type: float

    Applies to: compiler and linker

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