File tree 3 files changed +9
-2
lines changed
3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ RUN bash ./install_user.sh && rm install_user.sh
41
41
# Install conda and other packages (e.g., numpy, pytest)
42
42
ARG ANACONDA_PYTHON_VERSION
43
43
ARG CONDA_CMAKE
44
+ ARG BUILD_ENVIRONMENT
44
45
ENV ANACONDA_PYTHON_VERSION=$ANACONDA_PYTHON_VERSION
45
46
ENV PATH /opt/conda/envs/py_$ANACONDA_PYTHON_VERSION/bin:/opt/conda/bin:$PATH
46
47
COPY requirements-ci.txt /opt/conda/requirements-ci.txt
Original file line number Diff line number Diff line change 6
6
if [ -n " $ANACONDA_PYTHON_VERSION " ]; then
7
7
BASE_URL=" https://repo.anaconda.com/miniconda"
8
8
CONDA_FILE=" Miniconda3-latest-Linux-x86_64.sh"
9
- if [[ $( uname -m) == " aarch64" ]] || [[ " $BUILD_ENVIRONMENT " == * xpu* ]]; then
9
+ if [[ $( uname -m) == " aarch64" ]] || [[ " $BUILD_ENVIRONMENT " == * xpu* ]] || [[ " $BUILD_ENVIRONMENT " == * rocm * ]] ; then
10
10
BASE_URL=" https://github.com/conda-forge/miniforge/releases/latest/download"
11
11
CONDA_FILE=" Miniforge3-Linux-$( uname -m) .sh"
12
12
fi
@@ -64,6 +64,11 @@ if [ -n "$ANACONDA_PYTHON_VERSION" ]; then
64
64
# which is provided in libstdcxx 12 and up.
65
65
conda_install libstdcxx-ng=12.3.0 --update-deps -c conda-forge
66
66
67
+ # Miniforge installer doesn't install sqlite by default
68
+ if [[ " $BUILD_ENVIRONMENT " == * rocm* ]]; then
69
+ conda_install sqlite
70
+ fi
71
+
67
72
# Install PyTorch conda deps, as per https://github.com/pytorch/pytorch README
68
73
if [[ $( uname -m) == " aarch64" ]]; then
69
74
conda_install " openblas==0.3.29=*openmp*"
@@ -80,7 +85,7 @@ if [ -n "$ANACONDA_PYTHON_VERSION" ]; then
80
85
# following builds that we know should use conda. Specifically, Ubuntu bionic
81
86
# and focal cannot find conda mkl with stock cmake, so we need a cmake from conda
82
87
if [ -n " ${CONDA_CMAKE} " ]; then
83
- conda_install cmake
88
+ conda_install cmake=3.31.6
84
89
fi
85
90
86
91
# Magma package names are concatenation of CUDA major and minor ignoring revision
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ RUN bash ./install_docs_reqs.sh && rm install_docs_reqs.sh
25
25
26
26
# Install conda and other packages (e.g., numpy, pytest)
27
27
ARG ANACONDA_PYTHON_VERSION
28
+ ARG BUILD_ENVIRONMENT
28
29
ENV ANACONDA_PYTHON_VERSION=$ANACONDA_PYTHON_VERSION
29
30
ENV PATH /opt/conda/envs/py_$ANACONDA_PYTHON_VERSION/bin:/opt/conda/bin:$PATH
30
31
ARG CONDA_CMAKE
You can’t perform that action at this time.
0 commit comments