cuda.bindings._v2.nvrtc.create_program#
- cuda.bindings._v2.nvrtc.create_program(
- bytes src,
- name,
- headers=None,
- include_names=None,
nvrtcCreateProgram creates an instance of nvrtcProgram with the given input parameters.
- Parameters:
src (bytes) – CUDA program source.
name (bytes | None) – CUDA program name.
Noneor""causes"default_program"to be used.headers (list[bytes] | None) – Sources of the headers.
Noneis 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