Library/ManagedCuda/CudaContext.cs
/// <summary>
/// Load a ptx module from image as stream and return directly a wrapped CudaKernel
/// </summary>
/// <param name="moduleImage">Module image (cubin or PTX) as stream</param>
/// <param name="kernelName">The kernel name as defined in the *.cu file</param>
/// <param name="options">JIT-compile options. Only if module image is a ptx module</param>
/// <param name="values">JIT-compilt options values. Only if module image is a ptx module</param>
/// <returns></returns>
Load a ptx module from image as stream and return directly a wrapped CudaKernel
Load a ptx module from image as stream and return directly a wrapped CudaKernel
public CudaKernel LoadKernelPTX(System.IO.Stream moduleImage, string kernelName, CUJITOption[] options, object[] values)
		{
			if (disposed) throw new ObjectDisposedException(this.ToString());
			CUmodule hcuModule = LoadModulePTX(moduleImage, options, values);
			CudaKernel kernel = new CudaKernel(kernelName, hcuModule, this);
			return kernel;
		}
public CudaKernel LoadKernelPTX ( System . IO . Stream moduleImage , string kernelName , CUJITOption [ ] options , object [ ] values ) { if ( disposed ) throw new ObjectDisposedException ( this . ToString ( ) ) ; CUmodule hcuModule = LoadModulePTX ( moduleImage , options , values ) ; CudaKernel kernel = new CudaKernel ( kernelName , hcuModule , this ) ; return kernel ; }
Load a ptx module from image as stream and return directly a wrapped CudaKernel
Load a ptx module from image as stream and return directly a wrapped CudaKernel
None
moduleImage
System.IO.Stream
Module image (cubin or PTX) as stream
Module image ( cubin or PTX ) as stream
kernelName
string
The kernel name as defined in the *.cu file
The kernel name as defined in the * . cu file
options
CUJITOption[]
JIT-compile options. Only if module image is a ptx module
JIT - compile options . Only if module image is a ptx module
values
object[]
JIT-compilt options values. Only if module image is a ptx module
JIT - compilt options values . Only if module image is a ptx module