Hello everyone,
This seemed to be a problem with the CUDA driver and not with the toolkit. The problem is that cudadrv.py tries to locate the runtime library libcuda.so file and this is not found because WSL/WSL2 has a different location for it.
The solution was to append “/usr/lib/wsl/lib” to LD_LIBRARY_PATH (either in .bashrc or prior to execution should work). After that, the cuda driver management inside cryosparc can detect the library and everything works just fine both inside Scipion and in standalone.
The long term solution could be for cryosparc to detect it’s running inside of WSL2 and adding /usr/lib/wsl/lib to the path automatically, I guess.
Cheers,
Mikel.