Fix multithread bug with CUDA driver API#916
Conversation
|
Python2 has a thread local storage bug. |
|
Thanks for the fix, LGTM for the code! I wasn't aware that calling runtime API once enables contexts for all devices.
Does that mean we no longer support multi-thread app on Python 2.7 to use CuPy? |
|
That is rare case. CuPy works correctly in almost case. |
|
Hmm, I think this is not a rare case, especially when user is running an inference task, which tends to reuse the memory block of the same size. Actually that's why I found issue #72 in production. However, I think this PR is acceptable if the workaround (e.g., call |
OK, I understand that this issue only occur in very rare case. I tested 100 times on Python 2.7 and could not reproduce this. |
|
I think it's OK to skip the test on Python 2.7. Could you please add decorator? Also, please resolve the conflicts. |
def7694 to
6f8a804
Compare
|
I fixed. |
|
Jenkins, test this please. |
|
LGTM! |
Fix multithread bug with CUDA driver API
FIx #72