Closed shushu-qin closed 1 year ago
Hi @shushu-qin,
I tried to reproduce your issue:
python3 -m venv venv
. ./venv/bin/activate
pip install pypardiso jupyter
jupyter notebook
Can you give me some more details? What OS are you using? What's the output of pip list
of your virtualenv?
Error code -2
of the Pardiso solver is short for not enough memory
. Is there some memory restriction in place on your system that could interfere with the jupyter kernel?
Thank you for the reply. I am gonna give as much information as possible 😄
PS: I used to use this library for the same code on an old desktop: Ubuntu 20.04 Intel i5 cores=4, threads=8. It worked. Now I am moving the code to another computer, the simple test example run successfully alone, but failed in my project and in the jupyter notebook.
This looks very similar to what you describe: https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/pardiso-insufficient-memory/m-p/1358741#M32717%3Fprofile.language=en
Can you try downgrading mkl
and intel-openmp
and see if that changes anything?
pip install mkl==2022.0.1 intel-openmp==2022.0.1
Downgrading mkl
and intel-openmp
doesn't change anything. I circumvented the problem in an inefficient way: save the matrix in a file and start a new process to read the file and perform calculation...
Hi, I am using 0.4.0 version of the package. I tried the simple example in a python script file. It can be run without any error. However, if I run the same code in a jupyter notebook or use pypardiso in a member function of a class, it fails. Can anyone help resolve this issue?
The code I was testing is as follows: ` import pypardiso import numpy as np import scipy.sparse as sp from scipy.io import loadmat
A = sp.rand(10, 10, density=0.5, format='csr') b = np.random.rand(10) x = pypardiso.spsolve(A, b) print(x) `
And the error I received is: