FFI and CUDA stream capture errors #26825
Unanswered
tilmantroester
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When running CUDA code through FFI, I sometimes get these errors:
Frustratingly, this only happens within a larger program and not for smaller test cases with just the FFI call.
Setting
XLA_FLAGSG=--xla_gpu_enable_command_buffer=
to disable CUDA graphs (as found here) seems to prevent this error.My understanding of XLA and CUDA is limited, so I am a bit stuck on how to address this.
cudaMallocManaged
, which gives a code 900 error:operation not permitted when stream is capturing
. Are there other ways to allocate memory within the FFI call but outside CUDA kernels?Beta Was this translation helpful? Give feedback.
All reactions