File tree 6 files changed +8
-37
lines changed
6 files changed +8
-37
lines changed Original file line number Diff line number Diff line change @@ -25,8 +25,7 @@ if [ -n "$ANACONDA_PYTHON_VERSION" ]; then
25
25
mkdir -p /opt/conda
26
26
chown jenkins:jenkins /opt/conda
27
27
28
- SCRIPT_FOLDER=" $( cd " $( dirname " $0 " ) " ; pwd -P ) "
29
- source " ${SCRIPT_FOLDER} /common_utils.sh"
28
+ source " $( dirname " ${BASH_SOURCE[0]} " ) /common_utils.sh"
30
29
31
30
pushd /tmp
32
31
wget -q " ${BASE_URL} /${CONDA_FILE} "
@@ -85,9 +84,8 @@ if [ -n "$ANACONDA_PYTHON_VERSION" ]; then
85
84
86
85
# Magma package names are concatenation of CUDA major and minor ignoring revision
87
86
# I.e. magma-cuda102 package corresponds to CUDA_VERSION=10.2 and CUDA_VERSION=10.2.89
88
- # Magma is installed from a tarball in the ossci-linux bucket into the conda env
89
87
if [ -n " $CUDA_VERSION " ]; then
90
- ${SCRIPT_FOLDER} /install_magma_conda.sh $( cut -f1-2 -d ' . ' <<< ${CUDA_VERSION} ) ${ANACONDA_PYTHON_VERSION}
88
+ conda_install magma-cuda $( TMP= ${CUDA_VERSION/ . / } ; echo ${TMP % . * [0-9]} ) -c pytorch
91
89
fi
92
90
93
91
# Install some other packages, including those needed for Python test reporting
Original file line number Diff line number Diff line change 3
3
4
4
set -eou pipefail
5
5
6
+ MAGMA_VERSION=" 2.5.2"
7
+
6
8
function do_install() {
7
9
cuda_version=$1
8
10
cuda_version_nodot=${1/ ./ }
@@ -15,7 +17,7 @@ function do_install() {
15
17
set -x
16
18
tmp_dir=$( mktemp -d)
17
19
pushd ${tmp_dir}
18
- curl -OLs https://ossci- linux.s3.us-east-1.amazonaws.com /${magma_archive}
20
+ curl -OLs https://anaconda.org/pytorch/magma-cuda ${cuda_version_nodot} / ${MAGMA_VERSION} /download/ linux-64 /${magma_archive}
19
21
tar -xvf " ${magma_archive} "
20
22
mkdir -p " ${cuda_dir} /magma"
21
23
mv include " ${cuda_dir} /magma/include"
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -25,8 +25,7 @@ ENV PATH /opt/conda/envs/py_$ANACONDA_PYTHON_VERSION/bin:/opt/conda/bin:$PATH
25
25
COPY requirements-ci.txt /opt/conda/requirements-ci.txt
26
26
COPY ./common/install_conda.sh install_conda.sh
27
27
COPY ./common/common_utils.sh common_utils.sh
28
- COPY ./common/install_magma_conda.sh install_magma_conda.sh
29
- RUN bash ./install_conda.sh && rm install_conda.sh install_magma_conda.sh common_utils.sh /opt/conda/requirements-ci.txt
28
+ RUN bash ./install_conda.sh && rm install_conda.sh common_utils.sh /opt/conda/requirements-ci.txt
30
29
31
30
# Install cuda and cudnn
32
31
ARG CUDA_VERSION
Original file line number Diff line number Diff line change @@ -30,8 +30,7 @@ ARG CONDA_CMAKE
30
30
COPY requirements-ci.txt /opt/conda/requirements-ci.txt
31
31
COPY ./common/install_conda.sh install_conda.sh
32
32
COPY ./common/common_utils.sh common_utils.sh
33
- COPY ./common/install_magma_conda.sh install_magma_conda.sh
34
- RUN bash ./install_conda.sh && rm install_conda.sh install_magma_conda.sh common_utils.sh /opt/conda/requirements-ci.txt
33
+ RUN bash ./install_conda.sh && rm install_conda.sh common_utils.sh /opt/conda/requirements-ci.txt
35
34
36
35
# Install gcc
37
36
ARG GCC_VERSION
Original file line number Diff line number Diff line change @@ -36,8 +36,7 @@ ENV DOCS=$DOCS
36
36
COPY requirements-ci.txt requirements-docs.txt /opt/conda/
37
37
COPY ./common/install_conda.sh install_conda.sh
38
38
COPY ./common/common_utils.sh common_utils.sh
39
- COPY ./common/install_magma_conda.sh install_magma_conda.sh
40
- RUN bash ./install_conda.sh && rm install_conda.sh install_magma_conda.sh common_utils.sh /opt/conda/requirements-ci.txt /opt/conda/requirements-docs.txt
39
+ RUN bash ./install_conda.sh && rm install_conda.sh common_utils.sh /opt/conda/requirements-ci.txt /opt/conda/requirements-docs.txt
41
40
RUN if [ -n "${UNINSTALL_DILL}" ]; then pip uninstall -y dill; fi
42
41
43
42
# Install gcc
You can’t perform that action at this time.
0 commit comments