Poll the signal from one thread instead of all
Αυτή η υποβολή περιλαμβάνεται σε:
1 γονέας
db221b022a
υποβολή
0659f8d93c
1 file changed
+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
Block a user