[Bug 1875181] Re: dgesdd gets stuck for size 40+

Dirk Toewe 1875181 at bugs.launchpad.net
Sun Apr 26 15:11:28 UTC 2020


Here's the GDB stack trace:

#0  0x00007ffff3aec70b in sched_yield () at ../sysdeps/unix/syscall-template.S:78
#1  0x00007ffff4d749a5 in exec_blas_async_wait () from /lib/x86_64-linux-gnu/liblapack.so.3
#2  0x00007ffff4d74a7c in exec_blas () from /lib/x86_64-linux-gnu/liblapack.so.3
#3  0x00007ffff4c42392 in dtrmv_thread_NUN () from /lib/x86_64-linux-gnu/liblapack.so.3
#4  0x00007ffff4c19c7a in dtrmv_ () from /lib/x86_64-linux-gnu/liblapack.so.3
#5  0x00007ffff486e74b in dlarft_ () from /lib/x86_64-linux-gnu/liblapack.so.3
#6  0x00007ffff48aa758 in dormqr_ () from /lib/x86_64-linux-gnu/liblapack.so.3
#7  0x00007ffff48a83a6 in dormbr_ () from /lib/x86_64-linux-gnu/liblapack.so.3
#8  0x00007ffff47ff9a6 in dgesdd_ () from /lib/x86_64-linux-gnu/liblapack.so.3
#9  0x00007ffff43eb179 in LAPACKE_dgesdd_work () from /lib/x86_64-linux-gnu/liblapacke.so.3
#10 0x00007ffff43eac28 in LAPACKE_dgesdd () from /lib/x86_64-linux-gnu/liblapacke.so.3
#11 0x00000000004c78e5 in main () at src/lapacke_error.cpp:40

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to lapack in Ubuntu.
https://bugs.launchpad.net/bugs/1875181

Title:
  dgesdd gets stuck for size 40+

Status in lapack package in Ubuntu:
  New

Bug description:
  On Ubuntu 20.04 (Focal Fossa), the following code:

  https://pastebin.com/A0bTqAAJ

  gets stuck on the LAPACKE_dgesdd call using liblapacke-dev
  (3.9.0-1build1). It seems to get stuck for every matrix size N>=40.
  I've unsuccessfully tried out the following variations:

    * Different compilers (gcc-9, gcc-10, clang-10)
    * Linking to different BLAS implementations (libopenblas-dev, libblas-dev)
    * With and without Different optimization settings (-ffast-math, -march=native, -O3)

  The CPU is an AMD Ryzen9 3900X (in case that's relevant).

  What I've then tried is to build LAPACK(E) 3.9.0 from source directly
  using cmake and the "make.inc.example" file included in the LAPACK
  source code. And that compiled version works just fine!

  Maybe there is bad optimization done by the compiler used for the
  Ubuntu package?

  My C/C++ (let alone Fortran) knowledge is quite limited, which means I
  am going to need some help if I am to provide further debug
  information.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lapack/+bug/1875181/+subscriptions



More information about the foundations-bugs mailing list