Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +5 -6
Dockerfile
CHANGED
@@ -47,16 +47,15 @@ ENV PYTHONUNBUFFERED=1
|
|
47 |
|
48 |
# ENV TORCH_CUDA_ARCH_LIST="6.0 6.1 7.0 7.5 8.0 8.6"
|
49 |
# ENV TCNN_CUDA_ARCHITECTURES=86;80;75;70;61;60
|
50 |
-
|
51 |
|
52 |
# Set the environment variable to specify the GPU device
|
53 |
-
ENV CUDA_HOME=/
|
54 |
# ENV CUDA_DEVICE_ORDER=PCI_BUS_ID
|
55 |
# ENV CUDA_VISIBLE_DEVICES=0
|
56 |
|
57 |
-
|
58 |
-
|
59 |
-
# ENV LIBRARY_PATH=${CUDA_HOME}/lib64/stubs:/usr/local/lib/python3.8/site-packages/open3d:/usr/lib:/usr/lib64:${LIBRARY_PATH}
|
60 |
|
61 |
# Set home to the user's home directory
|
62 |
ENV HOME=/home/user \
|
@@ -73,7 +72,7 @@ RUN pip install --upgrade pip ninja
|
|
73 |
RUN pip install setuptools==69.5.1
|
74 |
RUN pip install torch==1.11.0+cu113 torchvision==0.12.0+cu113 -f https://download.pytorch.org/whl/cu113/torch_stable.html
|
75 |
|
76 |
-
RUN python -c "import torch, os; print(torch.version.cuda); print(os.environ.get('
|
77 |
COPY requirements.txt /tmp
|
78 |
RUN cd /tmp && pip install -r requirements.txt
|
79 |
|
|
|
47 |
|
48 |
# ENV TORCH_CUDA_ARCH_LIST="6.0 6.1 7.0 7.5 8.0 8.6"
|
49 |
# ENV TCNN_CUDA_ARCHITECTURES=86;80;75;70;61;60
|
50 |
+
ENV FORCE_CUDA=1
|
51 |
|
52 |
# Set the environment variable to specify the GPU device
|
53 |
+
ENV CUDA_HOME=/usr/local/cuda
|
54 |
# ENV CUDA_DEVICE_ORDER=PCI_BUS_ID
|
55 |
# ENV CUDA_VISIBLE_DEVICES=0
|
56 |
|
57 |
+
ENV PATH=${CUDA_HOME}/bin:/home/${USER_NAME}/.local/bin:/usr/bin:${PATH}
|
58 |
+
ENV LD_LIBRARY_PATH=${CUDA_HOME}/lib64:/usr/lib:/usr/lib64:${LD_LIBRARY_PATH}
|
|
|
59 |
|
60 |
# Set home to the user's home directory
|
61 |
ENV HOME=/home/user \
|
|
|
72 |
RUN pip install setuptools==69.5.1
|
73 |
RUN pip install torch==1.11.0+cu113 torchvision==0.12.0+cu113 -f https://download.pytorch.org/whl/cu113/torch_stable.html
|
74 |
|
75 |
+
RUN python -c "import torch, os; print(torch.version.cuda); print(os.environ.get('CUDA_HOME'))"
|
76 |
COPY requirements.txt /tmp
|
77 |
RUN cd /tmp && pip install -r requirements.txt
|
78 |
|