Library/ManagedCuda/CudaContext.cs
/// <summary>
/// Load a PTX module from file and return directly a wrapped CudaKernel
/// </summary>
/// <param name="modulePath">Path and name of the ptx-module file</param>
/// <param name="kernelName">The kernel name as defined in the *.cu file</param>
/// <returns></returns>
Load a PTX module from file and return directly a wrapped CudaKernel
Load a PTX module from file and return directly a wrapped CudaKernel
public CudaKernel LoadKernelPTX(string modulePath, string kernelName)
		{
			if (disposed) throw new ObjectDisposedException(this.ToString());
			CUmodule hcuModule = LoadModulePTX(modulePath, null, null);
			CudaKernel kernel = new CudaKernel(kernelName, hcuModule, this);
			return kernel;
		}
public CudaKernel LoadKernelPTX ( string modulePath , string kernelName ) { if ( disposed ) throw new ObjectDisposedException ( this . ToString ( ) ) ; CUmodule hcuModule = LoadModulePTX ( modulePath , null , null ) ; CudaKernel kernel = new CudaKernel ( kernelName , hcuModule , this ) ; return kernel ; }
Load a PTX module from file and return directly a wrapped CudaKernel
Load a PTX module from file and return directly a wrapped CudaKernel
None
modulePath
string
Path and name of the ptx-module file
Path and name of the ptx - module file
kernelName
string
The kernel name as defined in the *.cu file
The kernel name as defined in the * . cu file