/// <summary> /// Resolves the cache configuration. /// </summary> /// <param name="config">The resolved cache configuration.</param> /// <returns>The error status.</returns> public CudaError GetCacheConfig(out CudaCacheConfiguration config) => cuCtxGetCacheConfig(out config);
/// <summary> /// Updates the cache configuration. /// </summary> /// <param name="config">The updated cache configuration.</param> /// <returns>The error status.</returns> public CudaError SetCacheConfig(CudaCacheConfiguration config) => cuCtxSetCacheConfig(config);
/// <summary> /// Updates the cache configuration. /// </summary> /// <param name="config">The updated cache configuration.</param> /// <returns>The error status.</returns> public abstract CudaError SetCacheConfig(CudaCacheConfiguration config);
/// <summary cref="CudaAPI.SetCacheConfig(CudaCacheConfiguration)"/> public override CudaError SetCacheConfig(CudaCacheConfiguration config) => throw new NotSupportedException(RuntimeErrorMessages.CudaNotSupported);
/// <summary> /// Resolves the cache configuration. /// </summary> /// <param name="config">The resolved cache configuration.</param> /// <returns>The error status.</returns> public abstract CudaError GetCacheConfig(out CudaCacheConfiguration config);
private static extern CudaError cuCtxSetCacheConfig( [In] CudaCacheConfiguration config);
private static extern CudaError cuCtxGetCacheConfig( [Out] out CudaCacheConfiguration pconfig);
/// <summary cref="CudaAPI.SetCacheConfig(CudaCacheConfiguration)"/> public override CudaError SetCacheConfig(CudaCacheConfiguration config) { return(cuCtxSetCacheConfig(config)); }
/// <summary cref="CudaAPI.GetCacheConfig(out CudaCacheConfiguration)"/> public override CudaError GetCacheConfig(out CudaCacheConfiguration config) { return(cuCtxGetCacheConfig(out config)); }