Update Notifier fixture to Block
Этот коммит содержится в:
1 родитель
51c33b2a66
Коммит
5b42cff96c
4 files changed
+43
-30
No files matched your search
@@ -33,15 +33,19 @@ template<detail::atomic::rocshmem_memory_scope scope>
|
||||
class Notifier {
|
||||
public:
|
||||
__device__ uint64_t load() {
|
||||
return detail::atomic::load<uint64_t, scope>(&value_, orders);
|
||||
return detail::atomic::load<uint64_t, scope>(&value_, orders);
|
||||
}
|
||||
|
||||
__device__ void store(uint64_t val) {
|
||||
detail::atomic::store<uint64_t, scope>(&value_, val, orders);
|
||||
detail::atomic::store<uint64_t, scope>(&value_, val, orders);
|
||||
}
|
||||
|
||||
__device__ void fence() {
|
||||
detail::atomic::thread_fence<scope>();
|
||||
detail::atomic::threadfence<scope>();
|
||||
}
|
||||
|
||||
__device__ void sync() {
|
||||
detail::atomic::sync<scope>();
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
Reference in new issue
Block a user