You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do not increment NumComputeStreams / NumTransferStreams
before cuStreamCreateWithPriority returns. Too early increment
caused other threads to read the incremented count before a CUDA
stream was created and try to use an invalid stream handle,
causing crashes.
The construction:
```
if (condition) {
lock_this_scope
if (condition) {
create_object
update_condition
}
}
use_object
```
is only thread-safe if update_condition happens after create_object
is completed.
0 commit comments