Public bug reported: The specific problem I have is with libopenblas-serial-dev, version 0.3.26, which was not compiled in a thread-safe way by the Ubuntu team (I'm using Ubuntu 24.04). I have tested this with a c++ code with openmp for loops and see the following behavior:
1. With libopenblas-serial-dev, whenever I set OMP_NUM_THREADS>1, the code crashes; 2. If I replace by libopenblas-pthread-dev, the code works when OMP_NUM_THREADS>1; 4. If I build openblas from source by hand, with USE_LOCKING=1, the code also works; 5. If I replace by Intel MKL, the code also works; 6. If I run the same code on MacOS with Accelerate, the code also works; 7. When I check the description of the libopenblas-serial-dev package on Ubuntu 24.04, it mentiones about USE_THREAD=0 USE_OPENMP=0 INTERFACE64=0, but does not talk about USE_LOCKING at all. All these tests point to the possibility that USE_LOCKING was not used in the compilation of libopenblas-serial-dev on Ubuntu 24.04, which causes problem in my openmp program. ProblemType: Bug DistroRelease: Ubuntu 24.04 Package: libopenblas-serial-dev (not installed) ProcVersionSignature: Ubuntu 6.11.0-17.17~24.04.2-generic 6.11.11 Uname: Linux 6.11.0-17-generic x86_64 NonfreeKernelModules: nvidia_modeset nvidia ApportVersion: 2.28.1-0ubuntu3.3 Architecture: amd64 CasperMD5CheckResult: pass CurrentDesktop: ubuntu:GNOME Date: Thu Feb 27 14:01:07 2025 InstallationDate: Installed on 2024-05-03 (300 days ago) InstallationMedia: Ubuntu 24.04 LTS "Noble Numbat" - Release amd64 (20240424) SourcePackage: openblas UpgradeStatus: No upgrade log present (probably fresh install) ** Affects: openblas (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug noble -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2100355 Title: openblas-serial not built in a thread-safe way To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/openblas/+bug/2100355/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs