Skip to content

Make OpenBLAS's usage of OpenMP respect openblas_set_num_threads()#5808

Open
nh2 wants to merge 3 commits into
OpenMathLib:developfrom
nh2:issue-5806-openblas_set_num_threads-openmp
Open

Make OpenBLAS's usage of OpenMP respect openblas_set_num_threads()#5808
nh2 wants to merge 3 commits into
OpenMathLib:developfrom
nh2:issue-5806-openblas_set_num_threads-openmp

Conversation

@nh2
Copy link
Copy Markdown

@nh2 nh2 commented May 12, 2026

Fixes #5806.

Also

Reviewing by commit is recommended.

nh2 added 3 commits May 12, 2026 05:18
…ixes OpenMathLib#5806.

Until now, the code in `num_cpu_avail()`,

    if (blas_cpu_number != openmp_nthreads) {
      goto_set_num_threads(openmp_nthreads);
    }

would just always set the threads back to OpenMP's thread count.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

openblas_set_num_threads() is silently overridden when built with USE_OPENMP

1 participant