Library/ManagedCuda/CudaContext.cs
/// <summary>
/// On devices where the L1 cache and shared memory use the same hardware
/// resources, this returns the preferred cache configuration
/// for the current context. This is only a preference. The driver will use
/// the requested configuration if possible, but it is free to choose a different
/// configuration if required to execute functions.<para/>
/// This will return <see cref="CUFuncCache.PreferNone"/> on devices
/// where the size of the L1 cache and shared memory are fixed.
/// </summary>
/// <returns></returns>
On devices where the L1 cache and shared memory use the same hardware
resources, this returns the preferred cache configuration
for the current context. This is only a preference. The driver will use
the requested configuration if possible, but it is free to choose a different
configuration if required to execute functions.
This will return  on devices
where the size of the L1 cache and shared memory are fixed.
On devices where the L1 cache and shared memory use the same hardware resources this returns the preferred cache configuration for the current context . This is only a preference . The driver will use the requested configuration if possible but it is free to choose a different configuration if required to execute functions . This will return on devices where the size of the L1 cache and shared memory are fixed .
public CUFuncCache GetCacheConfig()
		{
			if (disposed) throw new ObjectDisposedException(this.ToString());
			CUResult res;
			CUFuncCache cache = new CUFuncCache();
			res = DriverAPINativeMethods.ContextManagement.cuCtxGetCacheConfig(ref cache);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cuCtxGetCacheConfig", res));
			if (res != CUResult.Success) throw new CudaException(res);
			return cache;
		}
public CUFuncCache GetCacheConfig ( ) { if ( disposed ) throw new ObjectDisposedException ( this . ToString ( ) ) ; CUResult res ; CUFuncCache cache = new CUFuncCache ( ) ; res = DriverAPINativeMethods . ContextManagement . cuCtxGetCacheConfig ( ref cache ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , res ) ) ; if ( res != CUResult . Success ) throw new CudaException ( res ) ; return cache ; }
On devices where the L1 cache and shared memory use the same hardware
resources, this returns the preferred cache configuration
for the current context.
On devices where the L1 cache and shared memory use the same hardware resources this returns the preferred cache configuration for the current context .
None