Library/ManagedCuda/CudaContext.cs
/// <summary>
/// Returns the current shared memory configuration for the current context.
/// </summary>
Returns the current shared memory configuration for the current context.
Returns the current shared memory configuration for the current context .
public CUsharedconfig GetSharedMemConfig()
		{
			if (disposed) throw new ObjectDisposedException(this.ToString());
			CUResult res;
			CUsharedconfig config = new CUsharedconfig();
			res = DriverAPINativeMethods.ContextManagement.cuCtxGetSharedMemConfig(ref config);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cuCtxGetSharedMemConfig", res));
			if (res != CUResult.Success)
				throw new CudaException(res);
			return config;
		}
public CUsharedconfig GetSharedMemConfig ( ) { if ( disposed ) throw new ObjectDisposedException ( this . ToString ( ) ) ; CUResult res ; CUsharedconfig config = new CUsharedconfig ( ) ; res = DriverAPINativeMethods . ContextManagement . cuCtxGetSharedMemConfig ( ref config ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , res ) ) ; if ( res != CUResult . Success ) throw new CudaException ( res ) ; return config ; }
Returns the current shared memory configuration for the current context.
Returns the current shared memory configuration for the current context .