File tree 10 files changed +15
-23
lines changed
10 files changed +15
-23
lines changed Original file line number Diff line number Diff line change @@ -34,16 +34,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
34
34
35
35
RUN ln -sf $(which python3) /usr/bin/python
36
36
37
- ARG USER_ID=1001
38
- ARG GROUP_ID=1001
39
-
40
- RUN groupadd -g ${GROUP_ID} hostgroup && \
41
- useradd -m -u ${USER_ID} -g ${GROUP_ID} hostuser
42
-
43
- USER hostuser
44
-
45
- RUN pip install --user --no-cache-dir --upgrade pip
46
- RUN pip install --user --no-cache-dir setuptools
37
+ RUN pip install --no-cache-dir --upgrade pip
38
+ RUN pip install --no-cache-dir setuptools
47
39
48
40
RUN pip list
49
41
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ FRAMEWORK="pytorch"
72
72
source /neural-compressor/.azure-pipelines/scripts/fwk_version.sh ' latest'
73
73
if [[ " ${inc_new_api} " == " 3x" * ]]; then
74
74
FRAMEWORK_VERSION=" latest"
75
- export LD_LIBRARY_PATH=${HOME} /. local/lib/:$LD_LIBRARY_PATH
75
+ export LD_LIBRARY_PATH=/usr/ local/lib/:$LD_LIBRARY_PATH
76
76
else
77
77
FRAMEWORK_VERSION=${pytorch_version}
78
78
TORCH_VISION_VERSION=${torchvision_version}
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ echo "##[section]import check pass"
11
11
12
12
# install requirements
13
13
echo " ##[group]set up UT env..."
14
- export LD_LIBRARY_PATH=${HOME} /. local/lib/:$LD_LIBRARY_PATH
14
+ export LD_LIBRARY_PATH=/usr/ local/lib/:$LD_LIBRARY_PATH
15
15
pip install -r /neural-compressor/test/3x/torch/requirements.txt
16
16
pip install pytest-cov
17
17
pip install pytest-html
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ echo "##[section]import check pass"
11
11
12
12
# install requirements
13
13
echo " ##[group]set up UT env..."
14
- export LD_LIBRARY_PATH=${HOME} /. local/lib/:$LD_LIBRARY_PATH
14
+ export LD_LIBRARY_PATH=/usr/ local/lib/:$LD_LIBRARY_PATH
15
15
sed -i ' /^intel_extension_for_pytorch/d' /neural-compressor/test/3x/torch/requirements.txt
16
16
sed -i ' /^auto_round/d' /neural-compressor/test/3x/torch/requirements.txt
17
17
cat /neural-compressor/test/3x/torch/requirements.txt
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ source /neural-compressor/.azure-pipelines/scripts/fwk_version.sh $1
8
8
9
9
echo " set up UT env..."
10
10
bash /neural-compressor/.azure-pipelines/scripts/ut/env_setup.sh " ${test_case} "
11
- export LD_LIBRARY_PATH=${HOME} /. local/lib/:$LD_LIBRARY_PATH
11
+ export LD_LIBRARY_PATH=/usr/ local/lib/:$LD_LIBRARY_PATH
12
12
export COVERAGE_RCFILE=/neural-compressor/.azure-pipelines/scripts/ut/coverage.file
13
13
lpot_path=$( python -c ' import neural_compressor; import os; print(os.path.dirname(neural_compressor.__file__))' )
14
14
cd /neural-compressor/test || exit 1
Original file line number Diff line number Diff line change @@ -63,11 +63,11 @@ steps:
63
63
- script : |
64
64
docker image prune -a -f
65
65
if [[ ! $(docker images | grep -i ${{ parameters.repoName }}:${{ parameters.repoTag }}) ]]; then
66
- docker build --build-arg USER_ID=$(id -u) --build-arg GROUP_ID=$(id -g) - f ${BUILD_SOURCESDIRECTORY}/.azure-pipelines/docker/${{parameters.dockerFileName}}.devel -t ${{ parameters.repoName }}:${{ parameters.repoTag }} .
66
+ docker build -f ${BUILD_SOURCESDIRECTORY}/.azure-pipelines/docker/${{parameters.dockerFileName}}.devel -t ${{ parameters.repoName }}:${{ parameters.repoTag }} .
67
67
fi
68
68
docker images | grep -i ${{ parameters.repoName }}
69
69
if [[ $? -ne 0 ]]; then
70
- echo "NO Such Repo "
70
+ echo "NO Such Image "
71
71
exit 1
72
72
fi
73
73
displayName: "Build develop docker image"
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ stages:
75
75
fi
76
76
docker images | grep -i ${IMAGE_NAME}
77
77
if [[ $? -ne 0 ]]; then
78
- echo "NO Such Repo "
78
+ echo "NO Such Image "
79
79
exit 1
80
80
fi
81
81
displayName: "Build develop docker image"
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ stages:
73
73
fi
74
74
docker images | grep -i ${IMAGE_NAME}
75
75
if [[ $? -ne 0 ]]; then
76
- echo "NO Such Repo "
76
+ echo "NO Such Image "
77
77
exit 1
78
78
fi
79
79
displayName: "Build develop docker image"
@@ -86,7 +86,7 @@ stages:
86
86
87
87
- script : |
88
88
echo "--- create container ---"
89
- docker run -d -it --name="collectLogs" -v ${BUILD_SOURCESDIRECTORY}:/neural-compressor ${IMAGE_NAME}:${IMAGE_TAG} /bin/bash
89
+ docker run -d -it --name="collectLogs" -v ${BUILD_SOURCESDIRECTORY}:/neural-compressor ${IMAGE_NAME}:${IMAGE_TAG} /bin/bash
90
90
echo "--- docker ps ---"
91
91
docker ps
92
92
echo "--- collect logs ---"
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ stages:
70
70
fi
71
71
docker images | grep -i ${IMAGE_NAME}
72
72
if [[ $? -ne 0 ]]; then
73
- echo "NO Such Repo "
73
+ echo "NO Such Image "
74
74
exit 1
75
75
fi
76
76
displayName: "Build develop docker image"
@@ -83,7 +83,7 @@ stages:
83
83
84
84
- script : |
85
85
echo "--- create container ---"
86
- docker run -d -it --name="collectLogs" -v ${BUILD_SOURCESDIRECTORY}:/neural-compressor ${IMAGE_NAME}:${IMAGE_TAG} /bin/bash
86
+ docker run -d -it --name="collectLogs" -v ${BUILD_SOURCESDIRECTORY}:/neural-compressor ${IMAGE_NAME}:${IMAGE_TAG} /bin/bash
87
87
echo "--- docker ps ---"
88
88
docker ps
89
89
echo "--- collect logs ---"
Original file line number Diff line number Diff line change @@ -244,7 +244,7 @@ stages:
244
244
fi
245
245
docker images | grep -i ${IMAGE_NAME}
246
246
if [[ $? -ne 0 ]]; then
247
- echo "NO Such Repo "
247
+ echo "NO Such Image "
248
248
exit 1
249
249
fi
250
250
displayName: "Build develop docker image"
@@ -257,7 +257,7 @@ stages:
257
257
258
258
- script : |
259
259
echo "--- create container ---"
260
- docker run -d -it --name="collectLogs" -v ${BUILD_SOURCESDIRECTORY}:/neural-compressor ${IMAGE_NAME}:${IMAGE_TAG} /bin/bash
260
+ docker run -d -it --name="collectLogs" -v ${BUILD_SOURCESDIRECTORY}:/neural-compressor ${IMAGE_NAME}:${IMAGE_TAG} /bin/bash
261
261
echo "--- docker ps ---"
262
262
docker ps
263
263
echo "--- collect logs ---"
You can’t perform that action at this time.
0 commit comments