File tree 7 files changed +51
-28
lines changed
Filter options
7 files changed +51
-28
lines changed
Original file line number Diff line number Diff line change 30
30
31
31
jobs :
32
32
include :
33
- - python : 3.7
34
- env :
35
- - CHECK_WARNING=true
36
- - BUILD_WITH_ICC=true
37
- if : type = cron OR commit_message =~ /\[icc-build\]/
38
-
39
33
# Manual trigger of linux/arm64 tests in PR without triggering the full
40
34
# wheel building process for all the Python versions.
41
35
- python : 3.9
Original file line number Diff line number Diff line change 78
78
# Here we make sure, that they are still run on a regular basis.
79
79
SKLEARN_SKIP_NETWORK_TESTS : ' 0'
80
80
81
+ # Check compilation with intel C++ compiler (ICC)
82
+ - template : build_tools/azure/posix.yml
83
+ parameters :
84
+ name : Linux_Nightly_ICC
85
+ vmImage : ubuntu-18.04
86
+ dependsOn : [git_commit, linting]
87
+ condition : |
88
+ and(
89
+ succeeded(),
90
+ not(contains(dependencies['git_commit']['outputs']['commit.message'], '[ci skip]')),
91
+ or(eq(variables['Build.Reason'], 'Schedule'),
92
+ contains(dependencies['git_commit']['outputs']['commit.message'], '[icc-build]')
93
+ )
94
+ )
95
+ matrix :
96
+ pylatest_conda_mkl :
97
+ DISTRIB : ' conda'
98
+ PYTHON_VERSION : ' *'
99
+ BLAS : ' mkl'
100
+ COVERAGE : ' false'
101
+ BUILD_WITH_ICC : ' true'
102
+
81
103
# Will run all the time regardless of linting outcome.
82
104
- template : build_tools/azure/posix.yml
83
105
parameters :
Original file line number Diff line number Diff line change @@ -148,6 +148,20 @@ if [[ "$DISTRIB" == "conda-pip-latest" ]]; then
148
148
# environment:
149
149
pip install --verbose --editable .
150
150
else
151
+ if [[ " $BUILD_WITH_ICC " == " true" ]]; then
152
+ wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
153
+ sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
154
+ rm GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
155
+ sudo add-apt-repository " deb https://apt.repos.intel.com/oneapi all main"
156
+ sudo apt-get update
157
+ sudo apt-get install intel-oneapi-compiler-dpcpp-cpp-and-cpp-classic
158
+ source /opt/intel/oneapi/setvars.sh
159
+
160
+ # The "build_clib" command is implicitly used to build "libsvm-skl".
161
+ # To compile with a different compiler, we also need to specify the
162
+ # compiler for this command
163
+ python setup.py build_ext --compiler=intelem -i build_clib --compiler=intelem
164
+ fi
151
165
# Use the pre-installed build dependencies and build directly in the
152
166
# current environment.
153
167
python setup.py develop
Original file line number Diff line number Diff line change @@ -8,4 +8,8 @@ elif [[ "$DISTRIB" == "ubuntu" ]]; then
8
8
source $VIRTUALENV /bin/activate
9
9
fi
10
10
11
+ if [[ " $BUILD_WITH_ICC " == " true" ]]; then
12
+ source /opt/intel/oneapi/setvars.sh
13
+ fi
14
+
11
15
make test-doc
Original file line number Diff line number Diff line change @@ -8,6 +8,10 @@ elif [[ "$DISTRIB" == "ubuntu" ]] || [[ "$DISTRIB" == "ubuntu-32" ]]; then
8
8
source $VIRTUALENV /bin/activate
9
9
fi
10
10
11
+ if [[ " $BUILD_WITH_ICC " == " true" ]]; then
12
+ source /opt/intel/oneapi/setvars.sh
13
+ fi
14
+
11
15
python --version
12
16
python -c " import numpy; print('numpy %s' % numpy.__version__)"
13
17
python -c " import scipy; print('scipy %s' % scipy.__version__)"
Original file line number Diff line number Diff line change @@ -62,23 +62,7 @@ python --version
62
62
python -c " import numpy; print(f'numpy {numpy.__version__}')"
63
63
python -c " import scipy; print(f'scipy {scipy.__version__}')"
64
64
65
- if [[ $BUILD_WITH_ICC == true ]]; then
66
- wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB
67
- sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB
68
- rm GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB
69
- sudo add-apt-repository " deb https://apt.repos.intel.com/oneapi all main"
70
- sudo apt-get update
71
- sudo apt-get install intel-oneapi-icc
72
- source /opt/intel/oneapi/setvars.sh
73
-
74
- # The "build_clib" command is implicitly used to build "libsvm-skl".
75
- # To compile with a different compiler, we also need to specify the
76
- # compiler for this command
77
- python setup.py build_ext --compiler=intelem -i build_clib --compiler=intelem
78
- else
79
- pip install -e .
80
- fi
81
-
65
+ pip install -e .
82
66
python setup.py develop
83
67
84
68
ccache --show-stats
Original file line number Diff line number Diff line change @@ -479,9 +479,9 @@ repository:
479
479
480
480
.. prompt :: bash $
481
481
482
- wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023 .PUB
483
- sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023 .PUB
484
- rm GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023 .PUB
482
+ wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
483
+ sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
484
+ rm GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
485
485
486
486
Then, add the oneAPI repository to your APT repositories:
487
487
@@ -490,11 +490,12 @@ Then, add the oneAPI repository to your APT repositories:
490
490
sudo add-apt-repository "deb https://apt.repos.intel.com/oneapi all main"
491
491
sudo apt-get update
492
492
493
- Install ICC, packaged under the name ``intel-oneapi-icc ``:
493
+ Install ICC, packaged under the name
494
+ ``intel-oneapi-compiler-dpcpp-cpp-and-cpp-classic ``:
494
495
495
496
.. prompt :: bash $
496
497
497
- sudo apt-get install intel-oneapi-icc
498
+ sudo apt-get install intel-oneapi-compiler-dpcpp-cpp-and-cpp-classic
498
499
499
500
Before using ICC, you need to set up environment variables:
500
501
You can’t perform that action at this time.
0 commit comments