Library/ManagedCuda/CudaContext.cs
/// <summary>
/// Load a FatBinary module from image as stream and return directly a wrapped CudaKernel
/// </summary>
/// <param name="moduleImage">Module image (fat binary) as stream</param>
/// <param name="kernelName">The kernel name as defined in the *.cu file</param>
/// <returns></returns>
Load a FatBinary module from image as stream and return directly a wrapped CudaKernel
Load a FatBinary module from image as stream and return directly a wrapped CudaKernel
public CudaKernel LoadKernelFatBin(System.IO.Stream moduleImage, string kernelName)
		{
			if (disposed) throw new ObjectDisposedException(this.ToString());
			CUmodule hcuModule = LoadModuleFatBin(moduleImage);
			CudaKernel kernel = new CudaKernel(kernelName, hcuModule, this);
			return kernel;
		}
public CudaKernel LoadKernelFatBin ( System . IO . Stream moduleImage , string kernelName ) { if ( disposed ) throw new ObjectDisposedException ( this . ToString ( ) ) ; CUmodule hcuModule = LoadModuleFatBin ( moduleImage ) ; CudaKernel kernel = new CudaKernel ( kernelName , hcuModule , this ) ; return kernel ; }
Load a FatBinary module from image as stream and return directly a wrapped CudaKernel
Load a FatBinary module from image as stream and return directly a wrapped CudaKernel
None
moduleImage
System.IO.Stream
Module image (fat binary) as stream
Module image ( fat binary ) as stream
kernelName
string
The kernel name as defined in the *.cu file
The kernel name as defined in the * . cu file