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