cuda.core.typing.ObjectCodeFormatType#

class cuda.core.typing.ObjectCodeFormatType(
value,
names=<not given>,
*values,
module=None,
qualname=None,
type=None,
start=1,
boundary=None,
)#

Output format for compile(), link(), and as_bytes().

  • PTX — PTX assembly text.

  • CUBIN — device-native CUDA binary.

  • LTOIR — LTO (link-time optimization) IR for later linking.

  • FATBIN — fat binary bundling multiple device images.

  • OBJECT — host object containing device code.

  • LIBRARY — device code library.

PTX: ptx

Output format for compile(), link(), and as_bytes(). * PTX — PTX assembly text. * CUBIN — device-native CUDA binary. * LTOIR — LTO (link-time optimization) IR for later linking. * FATBIN — fat binary bundling multiple device images. * OBJECT — host object containing device code. * LIBRARY — device code library.

CUBIN: cubin

Output format for compile(), link(), and as_bytes(). * PTX — PTX assembly text. * CUBIN — device-native CUDA binary. * LTOIR — LTO (link-time optimization) IR for later linking. * FATBIN — fat binary bundling multiple device images. * OBJECT — host object containing device code. * LIBRARY — device code library.

LTOIR: ltoir

Output format for compile(), link(), and as_bytes(). * PTX — PTX assembly text. * CUBIN — device-native CUDA binary. * LTOIR — LTO (link-time optimization) IR for later linking. * FATBIN — fat binary bundling multiple device images. * OBJECT — host object containing device code. * LIBRARY — device code library.

FATBIN: fatbin

Output format for compile(), link(), and as_bytes(). * PTX — PTX assembly text. * CUBIN — device-native CUDA binary. * LTOIR — LTO (link-time optimization) IR for later linking. * FATBIN — fat binary bundling multiple device images. * OBJECT — host object containing device code. * LIBRARY — device code library.

OBJECT: object

Output format for compile(), link(), and as_bytes(). * PTX — PTX assembly text. * CUBIN — device-native CUDA binary. * LTOIR — LTO (link-time optimization) IR for later linking. * FATBIN — fat binary bundling multiple device images. * OBJECT — host object containing device code. * LIBRARY — device code library.

LIBRARY: library

Output format for compile(), link(), and as_bytes(). * PTX — PTX assembly text. * CUBIN — device-native CUDA binary. * LTOIR — LTO (link-time optimization) IR for later linking. * FATBIN — fat binary bundling multiple device images. * OBJECT — host object containing device code. * LIBRARY — device code library.