Georg commited on
Commit
f054fb1
·
1 Parent(s): b2624fb

Reduce to single CUDA arch (7.5) and limit parallel jobs to reduce memory usage

Browse files
Files changed (2) hide show
  1. Dockerfile +2 -0
  2. Dockerfile.base +2 -2
Dockerfile CHANGED
@@ -19,7 +19,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
19
  && rm -rf /var/lib/apt/lists/*
20
 
21
  # Build FoundationPose C++ extensions (requires GPU)
 
22
  WORKDIR /app/FoundationPose
 
23
  RUN cd bundlesdf/mycuda && pip install . --no-build-isolation
24
  RUN cd mycpp && python setup.py build_ext --inplace
25
 
 
19
  && rm -rf /var/lib/apt/lists/*
20
 
21
  # Build FoundationPose C++ extensions (requires GPU)
22
+ # MAX_JOBS=1 to reduce memory usage during compilation
23
  WORKDIR /app/FoundationPose
24
+ ENV MAX_JOBS=1
25
  RUN cd bundlesdf/mycuda && pip install . --no-build-isolation
26
  RUN cd mycpp && python setup.py build_ext --inplace
27
 
Dockerfile.base CHANGED
@@ -6,8 +6,8 @@ ENV CUDA_HOME=/usr/local/cuda
6
  ENV PATH=${CUDA_HOME}/bin:${PATH}
7
  ENV LD_LIBRARY_PATH=${CUDA_HOME}/lib64:${LD_LIBRARY_PATH}
8
 
9
- # Only build for T4 (7.5) and A100 (8.0) - HuggingFace hardware
10
- ENV TORCH_CUDA_ARCH_LIST="7.5;8.0"
11
 
12
  # Install minimal runtime dependencies
13
  # Remove problematic CUDA repo and install packages
 
6
  ENV PATH=${CUDA_HOME}/bin:${PATH}
7
  ENV LD_LIBRARY_PATH=${CUDA_HOME}/lib64:${LD_LIBRARY_PATH}
8
 
9
+ # Only build for T4 (7.5) - reduces compilation memory by 50%
10
+ ENV TORCH_CUDA_ARCH_LIST="7.5"
11
 
12
  # Install minimal runtime dependencies
13
  # Remove problematic CUDA repo and install packages