I'm creating a python application that uses cupy.RawKernal
. The application runs within a docker container using NVIDIA Container Toolkit. I'd like to avoid having the cupy.RawKernal
recompile every time I create a new container (happens frequently in development).
I've setup a volume mount like so:
docker run --runtime=nvidia -v ${HOME}/.cupy/kernel_cache:/home/app/.cupy/kernel_cache -d docker_image
After running the application, I see the .cubin
files in their respective locations in the container and on the host. However when I recreate the container, it still takes much longer to startup the first time it is run. The .cubin
files also do not get updated on the host or the container.
My first thought was a permissions issue, I've given full R/W permissions on the host folder with no effect.
Any thoughts? Thanks!