Skip to content

Commit

Permalink
use OMP_PROC_BIND=close to not tank torch performance during distribu…
Browse files Browse the repository at this point in the history
…ted training
  • Loading branch information
svandenhaute committed Jun 12, 2024
1 parent f51c51c commit e739d0b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ 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 '"$@"' >> /opt/entry.sh
RUN chmod +x /opt/entry.sh
ENTRYPOINT ["/opt/entry.sh"]
Expand Down

0 comments on commit e739d0b

Please sign in to comment.