Skip to content

Commit

Permalink
Merge pull request #27 from PawseySC/cdp-realtensorflow
Browse files Browse the repository at this point in the history
Adds TensorFlow dockerfile.
  • Loading branch information
pelahi authored Jan 3, 2024
2 parents 0884cdb + 62be9e8 commit 4fe230d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tensorflow/tensorflow.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM quay.io/pawsey/rocm-mpich-base:rocm5.6.0-mpich3.4.3-ubuntu22

RUN python3 -m pip install --prefix=/usr --force-reinstall --upgrade --no-cache-dir "tensorflow-rocm==2.12.1.570"

ENV HOROVOD_WITHOUT_MXNET=1
ENV HOROVOD_WITHOUT_PYTORCH=1
ENV HOROVOD_GPU=ROCM
ENV HOROVOD_GPU_OPERATIONS=NCCL
ENV HOROVOD_WITHOUT_GLOO=1
ENV HOROVOD_WITH_TENSORFLOW=1
ENV HOROVOD_ROCM_PATH=/opt/rocm
ENV HOROVOD_RCCL_HOME=/opt/rocm/rccl
ENV RCCL_INCLUDE_DIRS=/opt/rocm/rccl/include
ENV HOROVOD_RCCL_LIB=/opt/rocm/rccl/lib
ENV HCC_AMDGPU_TARGET=gfx90a

RUN python3 -m pip install --prefix=/usr --force-reinstall --upgrade --no-cache-dir "horovod==0.28.1"
RUN echo 'export TF_CPP_MIN_LOG_LEVEL=3' >> /.singularity.d/env/91-environment.sh

0 comments on commit 4fe230d

Please sign in to comment.