Skip to content

Commit e2d504b

Browse files
authored
Merge pull request #173 from IntelPython/drop-removed-cbwr-constants
Remove CBWR constants which are being dropped by MKL
2 parents 013723f + 95b29f9 commit e2d504b

4 files changed

Lines changed: 1 addition & 47 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88

99
### Removed
1010
* Dropped support for Python 3.9 [gh-118](https://github.com/IntelPython/mkl-service/pull/118)
11+
* Dropped support for `"ssse3"`, `"sse4_1"`, `"avx"`, `"avx512_mic"`, `"avx512_mic,strict"`, and `"avx512_mic_e1"` cbwr branches [gh-173](https://github.com/IntelPython/mkl-service/pull/173)
1112

1213
## [2.6.1] (11/25/2025)
1314

mkl/_mkl_service.pxd

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,9 @@ cdef extern from "mkl.h":
5555
int MKL_CBWR_AUTO
5656
int MKL_CBWR_COMPATIBLE
5757
int MKL_CBWR_SSE2
58-
int MKL_CBWR_SSSE3
59-
int MKL_CBWR_SSE4_1
6058
int MKL_CBWR_SSE4_2
61-
int MKL_CBWR_AVX
6259
int MKL_CBWR_AVX2
63-
int MKL_CBWR_AVX512_MIC
6460
int MKL_CBWR_AVX512
65-
int MKL_CBWR_AVX512_MIC_E1
6661
int MKL_CBWR_AVX512_E1
6762

6863
int MKL_CBWR_SUCCESS
@@ -77,13 +72,10 @@ cdef extern from "mkl.h":
7772
int MKL_ENABLE_AVX512_E2
7873
int MKL_ENABLE_AVX512_E3
7974
int MKL_ENABLE_AVX512_E4
80-
int MKL_ENABLE_AVX512_MIC_E1
8175
int MKL_ENABLE_AVX512_E1
8276
int MKL_ENABLE_AVX512
83-
int MKL_ENABLE_AVX512_MIC
8477
int MKL_ENABLE_AVX2
8578
int MKL_ENABLE_AVX2_E1
86-
int MKL_ENABLE_AVX
8779
int MKL_ENABLE_SSE4_2
8880

8981
# MPI Implementation Constants

mkl/_mkl_service.pyx

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -677,17 +677,11 @@ cdef object __cbwr_set(branch=None) except *:
677677
"auto": mkl.MKL_CBWR_AUTO,
678678
"compatible": mkl.MKL_CBWR_COMPATIBLE,
679679
"sse2": mkl.MKL_CBWR_SSE2,
680-
"ssse3": mkl.MKL_CBWR_SSSE3,
681-
"sse4_1": mkl.MKL_CBWR_SSE4_1,
682680
"sse4_2": mkl.MKL_CBWR_SSE4_2,
683-
"avx": mkl.MKL_CBWR_AVX,
684681
"avx2": mkl.MKL_CBWR_AVX2,
685682
"avx2,strict": mkl.MKL_CBWR_AVX2 | mkl.MKL_CBWR_STRICT,
686-
"avx512_mic": mkl.MKL_CBWR_AVX512_MIC,
687-
"avx512_mic,strict": mkl.MKL_CBWR_AVX512_MIC | mkl.MKL_CBWR_STRICT,
688683
"avx512": mkl.MKL_CBWR_AVX512,
689684
"avx512,strict": mkl.MKL_CBWR_AVX512 | mkl.MKL_CBWR_STRICT,
690-
"avx512_mic_e1": mkl.MKL_CBWR_AVX512_MIC_E1,
691685
"avx512_e1": mkl.MKL_CBWR_AVX512_E1,
692686
"avx512_e1,strict": mkl.MKL_CBWR_AVX512_E1 | mkl.MKL_CBWR_STRICT,
693687
},
@@ -720,17 +714,11 @@ cdef inline __cbwr_get(cnr_const=None) except *:
720714
mkl.MKL_CBWR_AUTO: "auto",
721715
mkl.MKL_CBWR_COMPATIBLE: "compatible",
722716
mkl.MKL_CBWR_SSE2: "sse2",
723-
mkl.MKL_CBWR_SSSE3: "ssse3",
724-
mkl.MKL_CBWR_SSE4_1: "sse4_1",
725717
mkl.MKL_CBWR_SSE4_2: "sse4_2",
726-
mkl.MKL_CBWR_AVX: "avx",
727718
mkl.MKL_CBWR_AVX2: "avx2",
728719
mkl.MKL_CBWR_AVX2 | mkl.MKL_CBWR_STRICT: "avx2,strict",
729-
mkl.MKL_CBWR_AVX512_MIC: "avx512_mic",
730-
mkl.MKL_CBWR_AVX512_MIC | mkl.MKL_CBWR_STRICT: "avx512_mic,strict",
731720
mkl.MKL_CBWR_AVX512: "avx512",
732721
mkl.MKL_CBWR_AVX512 | mkl.MKL_CBWR_STRICT: "avx512,strict",
733-
mkl.MKL_CBWR_AVX512_MIC_E1: "avx512_mic_e1",
734722
mkl.MKL_CBWR_AVX512_E1: "avx512_e1",
735723
mkl.MKL_CBWR_AVX512_E1 | mkl.MKL_CBWR_STRICT: "avx512_e1,strict",
736724
mkl.MKL_CBWR_ERR_INVALID_INPUT: "err_invalid_input",
@@ -754,17 +742,11 @@ cdef object __cbwr_get_auto_branch() except *:
754742
mkl.MKL_CBWR_AUTO: "auto",
755743
mkl.MKL_CBWR_COMPATIBLE: "compatible",
756744
mkl.MKL_CBWR_SSE2: "sse2",
757-
mkl.MKL_CBWR_SSSE3: "ssse3",
758-
mkl.MKL_CBWR_SSE4_1: "sse4_1",
759745
mkl.MKL_CBWR_SSE4_2: "sse4_2",
760-
mkl.MKL_CBWR_AVX: "avx",
761746
mkl.MKL_CBWR_AVX2: "avx2",
762747
mkl.MKL_CBWR_AVX2 | mkl.MKL_CBWR_STRICT: "avx2,strict",
763-
mkl.MKL_CBWR_AVX512_MIC: "avx512_mic",
764-
mkl.MKL_CBWR_AVX512_MIC | mkl.MKL_CBWR_STRICT: "avx512_mic,strict",
765748
mkl.MKL_CBWR_AVX512: "avx512",
766749
mkl.MKL_CBWR_AVX512 | mkl.MKL_CBWR_STRICT: "avx512,strict",
767-
mkl.MKL_CBWR_AVX512_MIC_E1: "avx512_mic_e1",
768750
mkl.MKL_CBWR_AVX512_E1: "avx512_e1",
769751
mkl.MKL_CBWR_AVX512_E1 | mkl.MKL_CBWR_STRICT: "avx512_e1,strict",
770752
mkl.MKL_CBWR_SUCCESS: "success",
@@ -791,12 +773,9 @@ cdef object __enable_instructions(isa=None) except *:
791773
"avx512_e3": mkl.MKL_ENABLE_AVX512_E3,
792774
"avx512_e2": mkl.MKL_ENABLE_AVX512_E2,
793775
"avx512_e1": mkl.MKL_ENABLE_AVX512_E1,
794-
"avx512_mic_e1": mkl.MKL_ENABLE_AVX512_MIC_E1,
795776
"avx512": mkl.MKL_ENABLE_AVX512,
796-
"avx512_mic": mkl.MKL_ENABLE_AVX512_MIC,
797777
"avx2_e1": mkl.MKL_ENABLE_AVX2_E1,
798778
"avx2": mkl.MKL_ENABLE_AVX2,
799-
"avx": mkl.MKL_ENABLE_AVX,
800779
"sse4_2": mkl.MKL_ENABLE_SSE4_2,
801780
},
802781
}

mkl/tests/test_mkl_service.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -219,21 +219,15 @@ def check_cbwr(branch, cnr_const):
219219
"auto",
220220
"compatible",
221221
"sse2",
222-
"ssse3",
223-
"sse4_1",
224222
"sse4_2",
225-
"avx",
226223
"avx2",
227-
"avx512_mic",
228224
"avx512",
229-
"avx512_mic_e1",
230225
"avx512_e1",
231226
]
232227

233228

234229
strict = [
235230
"avx2,strict",
236-
"avx512_mic,strict",
237231
"avx512,strict",
238232
"avx512_e1,strict",
239233
]
@@ -253,26 +247,14 @@ def test_cbwr_get_auto_branch():
253247
mkl.cbwr_get_auto_branch()
254248

255249

256-
def test_enable_instructions_avx512_mic_e1():
257-
mkl.enable_instructions("avx512_mic_e1")
258-
259-
260250
def test_enable_instructions_avx512():
261251
mkl.enable_instructions("avx512")
262252

263253

264-
def test_enable_instructions_avx512_mic():
265-
mkl.enable_instructions("avx512_mic")
266-
267-
268254
def test_enable_instructions_avx2():
269255
mkl.enable_instructions("avx2")
270256

271257

272-
def test_enable_instructions_avx():
273-
mkl.enable_instructions("avx")
274-
275-
276258
def test_enable_instructions_sse4_2():
277259
mkl.enable_instructions("sse4_2")
278260

0 commit comments

Comments
 (0)