Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

BUG: Thread Usage Limitation in NumPy Dot Product on Windows on ARM64 Setup #29888

Open
Labels
@Akash9824

Description

@Akash9824

Describe the issue:

I have a Windows on ARM(12 core) setup. I installed Python 3.13.7 and then installed NumPy (v2.3.0) using the command: pip install numpy.

After that, I ran a simple benchmarking script:
import numpy as np
import time
import os

N = 10000
A = np.random.rand(N, N)
B = np.random.rand(N, N)

start = time.time()
C = np.dot(A, B)
end = time.time()

print(f"Matrix multiplication of {N}x{N} took {end - start:.2f} seconds")

I noticed that it utilizes only 4 cores, even after setting OPENBLAS_NUM_THREADS to a value greater than 4. It still uses only 4 threads. However, if I set it to a value below 4, it behaves as expected like scheduling that much thread.

I check on amd64 device as well, there it is working as expected it is using all core there, for same workload.

Any idea what could be limitation here?

Reproduce the code example:

importnumpyasnpimporttimeimportosN=10000A=np.random.rand(N,N)B=np.random.rand(N,N)start=time.time()C=np.dot(A,B)end=time.time()print(f"Matrix multiplication of{N}x{N} took{end-start:.2f} seconds")

Error message:

Python and NumPy Versions:

Python 3.13.7 and Numpy 2.3.0

Runtime Environment:

No response

Context for the issue:

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp