Skip to content

Commit

Permalink
remove env variables in Docker entrypoint -- seem to slow down torch …
Browse files Browse the repository at this point in the history
…multiprocessing somehow
  • Loading branch information
svandenhaute committed Jun 27, 2024
1 parent fe09240 commit 65ed642
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ ARG PARSL_VERSION
ARG GPU_LIBRARY
RUN /bin/bash -c -o pipefail \
"source /opt/venv/bin/activate && \
pip install --no-cache-dir wandb plotly plumed && \
pip install --no-cache-dir wandb plotly plumed 'numpy<2.0.0' && \
pip install --no-cache-dir git+https://github.com/i-pi/i-pi.git@66eba29 && \
pip install --no-cache-dir torch==2.1 --index-url https://download.pytorch.org/whl/${GPU_LIBRARY} && \
pip install --no-cache-dir git+https://github.com/acesuit/[email protected]"
Expand All @@ -69,10 +69,6 @@ RUN /bin/bash -c -o pipefail \
RUN echo '#!/bin/bash' >> /opt/entry.sh && \
echo 'source /opt/venv/bin/activate' >> /opt/entry.sh && \
echo 'export PLUMED_KERNEL=/usr/local/plumed/lib/libplumedKernel.so' >> /opt/entry.sh && \
echo 'export OMP_PROC_BIND=close' >> /opt/entry.sh && \
echo 'export OMP_SCHEDULE=static' >> /opt/entry.sh && \
echo 'export KMP_AFFINITY=granularity=fine,compact,1,0' >> /opt/entry.sh && \
echo 'export KMP_BLOCKTIME=1' >> /opt/entry.sh && \
echo '"$@"' >> /opt/entry.sh
RUN chmod +x /opt/entry.sh
ENTRYPOINT ["/opt/entry.sh"]
Expand Down

0 comments on commit 65ed642

Please sign in to comment.