Poll the signal from one thread instead of all
[ROCm/rocshmem commit: 0659f8d93c]
Ta zmiana jest zawarta w:
%! (template.HTML=
Brandon Potter)złożyło 2024-09-27 15:17:57 -05:00
1 rodzic
25d7d7fccd
złożenie
c097da70c4
Plik 1 zmieniony
+5
-2
@@ -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:
|
||||
|
||||
Reference in new issue
Zablokuj użytkownika