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); } }); }
public bool Equals(CUstream other) { return other.Handle.Equals(Handle); }
//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);
public bool Equals(CUstream other) { return(other.Handle.Equals(Handle)); }