public static void cuFuncSetCacheConfig(CUfunction hfunc, CUfunc_cache config) { Wrap(() => { try { var error = nativeFuncSetCacheConfig(hfunc, config); if (error != CUresult.CUDA_SUCCESS) { throw new CudaException(error); } } catch (CudaException) { throw; } catch (DllNotFoundException dnfe) { throw new CudaException(CudaError.NoDriver, dnfe); } catch (Exception e) { throw new CudaException(CudaError.Unknown, e); } }); }
public static void cuFuncSetCacheConfig(CUfunction hfunc, CUfunc_cache config) { Wrap(() => { try { var error = nativeFuncSetCacheConfig(hfunc, config); if (error != CUresult.CUDA_SUCCESS) throw new CudaException(error); } catch (CudaException) { throw; } catch (DllNotFoundException dnfe) { throw new CudaException(CudaError.NoDriver, dnfe); } catch (Exception e) { throw new CudaException(CudaError.Unknown, e); } }); }
// http://developer.download.nvidia.com/compute/cuda/3_1/toolkit/docs/online/group__CUEXEC_g91d75e10ed90df3fd3ecf2488f2cb27f.html private static extern CUresult nativeFuncSetCacheConfig(CUfunction hfunc, CUfunc_cache config);
// http://developer.download.nvidia.com/compute/cuda/3_1/toolkit/docs/online/group__CUEXEC_g91d75e10ed90df3fd3ecf2488f2cb27f.html private static extern CUresult nativeFuncSetCacheConfig(CUfunction hfunc, CUfunc_cache config);
/// <summary> /// see CUDA doc; /// </summary> public static void FuncSetCacheConfig(CUfunction hfunc, CUfunc_cache config) { testResult(my.cuFuncSetCacheConfig(hfunc, config)); }