예제 #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
파일: CUstream.cs 프로젝트: xeno-by/libcuda
 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));
 }