cuda.bindings._v2.nvrtc.get_optix_ir_size#

cuda.bindings._v2.nvrtc.get_optix_ir_size(intptr_t prog) → size_t#

nvrtcGetOptiXIRSize sets the value of optixir_size_ret with the size of the OptiX IR generated by the previous compilation of prog. The value of nvrtcGetOptiXIRSize is set to 0 if the program was compiled with options incompatible with OptiX IR generation.

Parameters:

prog (intptr_t) – CUDA Runtime Compilation program.

Returns:

Size of the generated LTO IR.

Return type:

size_t

See also

nvrtcGetOptiXIRSize