Skip to content

Commit b42d13c

Browse files
committed
verify core and full,update test name and resolve lint issues
Signed-off-by: Srikanth Ramakrishna <srikanth.ramakrishna@intel.com>
1 parent 59cdea5 commit b42d13c

File tree

4 files changed

+47
-8
lines changed

4 files changed

+47
-8
lines changed

python/README.md

+6-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[Intel® Distribution for Python*] enhances performance and can improve your program speed from 10 to 100 times faster. It is a Python* distribution that includes the [Intel® Math Kernel Library] (oneMKL) and other Intel performance libraries to enable near-native performance through acceleration of core numerical and machine learning packages.
44

5-
Intel® Distribution for Python* is also available for Intel® dGPUs, that includes the latest driver packages and Intel® OneAPI runtime libraries that enables Machine Learning frameworks leverage the XPU device plugin.
5+
Intel® Distribution for Python* is also available for Intel® dGPUs, that includes the latest [Intel® dGPU drivers] and Intel® OneAPI runtime libraries such as [Intel® Math Kernel Library], [Intel® DPC++ Compiler Library] and [Intel® Collective Communications Library] that enable Machine Learning frameworks leverage the XPU device plugin.
66

77
## Images
88

@@ -12,7 +12,8 @@ The images below include variations for only the core packages in the [Intel® D
1212
| ---------------------- | ---------- |
1313
| `3.10-full`, `latest` | `2024.2.0` |
1414
| `3.10-core` | `2024.2.0` |
15-
| `3.10-xpu-idp` | `2024.2.1` |
15+
| `3.10-xpu-core` | `2024.2.1` |
16+
| `3.10-xpu-full` | `2024.2.1` |
1617

1718
## Run a Performance Sample
1819

@@ -50,7 +51,7 @@ Use the following command to check the availability of Intel dGPU devices on you
5051
docker run --rm -it \
5152
-v $PWD/tests:/tests \
5253
--device /dev/dri \
53-
intel/python:3.10-xpu-idp \
54+
intel/python:3.10-xpu-full \
5455
bash /tests/xpu_base_layers_test.sh
5556
```
5657

@@ -78,7 +79,7 @@ You can find the list of services below for each container in the group:
7879
| ------------ | ------------------------------------------------------------------- |
7980
| `idp` | Base image with [Intel® Distribution for Python*] |
8081
| `pip` | Equivalent python image without [Intel® Distribution for Python*] |
81-
| `xpu` | Base Image for Intel XPU plugin with and without [Intel® Distribution for Python*] |
82+
| `xpu` | Base Image for Intel XPU plugin with [Intel® Distribution for Python*] |
8283

8384
## License
8485

@@ -94,4 +95,4 @@ It is the image user's responsibility to ensure that any use of The images below
9495
[Intel® Math Kernel Library]: https://www.intel.com/content/www/us/en/developer/tools/oneapi/onemkl.html
9596
[Intel® DPC++ Compiler Library]: https://www.intel.com/content/www/us/en/developer/tools/oneapi/dpc-compiler-download.html
9697
[Intel® Collective Communications Library]: https://www.intel.com/content/www/us/en/developer/tools/oneapi/oneccl.html
97-
[Intel® dGPU driver releases ]: https://dgpu-docs.intel.com/releases/releases.html
98+
[Intel® dGPU drivers]: https://dgpu-docs.intel.com/releases/releases.html

python/compose.override.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,6 @@ services:
2424
org.opencontainers.image.title: "Intel® Distribution for Python Base Image"
2525
org.opencontainers.image.version: 3.10-${IDP_VERSION:-core}
2626
image: ${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
27+
xpu:
28+
extends: idp
29+
image: ${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}-xpu-base

python/tests/tests.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ perf-stock:
2727
volumes:
2828
- dst: /tests
2929
src: $PWD/python/tests
30-
xpu-base-layers-${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
30+
xpu-base-layers-${IDP_VERISON:-core}:
31+
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}-xpu-base
32+
cmd: bash /tests/xpu_base_layers_test.sh
3333
device: ["/dev/dri"]
3434
volumes:
3535
- dst: /tests

python/tests/xpu_base_layers_test.sh

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
#!/bin/sh
2+
3+
# Copyright (c) 2024 Intel Corporation
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
17+
## Checks if drivers are installed correctly
18+
device=$(clinfo | grep 'Intel(R) Data Center GPU')
19+
20+
if [[ $device == "" ]]; then
21+
echo "Intel(R) Data Center GPU not found! Drivers not found/aren't correctly installed!"
22+
exit 1
23+
fi
24+
25+
## checks for the presence of MKL,DPCPP and CCL/MPI Packages in OneAPI directory
26+
list=("/opt/intel/oneapi/redist/lib" "/opt/intel/oneapi/redist/lib/ccl" "/opt/intel/oneapi/redist/lib/mpi")
27+
28+
for i in "${list[@]}"; do
29+
if [[ ! -d "${i}" ]]; then
30+
echo "OneAPI libraries not found/installed!"
31+
exit 1
32+
fi
33+
done
34+
35+
echo "Intel XPU drivers and OneAPI runtime packages are correctly installed!"

0 commit comments

Comments
 (0)