Lines Matching refs:T

21 template <DeviceType T, unsigned long flags>
22 …_VISIBILITY_INTERNAL CUPMEventPool : impl::Interface<T>, public RegisterFinalizeable<CUPMEventPool…
24 PETSC_CUPM_INHERIT_INTERFACE_TYPEDEFS_USING(T);
35 template <DeviceType T, unsigned long flags>
36 inline PetscErrorCode CUPMEventPool<T, flags>::finalize_() noexcept in finalize_()
46 template <DeviceType T, unsigned long flags>
47 inline PetscErrorCode CUPMEventPool<T, flags>::allocate(cupmEvent_t *event) noexcept in allocate()
61 template <DeviceType T, unsigned long flags>
62 inline PetscErrorCode CUPMEventPool<T, flags>::deallocate(cupmEvent_t *in_event) noexcept in deallocate()
76 template <DeviceType T, unsigned long flags>
77 CUPMEventPool<T, flags> &cupm_event_pool() noexcept in cupm_event_pool()
79 static CUPMEventPool<T, flags> pool; in cupm_event_pool()
84 template <DeviceType T>
85 inline auto cupm_fast_event_pool() noexcept -> decltype(cupm_event_pool<T, impl::Interface<T>::cupm… in cupm_fast_event_pool()
87 return cupm_event_pool<T, impl::Interface<T>::cupmEventDisableTiming>(); in cupm_fast_event_pool()
91 template <DeviceType T>
92 inline auto cupm_timer_event_pool() noexcept -> decltype(cupm_event_pool<T, impl::Interface<T>::cup… in cupm_timer_event_pool()
94 return cupm_event_pool<T, impl::Interface<T>::cupmEventDefault>(); in cupm_timer_event_pool()
100 template <DeviceType T>
101 class PETSC_SINGLE_LIBRARY_VISIBILITY_INTERNAL CUPMEvent : impl::Interface<T>, public memory::PoolA…
105 PETSC_CUPM_INHERIT_INTERFACE_TYPEDEFS_USING(T);
126 template <DeviceType T>
127 inline CUPMEvent<T>::~CUPMEvent() noexcept in ~CUPMEvent()
130 PetscCallAbort(PETSC_COMM_SELF, cupm_fast_event_pool<T>().deallocate(&event_)); in ~CUPMEvent()
134 template <DeviceType T>
135 inline CUPMEvent<T>::CUPMEvent(CUPMEvent &&other) noexcept : pool_type(std::move(other)), event_(ut… in CUPMEvent()
137 static_assert(std::is_empty<impl::Interface<T>>::value, "");
140 template <DeviceType T>
141 inline CUPMEvent<T> &CUPMEvent<T>::operator=(CUPMEvent &&other) noexcept in operator =()
146 PetscCallAbort(PETSC_COMM_SELF, cupm_fast_event_pool<T>().deallocate(&event_)); in operator =()
152 template <DeviceType T>
153 inline typename CUPMEvent<T>::cupmEvent_t CUPMEvent<T>::get() noexcept in get()
156 …if (PetscUnlikely(!event_)) PetscCallAbort(PETSC_COMM_SELF, cupm_fast_event_pool<T>().allocate(&ev… in get()
160 template <DeviceType T>
161 inline PetscErrorCode CUPMEvent<T>::record(cupmStream_t stream) noexcept in record()
168 template <DeviceType T>
169 inline CUPMEvent<T>::operator bool() const noexcept in operator bool()