Interface ICudaCubinEntry
public interface ICudaCubinEntry
Entry contained in a CUDA fat binary.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intFlag indicating that the entry targets a 64-bit address space.static final intFlag indicating that the entry data is compressed with LZ4.static final intFlag indicating that the entry data is compressed with Zstandard.static final intFlag indicating that the entry contains debug information.static final intFlag indicating that the host platform is Linux.static final intFlag indicating that the host platform is macOS.static final intFlag indicating that the host platform is Windows.static final intFlag indicating that the entry was produced by CUDA tooling.static final intEntry contains PTX text.static final intEntry contains SASS machine code. -
Method Summary
-
Field Details
-
KIND_PTX
static final int KIND_PTXEntry contains PTX text.- See Also:
-
KIND_SASS
static final int KIND_SASSEntry contains SASS machine code.- See Also:
-
FLAG_AddressSize64
static final int FLAG_AddressSize64Flag indicating that the entry targets a 64-bit address space.- See Also:
-
FLAG_HasDebugInfo
static final int FLAG_HasDebugInfoFlag indicating that the entry contains debug information.- See Also:
-
FLAG_ProducerCuda
static final int FLAG_ProducerCudaFlag indicating that the entry was produced by CUDA tooling.- See Also:
-
FLAG_HostLinux
static final int FLAG_HostLinuxFlag indicating that the host platform is Linux.- See Also:
-
FLAG_HostMac
static final int FLAG_HostMacFlag indicating that the host platform is macOS.- See Also:
-
FLAG_HostWindows
static final int FLAG_HostWindowsFlag indicating that the host platform is Windows.- See Also:
-
FLAG_CompressionLZ4
static final int FLAG_CompressionLZ4Flag indicating that the entry data is compressed with LZ4.- See Also:
-
FLAG_CompressionZstd
static final int FLAG_CompressionZstdFlag indicating that the entry data is compressed with Zstandard.- See Also:
-
-
Method Details
-
getKind
int getKind()Retrieve the entry kind. -
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
-