cuda.bindings._v2.nvrtc.get_lowered_name#

cuda.bindings._v2.nvrtc.get_lowered_name(intptr_t prog, name_expression) → bytes#

nvrtcGetLoweredName extracts the lowered (mangled) name for a global function or device/__constant__ variable, and updates *lowered_name to point to it. The memory containing the name is released when the NVRTC program is destroyed by nvrtcDestroyProgram. The identical name expression must have been previously provided to nvrtcAddNameExpression.

Parameters:
  • prog (intptr_t) – CUDA Runtime Compilation program.

  • name_expression (str) – constant expression denoting the address of a global function or device/__constant__ variable.

Returns:

initialized by the function to point to a C string

containing the lowered (mangled) name corresponding to the provided name expression.

Return type:

bytes

See also

nvrtcGetLoweredName