1

Closed

CudaContext.SetCacheConfig doesn't work (it's a no-op)

description

CudaContext.SetCacheConfig is a no-op at present, as the input argument is unused in the method.
public void SetCacheConfig(CUFuncCache cacheConfig) // <-- param currently unused.
{
    if (disposed) throw new ObjectDisposedException(this.ToString());
    CUResult res;
    CUFuncCache cache = new CUFuncCache(); // <-- remove
    res = DriverAPINativeMethods.ContextManagement.cuCtxSetCacheConfig(cache); // <-- should be cacheConfig
    Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cuCtxSetCacheConfig", res));
    if (res != CUResult.Success) throw new CudaException(res);
}
Closed Nov 6, 2013 at 9:13 AM by kunzmi

comments