2
in desaturate_image
    redarray_gpu = cuda.mem_alloc(self.redarray.nbytes)
pycuda._driver.LogicError: cuMemAlloc failed: initialization error

I get the above error on this line:

redarray_gpu = cuda.mem_alloc(self.redarray.nbytes)

What could be the reason?

Sachin Titus
  • 1,960
  • 3
  • 23
  • 41

1 Answers1

10
import pycuda.autoinit

This import statement fixed the issue. My best guess is that the device was not initialized

Sachin Titus
  • 1,960
  • 3
  • 23
  • 41