File tree Expand file tree Collapse file tree 2 files changed +13
-6
lines changed
Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -101,10 +101,13 @@ COPY ./common/install_cache.sh install_cache.sh
101101ENV PATH /opt/cache/bin:$PATH
102102RUN bash ./install_cache.sh && rm install_cache.sh
103103
104+ WORKDIR /app
105+ RUN apt-get update && apt-get install -y git python3 python3-pip python3-setuptools
104106RUN git clone https://github.com/ROCm/rocm-libraries.git
105- RUN cd rocm-libraries/shared/origami/python
106- RUN python setup.py build_ext --inplace
107- RUN export PYTHONPATH=$(pwd):$PYTHONPATH
107+ RUN pip install nanobind
108+ WORKDIR /app/rocm-libraries/shared/origami/python
109+ RUN python3 setup.py build_ext --inplace
110+ ENV PYTHONPATH=/app/rocm-libraries/shared/origami/python:$PYTHONPATH
108111
109112# Include BUILD_ENVIRONMENT environment variable in image
110113ARG BUILD_ENVIRONMENT
Original file line number Diff line number Diff line change @@ -133,10 +133,14 @@ COPY ./common/install_openmpi.sh install_openmpi.sh
133133RUN if [ -n "${CUDA_VERSION}" ]; then bash install_openmpi.sh; fi
134134RUN rm install_openmpi.sh
135135
136+
137+ WORKDIR /app
138+ RUN apt-get update && apt-get install -y git python3 python3-pip python3-setuptools
136139RUN git clone https://github.com/ROCm/rocm-libraries.git
137- RUN cd rocm-libraries/shared/origami/python
138- RUN python setup.py build_ext --inplace
139- RUN export PYTHONPATH=$(pwd):$PYTHONPATH
140+ RUN pip install nanobind
141+ WORKDIR /app/rocm-libraries/shared/origami/python
142+ RUN python3 setup.py build_ext --inplace
143+ ENV PYTHONPATH=/app/rocm-libraries/shared/origami/python:$PYTHONPATH
140144
141145# Include BUILD_ENVIRONMENT environment variable in image
142146ARG BUILD_ENVIRONMENT
You can’t perform that action at this time.
0 commit comments