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.

scipy.linalg.sqrtm get stuck in SLURM clsuters

See original GitHub issue

My issue is about the scipy.linalg.sqrtm getting stuck in SLURM cluster. I do not know why, when I run scipy.linalg.sqrtm in the cluster, the program will get stuck in running. But It runs well on my personal computer

Reproducing code example:

    covmean, _ = linalg.sqrtm(sigma1.dot(sigma2), disp=False,blocksize=32)
    sigma1 and sigma2 are two 2048*2048 matrix

Error message:

    the procedure will get stuck at "  covmean, _ = linalg.sqrtm(sigma1.dot(sigma2), disp=False,blocksize=32)"

Scipy/Numpy/Python version information:

 scipy     1.7.0+computecanada
numpy       1.20.1
python 3.7
 So please help me! thank you!

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
LonglongaaaGocommented, Aug 26, 2021

Hi, all!@ilayn @ev-br @czgdp1807 @brandon-beacher Thanks for your help! Now, I solved this problem. By setting ‘export MKL_NUM_THREADS=1’, my codes can run well. It seems there is some weird interaction between torch and scipy.

0reactions
rimlesscommented, Nov 11, 2022

thank you, I met the same problem

Read more comments on GitHub >

github_iconTop Results From Across the Web

SLURM and Python multiprocessing pool on a cluster
Pythons multiprocessing package is limited to shared memory parallelization. It spawns new processes that all have access to the main memory ...
Read more >
DMRG for electronic structure calculations — BLOCK 1.5.0 ...
The class exposes the Block keywords to PySCF so that the Block code can be run and controlled in Python script. approx_maxIter ¶....
Read more >
vocab.txt - Hugging Face
... de re ##ut ret to ##ro ##ce for co ##urn return ##ot ##re ##ame ##pe is ... ##mp variable cr term where...
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