How to deal with no GPU during docker build time

I had a couple of errors. I thought the first one was due to the absence of GPU during the installation, but it turned out that it was actually second.

I fixed them both by:

  1. Running RUN apt update && apt install -y libpython3.10-dev before RUN python setup.py install --user
  2. Replacing RUN python setup.py install --user with RUN TORCH_CUDA_ARCH_LIST=Turing python setup.py install --user (added TORCH_CUDA_ARCH_LIST=Turing)

Hope it helped you

1 Like