Skip to content

pycuda._driver.LogicError: cuMemAlloc failed: context is destroyed (caused by scikit-cuda or even CUDA itself?) #356

Discussion options

You must be logged in to vote

By using pycuda.autoinit, you're putting pycuda in charge of context management. That's not typically a good recipe for interacting with libraries that use the CUDA runtime API (like cuFFT, to my understanding). You might be better off retaining the "primary context" made by/for the runtime API and using that instead:

https://documen.tician.de/pycuda/driver.html#pycuda.driver.Device.retain_primary_context

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@inducer
Comment options

@dimitsev
Comment options

@dimitsev
Comment options

@inducer
Comment options

@dimitsev
Comment options

Answer selected by dimitsev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #355 on May 12, 2022 16:19.