Esempio n. 1
0
 /// <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);
Esempio n. 2
0
 /// <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);
Esempio n. 3
0
 /// <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);
Esempio n. 4
0
 /// <summary cref="CudaAPI.SetCacheConfig(CudaCacheConfiguration)"/>
 public override CudaError SetCacheConfig(CudaCacheConfiguration config) =>
 throw new NotSupportedException(RuntimeErrorMessages.CudaNotSupported);
Esempio n. 5
0
 /// <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);
Esempio n. 6
0
 private static extern CudaError cuCtxSetCacheConfig(
     [In] CudaCacheConfiguration config);
Esempio n. 7
0
 private static extern CudaError cuCtxGetCacheConfig(
     [Out] out CudaCacheConfiguration pconfig);
Esempio n. 8
0
 /// <summary cref="CudaAPI.SetCacheConfig(CudaCacheConfiguration)"/>
 public override CudaError SetCacheConfig(CudaCacheConfiguration config)
 {
     return(cuCtxSetCacheConfig(config));
 }
Esempio n. 9
0
 /// <summary cref="CudaAPI.GetCacheConfig(out CudaCacheConfiguration)"/>
 public override CudaError GetCacheConfig(out CudaCacheConfiguration config)
 {
     return(cuCtxGetCacheConfig(out config));
 }