This repository was archived by the owner on Apr 28, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,8 @@ source /etc/lsb-release
11
11
if [[ " $DISTRIB_RELEASE " == 14.04 ]]; then
12
12
if [[ $( conda --version | wc -c) -ne 0 ]]; then
13
13
echo " Building TC in conda env"
14
- source activate
14
+ conda create -y --name tc-env python=3.6
15
+ source activate tc-env
15
16
conda install -y -c pytorch pytorch
16
17
conda install -y pyyaml
17
18
WITH_PYTHON_C2=OFF CORES=$( nproc) CLANG_PREFIX=/usr/local/clang+llvm-tapir5.0 BUILD_TYPE=Release ./build.sh --all
24
25
if [[ " $DISTRIB_RELEASE " == 16.04 ]]; then
25
26
if [[ $( conda --version | wc -c) -ne 0 ]]; then
26
27
echo " Building TC in conda env"
27
- source activate
28
+ conda create -y --name tc-env python=3.6
29
+ source activate tc-env
28
30
conda install -y pytorch cuda90 -c pytorch
29
31
conda install -y pyyaml
30
32
WITH_PYTHON_C2=OFF CORES=$( nproc) CLANG_PREFIX=/usr/local/clang+llvm-tapir5.0 BUILD_TYPE=Release ./build.sh --all
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ if [[ "$DISTRIB_RELEASE" == 14.04 ]]; then
12
12
echo " Running TC backend tests"
13
13
./test.sh
14
14
if [[ $( conda --version | wc -c) -ne 0 ]]; then
15
- source activate
15
+ source activate tc-env
16
16
echo " Running TC PyTorch tests"
17
17
./test_python/run_test.sh
18
18
fi
21
21
if [[ " $DISTRIB_RELEASE " == 16.04 ]]; then
22
22
if [[ $( conda --version | wc -c) -ne 0 ]]; then
23
23
echo " Running TC PyTorch tests"
24
- source activate
24
+ source activate tc-env
25
25
./test_python/run_test.sh
26
26
else
27
27
echo " Running TC backend tests"
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ chown jenkins:jenkins /usr/local
21
21
# Allow writing to conda root env
22
22
if [[ " $BUILD_ENVIRONMENT " == * -conda* ]]; then
23
23
echo " Chowning Conda"
24
- chown jenkins:jenkins /opt/conda
24
+ chown -R jenkins:jenkins /opt/conda
25
25
fi
26
26
27
27
# Allow sudo
You can’t perform that action at this time.
0 commit comments