Skip to content

Commit 1871ca3

Browse files
committed
BLAS name on Windows in numpy 1.26.4 = 'mkl'
1 parent 5515e01 commit 1871ca3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dpnp/tests/helper.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -419,8 +419,8 @@ def is_intel_numpy():
419419
Return True if Intel NumPy is used during testing.
420420
421421
The check is based on MKL backend name stored in Build Dependencies, where
422-
in case of Intel Numpy there "mkl-dynamic" is expected to be a part of the
423-
name for both BLAS and LAPACK (the full name is "mkl-dynamic-ilp64-iomp").
422+
in case of Intel Numpy there "mkl" is expected at the beginning of the name
423+
for both BLAS and LAPACK (the full name is "mkl-dynamic-ilp64-iomp").
424424
425425
"""
426426

@@ -430,8 +430,8 @@ def is_intel_numpy():
430430

431431
if numpy_version() < "2.0.0":
432432
# numpy 1.26.4 has LAPACK name equals to 'dep140030038112336'
433-
return "mkl-dynamic" in blas["name"]
434-
return all("mkl-dynamic" in dep["name"] for dep in [blas, lapack])
433+
return blas["name"].startswith("mkl")
434+
return all(dep["name"].startswith("mkl") for dep in [blas, lapack])
435435

436436

437437
def is_win_platform():

0 commit comments

Comments
 (0)