Poll the signal from one thread instead of all

[ROCm/rocshmem commit: 24b928a007]
This commit is contained in:
Brandon Potter
2024-09-27 15:17:57 -05:00
orang tua 25d7d7fccd
melakukan cd44115728
+5 -2
Melihat File
@@ -78,9 +78,12 @@ class Notifier {
}
}
while (detail::atomic::load<uint32_t, scope>(&signal_, orders_) != done) {
;
if (executor) {
while (detail::atomic::load<uint32_t, scope>(&signal_, orders_) != done) {
;
}
}
__syncthreads();
}
private: