pub unsafe extern "C" fn nvrtcCreateProgram(
    prog: *mut nvrtcProgram,
    src: *const c_char,
    name: *const c_char,
    numHeaders: c_int,
    headers: *const *const c_char,
    includeNames: *const *const c_char
) -> nvrtcResult
Expand description

\ingroup compilation \brief nvrtcCreateProgram creates an instance of nvrtcProgram with the given input parameters, and sets the output parameter \p prog with it.

\param [out] prog CUDA Runtime Compilation program. \param [in] src CUDA program source. \param [in] name CUDA program name.\n \p name can be \c NULL; \c “default_program” is used when \p name is \c NULL or “”. \param [in] numHeaders Number of headers used.\n \p numHeaders must be greater than or equal to 0. \param [in] headers Sources of the headers.\n \p headers can be \c NULL when \p numHeaders is 0. \param [in] includeNames Name of each header by which they can be included in the CUDA program source.\n \p includeNames can be \c NULL when \p numHeaders is 0. These headers must be included with the exact names specified here. \return

  • \link #nvrtcResult NVRTC_SUCCESS \endlink
  • \link #nvrtcResult NVRTC_ERROR_OUT_OF_MEMORY \endlink
  • \link #nvrtcResult NVRTC_ERROR_PROGRAM_CREATION_FAILURE \endlink
  • \link #nvrtcResult NVRTC_ERROR_INVALID_INPUT \endlink
  • \link #nvrtcResult NVRTC_ERROR_INVALID_PROGRAM \endlink

\see ::nvrtcDestroyProgram