Skip to content

Commit

Permalink
Update Dockerfile-rocm
Browse files Browse the repository at this point in the history
  • Loading branch information
Delaunay authored Nov 22, 2024
1 parent ab6b412 commit b0cfe43
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions docker/Dockerfile-rocm
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

FROM ubuntu:22.04

# Arguments
Expand All @@ -10,16 +11,17 @@ ARG CONFIG=standard.yaml
ENV MILABENCH_CONFIG_NAME=$CONFIG
ENV MILABENCH_DOCKER=1

ARG PYTHON="3.10"


# Paths
# -----

ENV MILABENCH_CONFIG=/milabench/milabench/config/$MILABENCH_CONFIG_NAME
ENV MILABENCH_BASE=/milabench/envs
ENV MILABENCH_OUTPUT=/milabench/results/
ENV MILABENCH_ARGS=""
ENV CONDA_PATH=/opt/anaconda

ENV MILABENCH_OUTPUT="$MILABENCH_BASE/runs"
ENV BENCHMARK_VENV="$MILABENCH_BASE/venv"

# Copy milabench
# --------------
Expand All @@ -37,22 +39,13 @@ COPY . /milabench/milabench/
# build-essential: for rust

RUN apt-get update &&\
apt-get install -y git build-essential curl &&\
apt-get install -y git build-essential curl python3.10 python-is-python3 python3-pip &&\
apt-get clean &&\
rm -rf /var/lib/apt/lists/*

RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"

# Install Python
# --------------

# Install anaconda because milabench will need it later anyway
RUN curl https://repo.anaconda.com/miniconda/Miniconda3-py39_23.1.0-1-Linux-x86_64.sh -o ~/miniconda.sh && \
/bin/bash ~/miniconda.sh -b -p $CONDA_PATH && rm ~/miniconda.sh
ENV PATH=$CONDA_PATH/bin:$PATH


# Install Milabench
# -----------------

Expand Down

0 comments on commit b0cfe43

Please sign in to comment.