We’re trying to install the CryoSPARC worker package on a CPU-only system with the --nogpu option. However, the install always fails at the following:
In file included from src/cpp/cuda.cpp:4:
src/cpp/cuda.hpp:14:10: fatal error: cuda.h: No such file or directory
14 | #include <cuda.h>
| ^~~~~~~~
compilation terminated.
error: command '/usr/bin/gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> pycuda
We have no need of pycuda on this machine since it doesn’t have any GPUs. Adding a GPU is not feasible since it is a 1U server with minimal space available.
I have CUDA installed on a system with no nVidia GPU (you don’t need a GPU to run nvcc). It’s failing because it can’t find a CUDA header, if you install the CUDA toolkit (not the drivers) will installation proceed?
hey, I believe that the issue can be with cuda12, according to this:
I tried installing cryosparc v4.1.2 and v4.2.1 on cuda12.1 and failed while installing pycuda with the same error as you. But when I discovered this issue and used cuda11.8, everything worked fine!