cuda-python icon indicating copy to clipboard operation
cuda-python copied to clipboard

Compatibility with pytorch when backward propagation is required

Open Ed4everU opened this issue 2 years ago • 0 comments

Dear Developers,

I find that, in my project, if I initialize the cuda-python package with cuInit(0), then when using the pytorch to train a neural network, the torch package will raise an error claiming that its c++ backend engine can't find the right CUDA stream. I've checked other parts thoughly and, only when seperating the usage of these two packages into two seperate functions, i.e. isolating the different streams, things can workout.

I'm wondering if there's a good solution for this issue or some abuse need to be avoided to eliminate this issue.

PS: I'm also wondering if there'll be further python wrapper support for cusolver, cublas like this user-friendly and highly productive package?

Looking forward to hearing from you! Great thanks for your attention!

Best regards, Mingran

Ed4everU avatar Sep 28 '23 10:09 Ed4everU