Interface ICudaCubinEntry


public interface ICudaCubinEntry
Entry contained in a CUDA fat binary.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Flag indicating that the entry targets a 64-bit address space.
    static final int
    Flag indicating that the entry data is compressed with LZ4.
    static final int
    Flag indicating that the entry data is compressed with Zstandard.
    static final int
    Flag indicating that the entry contains debug information.
    static final int
    Flag indicating that the host platform is Linux.
    static final int
    Flag indicating that the host platform is macOS.
    static final int
    Flag indicating that the host platform is Windows.
    static final int
    Flag indicating that the entry was produced by CUDA tooling.
    static final int
    Entry contains PTX text.
    static final int
    Entry contains SASS machine code.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Retrieve the CUDA architecture number.
    byte[]
    Retrieve the entry payload.
    int
    Retrieve the entry flags.
    int
    Retrieve the entry kind.
    int
    Retrieve the entry major version.
    int
    Retrieve the entry minor version.
  • Field Details

    • KIND_PTX

      static final int KIND_PTX
      Entry contains PTX text.
      See Also:
    • KIND_SASS

      static final int KIND_SASS
      Entry contains SASS machine code.
      See Also:
    • FLAG_AddressSize64

      static final int FLAG_AddressSize64
      Flag indicating that the entry targets a 64-bit address space.
      See Also:
    • FLAG_HasDebugInfo

      static final int FLAG_HasDebugInfo
      Flag indicating that the entry contains debug information.
      See Also:
    • FLAG_ProducerCuda

      static final int FLAG_ProducerCuda
      Flag indicating that the entry was produced by CUDA tooling.
      See Also:
    • FLAG_HostLinux

      static final int FLAG_HostLinux
      Flag indicating that the host platform is Linux.
      See Also:
    • FLAG_HostMac

      static final int FLAG_HostMac
      Flag indicating that the host platform is macOS.
      See Also:
    • FLAG_HostWindows

      static final int FLAG_HostWindows
      Flag indicating that the host platform is Windows.
      See Also:
    • FLAG_CompressionLZ4

      static final int FLAG_CompressionLZ4
      Flag indicating that the entry data is compressed with LZ4.
      See Also:
    • FLAG_CompressionZstd

      static final int FLAG_CompressionZstd
      Flag indicating that the entry data is compressed with Zstandard.
      See Also:
  • Method Details

    • getKind

      int getKind()
      Retrieve the entry kind.
      Returns:
      one of KIND_PTX or KIND_SASS
    • getVersionMajor

      int getVersionMajor()
      Retrieve the entry major version.
      Returns:
      major version number
    • getVersionMinor

      int getVersionMinor()
      Retrieve the entry minor version.
      Returns:
      minor version number
    • getCudaArch

      int getCudaArch()
      Retrieve the CUDA architecture number.
      Returns:
      architecture number, for example 75 for sm_75
    • getFlags

      int getFlags()
      Retrieve the entry flags.
      Returns:
      bitmask of FLAG_* values
    • getData

      byte[] getData()
      Retrieve the entry payload.
      Returns:
      PTX text or SASS binary data