Ejemplo n.º 1
0
 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);
         }
     });
 }
Ejemplo n.º 2
0
 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);
         }
     });
 }
Ejemplo n.º 3
0
 // 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);
Ejemplo n.º 4
0
 // 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);
Ejemplo n.º 5
0
 /// <summary>
 /// see CUDA doc;
 /// </summary>
 public static void FuncSetCacheConfig(CUfunction hfunc, CUfunc_cache config)
 {
     testResult(my.cuFuncSetCacheConfig(hfunc, config));
 }