Exemple #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);
         }
     });
 }
Exemple #2
0
 public bool Equals(CUstream other) { return other.Handle.Equals(Handle); }
Exemple #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);
Exemple #4
0
 public bool Equals(CUstream other)
 {
     return(other.Handle.Equals(Handle));
 }