Пример #1
0
 public static void cuEventRecord(CUevent hEvent, CUstream hStream)
 {
     Wrap(() =>
     {
         try
         {
             var error = nativeEventRecord(hEvent, hStream);
             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);
         }
     });
 }
Пример #2
0
 public bool Equals(CUstream other) { return other.Handle.Equals(Handle); }
Пример #3
0
 //http://developer.download.nvidia.com/compute/cuda/3_1/toolkit/docs/online/group__CUEVENT_g93468fbdae4190b79926381a90a94301.html
 private static extern CUresult nativeEventRecord(CUevent hEvent, CUstream hStream);
Пример #4
0
 public bool Equals(CUstream other)
 {
     return(other.Handle.Equals(Handle));
 }