OpenMathLib / OpenMathLib/OpenBLAS

OpenBLAS becomes single-threaded

Open
#1,820 39 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

LAPACK issue
Dominant language
C
Stars
7.6k
Forks
1.7k
Avg merge
1d 3h
Merged PRs (30d)
42

Description

Hi everybody,

I am using standard lapack routines to diagonalize moderately large matrices with openBLAS.
The box is a xeon with 6 cores and hyperthreading. At runtime execution starts with 12 threads
by default and after some reproducible time goes down to one thread with miserable performance
but execution is without errors. I have observed the same behavior with OMP_NUM_THREADS=2,4,6
and using also OPENBLAS_NUM_THREADS. I tried to set OMP_DYNAMIC=FALSE with no change of behavior. It is a locally compiled version of openBLAS 0.3.3 with gcc/gfortran 7.3.0

any hints would be appreciated !

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported behavior with the standard LAPACK routines in the locally compiled OpenBLAS 0.3.3 build. Compare OMP_NUM_THREADS, OPENBLAS_NUM_THREADS, and OMP_DYNAMIC settings while monitoring the transition from multiple threads to one. Done means identifying why the thread count drops and documenting or fixing the cause.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, fortran
Domain
performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.