Library/ManagedCuda/CudaKernel.cs
/// <summary>
/// On devices where the L1 cache and shared memory use the same hardware resources, this sets through <c>config</c>
/// the preferred cache configuration for the device function <c>hfunc</c>. 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 <c>hfunc</c>. <para/>
/// This setting does nothing on devices where the size of the L1 cache and shared memory are fixed.<para/>
/// Switching between configuration modes may insert a device-side synchronization point for streamed kernel launches.<para/>
/// The supported cache modes are defined in <see cref="CUFuncCache"/>
/// </summary>
/// <param name="config">Requested cache configuration</param>
On devices where the L1 cache and shared memory use the same hardware resources, this sets through confighfunchfunc
This setting does nothing on devices where the size of the L1 cache and shared memory are fixed.
Switching between configuration modes may insert a device-side synchronization point for streamed kernel launches.
The supported cache modes are defined in
On devices where the L1 cache and shared memory use the same hardware resources this sets through confighfunchfunc This setting does nothing on devices where the size of the L1 cache and shared memory are fixed . Switching between configuration modes may insert a device - side synchronization point for streamed kernel launches . The supported cache modes are defined in
public void SetCacheConfig(CUFuncCache config)
		{
			CUResult res;
			res = DriverAPINativeMethods.FunctionManagement.cuFuncSetCacheConfig(_function, config);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cuFuncSetCacheConfig", res));
			if (res != CUResult.Success)
				throw new CudaException(res);
		}
public void SetCacheConfig ( CUFuncCache config ) { CUResult res ; res = DriverAPINativeMethods . FunctionManagement . cuFuncSetCacheConfig ( _function , config ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , res ) ) ; if ( res != CUResult . Success ) throw new CudaException ( res ) ; }
On devices where the L1 cache and shared memory use the same hardware resources, this sets through confighfunchfunc
This setting does nothing 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 sets through confighfunchfunc This setting does nothing on devices where the size of the L1 cache and shared memory are fixed .
config
CUFuncCache
Requested cache configuration
Requested cache configuration