question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Default parallel choice -- to be or to remove

See original GitHub issue

As long as SISL_NPROCS>1 the tests sometimes fails, and quite often with OMP_NUM_THREADS>1 and threaded libraries it will just simply stall for ever.

We need a more careful test of this to assert whether this is because of pytest instantiation (I have a feeling that the combination of pytest + SISL_NPROCS>1 + OMP_NUM_THREADS>1

In any case I think it is vital we don’t ship out a code that actually does not perform.

@pfebrer you also saw some of this (can’t seem to find the thread). I think we need to have a discussion here, otherwise I will simply put the default SISL_NPROCS == 1 to at least have something.

As it stands I am a bit inclined to try and default to not using multiple processors, but rely on threads for performance through BLAS. In any case many of the demanding things are based on BLAS+LAPACK calls and so adding the pool will only make it worse… 😦

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
zerothicommented, Nov 4, 2021

I think it is this one: viz/tests/test_plot.py::TestMultiplePlot::test_object_sharing, would that make sense?

I can make everything run fine with export SISL_NPROCS_VIZ=1

0reactions
zerothicommented, Nov 8, 2021

For now everything is defaulted to 1 core.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Default Parallelism
The default DOP algorithm is designed to use maximum resources and assumes that the operation finishes faster if it can use more resources....
Read more >
Parallel make: set -j8 as the default option - Stack Overflow
I've basically "aliased" my default target all to a "private" _all . The command to figure out the number of cores is OSX...
Read more >
Parallel Structure
Parallel structure (also called parallelism) is the repetition of a chosen grammatical form within a sentence. By making each compared item or idea...
Read more >
GNU Parallel Tutorial
The tutorial is meant to learn the options in and syntax of GNU parallel. ... If no replacement strings are used the default...
Read more >
Specify Your Parallel Preferences - MATLAB & Simulink
Default Profile — Choose the profile you want to use. · Preferred number of workers — Specify the number of workers in your...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found