Skip to content

Commit 44ee680

Browse files
authored
Merge pull request #2172 from devitocodes/intelpython
docker: switch to intelpython for icc/icx build
2 parents 65dc7d8 + fb5d11e commit 44ee680

File tree

3 files changed

+6
-15
lines changed

3 files changed

+6
-15
lines changed

.github/workflows/pytest-core-nompi.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ jobs:
163163
- name: Test with pytest
164164
run: |
165165
${{ env.RUN_CMD }} ${{ matrix.arch }} --version
166+
${{ env.RUN_CMD }} python3 --version
166167
${{ env.RUN_CMD }} pytest -k "${{ matrix.test-set }}" -m "not parallel" --cov --cov-config=.coveragerc --cov-report=xml ${{ env.TESTS }}
167168
168169
- name: Upload coverage to Codecov

docker/Dockerfile.cpu

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@ ENV PATH $I_MPI_ROOT/libfabric/bin:$I_MPI_ROOT/bin:$I_ICC_ROOT/linux/bin/intel64
7272
ENV LD_LIBRARY_PATH $I_MPI_ROOT/libfabric/lib:$I_MPI_ROOT/lib/release:$I_MPI_ROOT/lib:$I_ICC_ROOT/linux/lib:$I_ICC_ROOT/linux/lib/x64:$I_ICC_ROOT/linux/compiler/lib/intel64_lin:${LD_LIBRARY_PATH}
7373
ENV FI_PROVIDER_PATH $I_MPI_ROOT/libfabric/lib/prov:/usr/lib64/libfabric:${LD_LIBRARY_PATH}
7474

75+
# Install intelpython
76+
RUN wget https://registrationcenter-download.intel.com/akdlm/IRC_NAS/03aae3a8-623a-47cf-9655-5dd8fcf86430/l_pythoni39_oneapi_p_2023.2.0.49422.sh && \
77+
chmod +x l_pythoni39_oneapi_p_2023.2.0.49422.sh && ./l_pythoni39_oneapi_p_2023.2.0.49422.sh -r yes -a -s --eula accept
78+
ENV PATH /opt/intel/oneapi/intelpython/python3.9/bin:${PATH}
79+
7580
##############################################################
7681
# ICC image
7782
# This is a legacy setup that is not built anymore but kept for reference

tests/test_environment.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
import platform
2-
import os
3-
41
import numpy as np
52

63

@@ -15,15 +12,3 @@ def test_numpy_dot():
1512

1613
v = np.random.rand(1000).astype(np.float32)
1714
assert np.isclose(np.dot(v, v), (v*v).sum())
18-
19-
20-
def test_python_version():
21-
"""
22-
Test that the CI runs with the expected python version
23-
"""
24-
# expected version
25-
e_ver = os.environ.get("PYTHON_VERSION") or os.environ.get("TRAVIS_PYTHON_VERSION")
26-
# Installed version
27-
i_ver = platform.python_version()
28-
29-
assert e_ver is None or i_ver.startswith(e_ver)

0 commit comments

Comments
 (0)