Public bug reported:

If I run a simple CHOLMOD C++ program, I noticed that it takes more time
running in parallel than single threaded. For the attached program file
I did

g++ -o main main.cpp /usr/lib/x86_64-linux-gnu/libcholmod.so

time ./main
-> real 2m21,367s user  11m30,913s sys  5m11,448s

(now I force it to be single threaded)
time OPENBLAS_NUM_THREADS=1 OMP_THREAD_LIMIT=1  ./main
-> real 0m49,684s user  0m48,922s sys   0m0,760s

Notice the huge "sys" time consumption in parallel run.

I have a 4 core / 8 thread Intel CPU running Ubuntu 18.04, everything 
up-to-date.
In my research project with a more complex matrix, the slow-down is the factor 
8.

Further info: It is not machine-dependent. It is also confirmed in
Debian 10 on several different machines.

** Affects: suitesparse (Ubuntu)
     Importance: Undecided
         Status: New

** Attachment added: "simple C++ program"
   https://bugs.launchpad.net/bugs/1843277/+attachment/5287505/+files/main.cpp

** Description changed:

  If I run a simple CHOLMOD C++ program, I noticed that it takes more time
  running in parallel than single threaded. For the attached program file
  I did
  
  g++ -o main main.cpp /usr/lib/x86_64-linux-gnu/libcholmod.so
  
  time ./main
  -> real       2m21,367s user  11m30,913s sys  5m11,448s
  
- 
  (now I force it to be single threaded)
  time OPENBLAS_NUM_THREADS=1 OMP_THREAD_LIMIT=1  ./main
  -> real       0m49,684s user  0m48,922s sys   0m0,760s
  
  Notice the huge "sys" time consumption in parallel run.
  
- I have a 4 core / 8 thread Intel CPU.
+ I have a 4 core / 8 thread Intel CPU running Ubuntu 18.04, everything 
up-to-date.
  In my research project with a more complex matrix, the slow-down is the 
factor 8.

** Description changed:

  If I run a simple CHOLMOD C++ program, I noticed that it takes more time
  running in parallel than single threaded. For the attached program file
  I did
  
  g++ -o main main.cpp /usr/lib/x86_64-linux-gnu/libcholmod.so
  
  time ./main
  -> real       2m21,367s user  11m30,913s sys  5m11,448s
  
  (now I force it to be single threaded)
  time OPENBLAS_NUM_THREADS=1 OMP_THREAD_LIMIT=1  ./main
  -> real       0m49,684s user  0m48,922s sys   0m0,760s
  
  Notice the huge "sys" time consumption in parallel run.
  
  I have a 4 core / 8 thread Intel CPU running Ubuntu 18.04, everything 
up-to-date.
  In my research project with a more complex matrix, the slow-down is the 
factor 8.
+ 
+ Further info: It is not machine-dependent. It is also confirmed in
+ Debian 10 on several different machines.

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

Title:
  CHOLMOD slows down in parallel

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to