pub unsafe extern "C" fn nvrtcCompileProgram(
    prog: nvrtcProgram,
    numOptions: c_int,
    options: *const *const c_char
) -> nvrtcResult
Expand description

\ingroup compilation \brief nvrtcCompileProgram compiles the given program.

\param [in] prog CUDA Runtime Compilation program. \param [in] numOptions Number of compiler options passed. \param [in] options Compiler options in the form of C string array.\n \p options can be \c NULL when \p numOptions is 0.

\return

  • \link #nvrtcResult NVRTC_SUCCESS \endlink
  • \link #nvrtcResult NVRTC_ERROR_OUT_OF_MEMORY \endlink
  • \link #nvrtcResult NVRTC_ERROR_INVALID_INPUT \endlink
  • \link #nvrtcResult NVRTC_ERROR_INVALID_PROGRAM \endlink
  • \link #nvrtcResult NVRTC_ERROR_INVALID_OPTION \endlink
  • \link #nvrtcResult NVRTC_ERROR_COMPILATION \endlink
  • \link #nvrtcResult NVRTC_ERROR_BUILTIN_OPERATION_FAILURE \endlink
  • \link #nvrtcResult NVRTC_ERROR_TIME_FILE_WRITE_FAILED \endlink

It supports compile options listed in \ref options.