Library/ManagedCuda/CudaContext.cs
/// <summary>
/// Load a CUBIN-module from file
/// </summary>
/// <param name="modulePath"></param>
/// <returns></returns>
Load a CUBIN-module from file
Load a CUBIN - module from file
public CUmodule LoadModule(string modulePath)
		{
			if (disposed) throw new ObjectDisposedException(this.ToString());
			CUResult res;
			CUmodule hcuModule = new CUmodule();
			res = DriverAPINativeMethods.ModuleManagement.cuModuleLoad(ref hcuModule, modulePath);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cuModuleLoad", res));
			if (res != CUResult.Success)
				throw new CudaException(res);
			return hcuModule;
		}
public CUmodule LoadModule ( string modulePath ) { if ( disposed ) throw new ObjectDisposedException ( this . ToString ( ) ) ; CUResult res ; CUmodule hcuModule = new CUmodule ( ) ; res = DriverAPINativeMethods . ModuleManagement . cuModuleLoad ( ref hcuModule , modulePath ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , res ) ) ; if ( res != CUResult . Success ) throw new CudaException ( res ) ; return hcuModule ; }
Load a CUBIN-module from file
Load a CUBIN - module from file
None
modulePath
string
None