Skip to content

Commit d4d2f0c

Browse files
committed
add tests
Signed-off-by: Srikanth Ramakrishna <srikanth.ramakrishna@intel.com>
1 parent 95591b6 commit d4d2f0c

File tree

3 files changed

+24
-15
lines changed

3 files changed

+24
-15
lines changed

python/Dockerfile

+4
Original file line numberDiff line numberDiff line change
@@ -156,3 +156,7 @@ RUN apt-get update && \
156156
rm -rf /var/lib/apt/lists/*
157157

158158
RUN rm -rf /etc/apt/sources.list.d/intel-gpu-jammy.list /etc/apt/sources.list.d/oneAPI.list
159+
160+
RUN if eval "which conda >/dev/null"; then \
161+
echo 'export OCL_ICD_VENDORS="/etc/OpenCL/vendors"' >> ~/.bashrc; \
162+
fi

python/tests/tests.yaml

+19-12
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,25 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
import-${IDP_VERISON:-core}:
16-
img: ${REGISTRY}/${REPO}:b-${GITHUB_RUN_NUMBER:-0}-${BASE_IMAGE_NAME:-ubuntu}-${BASE_IMAGE_TAG:-22.04}-idp-${IDP_VERSION:-core}-py${PYTHON_VERSION:-3.10}-base
17-
cmd: python -c "import mkl"
18-
perf-${IDP_VERSION:-core}:
19-
img: ${REGISTRY}/${REPO}:b-${GITHUB_RUN_NUMBER:-0}-${BASE_IMAGE_NAME:-ubuntu}-${BASE_IMAGE_TAG:-22.04}-idp-${IDP_VERSION:-core}-py${PYTHON_VERSION:-3.10}-base
20-
cmd: python /tests/perf_sample.py
21-
volumes:
22-
- dst: /tests
23-
src: $PWD/python/tests
24-
perf-stock:
25-
img: ${REGISTRY}/${REPO}:b-${GITHUB_RUN_NUMBER:-0}-${BASE_IMAGE_NAME:-ubuntu}-${BASE_IMAGE_TAG:-22.04}-pip-py${PYTHON_VERSION:-3.10}-base
26-
cmd: python /tests/perf_sample.py
15+
# import-${IDP_VERISON:-core}:
16+
# img: ${REGISTRY}/${REPO}:b-${GITHUB_RUN_NUMBER:-0}-${BASE_IMAGE_NAME:-ubuntu}-${BASE_IMAGE_TAG:-22.04}-idp-${IDP_VERSION:-core}-py${PYTHON_VERSION:-3.10}-base
17+
# cmd: python -c "import mkl"
18+
# perf-${IDP_VERSION:-core}:
19+
# img: ${REGISTRY}/${REPO}:b-${GITHUB_RUN_NUMBER:-0}-${BASE_IMAGE_NAME:-ubuntu}-${BASE_IMAGE_TAG:-22.04}-idp-${IDP_VERSION:-core}-py${PYTHON_VERSION:-3.10}-base
20+
# cmd: python /tests/perf_sample.py
21+
# volumes:
22+
# - dst: /tests
23+
# src: $PWD/python/tests
24+
# perf-stock:
25+
# img: ${REGISTRY}/${REPO}:b-${GITHUB_RUN_NUMBER:-0}-${BASE_IMAGE_NAME:-ubuntu}-${BASE_IMAGE_TAG:-22.04}-pip-py${PYTHON_VERSION:-3.10}-base
26+
# cmd: python /tests/perf_sample.py
27+
# volumes:
28+
# - dst: /tests
29+
# src: $PWD/python/tests
30+
xpu-packages-${PACKAGE_OPTION:-pip}:
31+
img: ${REGISTRY}/${REPO}:b-${GITHUB_RUN_NUMBER:-0}-${BASE_IMAGE_NAME:-ubuntu}-${BASE_IMAGE_TAG:-22.04}-${PACKAGE_OPTION:-pip}-py${PYTHON_VERSION:-3.10}-xpu-base
32+
cmd: bash /tests/xpu_packages_test.sh
33+
device: ["/dev/dri"]
2734
volumes:
2835
- dst: /tests
2936
src: $PWD/python/tests

pytorch/Dockerfile

+1-3
Original file line numberDiff line numberDiff line change
@@ -82,16 +82,14 @@ COPY xpu-requirements.txt .
8282
RUN conda run -n idp python -m pip install --no-cache-dir -r xpu-requirements.txt && \
8383
rm -rf xpu-requirements.txt
8484

85-
RUN echo 'export OCL_ICD_VENDORS="/etc/OpenCL/vendors"' >> ~/.bashrc
86-
8785
FROM ipex-xpu-base-wheels-${PACKAGE_OPTION} AS ipex-xpu-jupyter
8886

8987
WORKDIR /jupyter
9088
COPY jupyter-requirements.txt .
9189

9290
RUN python -m pip install --no-cache-dir -r jupyter-requirements.txt
9391

94-
RUN if eval "which conda >/dev/null )"; then \
92+
RUN if eval "which conda >/dev/null"; then \
9593
echo "conda activate idp" >> ~/.bashrc; \
9694
fi
9795

0 commit comments

Comments
 (0)