cuda.bindings._v2.nvrtc.create_program#

cuda.bindings._v2.nvrtc.create_program(
bytes src,
name,
headers=None,
include_names=None,
) → intptr_t#

nvrtcCreateProgram creates an instance of nvrtcProgram with the given input parameters.

Parameters:
  • src (bytes) – CUDA program source.

  • name (bytes | None) – CUDA program name. None or "" causes "default_program" to be used.

  • headers (list[bytes] | None) – Sources of the headers. None is treated as an empty list (no headers).

  • include_names (list[bytes] | None) – Name of each header by which it can be included in the CUDA program source. Must have the same length as headers.

Returns:

Opaque handle to the created program. Pass to destroy_program() when done.

Return type:

intptr_t

See also

nvrtcCreateProgram