Closed sandeepnmenon closed 3 years ago
Try downgrading your cudatoolkit to 11.0. I think your driver version mismatches with cudatoolkit's.
btw as an aside: your get_kernel_func
looks a bit nasty 😄 Maybe you would like to consider using cupy.RawModule
which does the same thing for you (but is a lot cleaner)?
(cupy.cuda.function.Module()
is internal API and we don't guarantee it's stable across versions.)
@leofang Thank you. matching the toolkit version with the driver worked. Also thank you for the suggestion. I tried it out and it works the same. Will make the change
Glad to know, @sandeepnmenon!
Issue: cupy.cuda.driver.CUDADriverError: CUDA_ERROR_INVALID_PTX: a PTX JIT compilation failed I installed cupy using the conda-forge channel
conda install -c conda-forge cupy
The error occurs in the Module.load function
Reproducible script
Environment (
conda list
):Details about
conda
and system (conda info
):