Library/ManagedCuda/NVRTC/NVRTCNativeMethods.cs
/// <summary>
/// creates an instance of ::nvrtcProgram with the
/// given input parameters, and sets the output parameter \p prog with it.
/// </summary>
/// <param name="prog">CUDA Runtime Compiler program.</param>
/// <param name="src">CUDA program source.</param>
/// <param name="name">CUDA program name.<para/>
/// name can be NULL; "default_program" is used when name is NULL.</param>
/// <param name="numHeaders">Number of headers used.<para/>
/// numHeaders must be greater than or equal to 0.</param>
/// <param name="headers">Sources of the headers.<para/>
/// headers can be NULL when numHeaders is 0.</param>
/// <param name="includeNames">Name of each header by which they can be included in the CUDA program source.<para/>
/// includeNames can be NULL when numHeaders is 0.</param>
/// <returns></returns>
creates an instance of ::nvrtcProgram with the
given input parameters, and sets the output parameter \p prog with it.
creates an instance of :: nvrtcProgram with the given input parameters and sets the output parameter \ p prog with it .
[DllImport(NVRTC_API_DLL_NAME)]
		public static extern nvrtcResult nvrtcCreateProgram(ref nvrtcProgram prog,
                               [MarshalAs(UnmanagedType.LPStr)] string src,
                               [MarshalAs(UnmanagedType.LPStr)] string name,
                               int numHeaders,
                               IntPtr[] headers,
                               IntPtr[] includeNames);
[ DllImport ( NVRTC_API_DLL_NAME ) ] public static extern nvrtcResult nvrtcCreateProgram ( ref nvrtcProgram prog , [ MarshalAs ( UnmanagedType . LPStr ) ] string src , [ MarshalAs ( UnmanagedType . LPStr ) ] string name , int numHeaders , IntPtr [ ] headers , IntPtr [ ] includeNames ) ;
creates an instance of ::nvrtcProgram with the
given input parameters, and sets the output parameter \p prog with it.
creates an instance of :: nvrtcProgram with the given input parameters and sets the output parameter \ p prog with it .
None
nvrtcProgram
ref
string
[MarshalAs(UnmanagedType.LPStr)]
numHeaders
int
Number of headers used.
numHeaders must be greater than or equal to 0.
Number of headers used . numHeaders must be greater than or equal to 0 .
headers
IntPtr[]
Sources of the headers.
headers can be NULL when numHeaders is 0.
Sources of the headers . headers can be NULL when numHeaders is 0 .
includeNames
IntPtr[]
Name of each header by which they can be included in the CUDA program source.
includeNames can be NULL when numHeaders is 0.
Name of each header by which they can be included in the CUDA program source . includeNames can be NULL when numHeaders is 0 .
prog
CUDA Runtime Compiler program.
CUDA Runtime Compiler program .
src
CUDA program source.
CUDA program source .
name
CUDA program name.
name can be NULL; "default_program" is used when name is NULL.
CUDA program name . name can be NULL ; " default_program " is used when name is NULL .