Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenBLAS hangs with USE_OPENMP=1 #62

Closed
xianyi opened this issue Oct 3, 2011 · 0 comments
Closed

OpenBLAS hangs with USE_OPENMP=1 #62

xianyi opened this issue Oct 3, 2011 · 0 comments
Assignees
Labels

Comments

@xianyi
Copy link
Collaborator

xianyi commented Oct 3, 2011

The user Amarnath Balachandar reported a hang bug.

OpenBLAS is compiled with USE_OPENMP=1 and BINARY=64.

The multi-threaded appliction would hang with setting OPENBLAS_NUM_THREADS only. Instead, it would ok with setting OMP_NUM_THREADS.

@ghost ghost assigned xianyi Oct 3, 2011
xianyi added a commit that referenced this issue Oct 9, 2011
… should use OMP_NUM_THREADS.

When OpenBLAS is compiled with USE_OPENMP=1, it ignores OPENBLAS_NUM_THREADS and GOTO_NUM_THREADS flags.Therefore, you should use OMP_NUM_THREADS.

Without setting OMP_NUM_THREADS, a process will use maximal number of threads on a computing node. Thus, if there are 2 processes on the computing node, the thread will contend against other threads on CPU cores. As a result, the application will hang.
xianyi added a commit that referenced this issue Oct 16, 2011
…max_threads().

It makes sure the return value as same as blas_cpu_numbers which is an internal global variable to store the number of threads in OpenBLAS.
@xianyi xianyi closed this as completed Oct 17, 2011
martin-frbg added a commit that referenced this issue Jun 7, 2020
kseniyazaytseva pushed a commit to kseniyazaytseva/OpenBLAS that referenced this issue Dec 19, 2023
… in LAPACK tests for RVV 0.7 targets

Merge in PL/openblas from dev/an.sokolov/fix_segfault to dev-riscv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant