Comments (5)
This is now fixed in the develop
branch in 60f307b. It is related to the fact that numpy is compiled with 32bit ints support by default (see the links above).
Therefore, anaconda links numpy to the 32bit ints MKL library. If OSQP tries to use the same library with 64bit ints it creates memory issues. Too bad MKL does not detect that and reports a wrong error.
We now disabled 64bit integer support in python by default. It can be enabled with a simple flag in setup.py.
from osqp-python.
I am having a similar issue when using the osqp
from pypi
. If I use conda
then I end up getting a seg fault, explained here: osqp/osqp#65.
from osqp-python.
The coredump should be fixed in the develop
branch. However, there is an issue with using the anaconda mkl distribution. I have no problems on my mac with anaconda and numpy not linked to mkl
In [2]: numpy.show_config()
blas_mkl_info:
NOT AVAILABLE
...
lapack_mkl_info:
NOT AVAILABLE
However, when I try on another system where numpy.show_config()
returns something different than NOT AVAILABLE
I get the symbolic factorization error -3 as shown in osqp/osqp#65
In particular, if I enable the output from pardiso with msglvl = 1, I get the output
*** Error in PARDISO ( reordering_phase) error_num= -180
*** error PARDISO: reordering, symbolic factorization
It seems related to some linking issue since the error appears also here. However, in the C library and in other interfaces I do not see it happening. I strongly suspect it is related to how anaconda manages the python/numpy mkl linkage.
from osqp-python.
Possiibly related issues:
JuliaPy/PyCall.jl#443
ContinuumIO/anaconda-issues#3823
numpy/numpy#5906
from osqp-python.
Other very related issue. Other people getting the same exact problem in Julia: JuliaSparse/Pardiso.jl#28
from osqp-python.
Related Issues (20)
- Error in building wheel for osqp because "No module named cmake' " HOT 1
- No wheels for Python 3.11 HOT 1
- Cannot install osqp on MacOSX HOT 3
- Numpy 1.24 breaks builtin type aliases HOT 1
- symbol not found in flat namespace '_csc_matrix'
- Python solve is faster than C code-generated one HOT 4
- FLOAT codegen argument doesn't work as expected
- Install fails because of metadata version on Mac OS HOT 14
- Apparent non-determinism when using OSQP via CVXPY HOT 5
- Turn solving verbosity off HOT 1
- no ‘cuda pcg’ support
- OSQP.update and scaling error
- unit test failures with scipy 1.12 HOT 2
- Enhancements for skbuild migration HOT 1
- OSQP requirement of scipy < 1.12.0 slows applications down on Apple Silicon HOT 3
- Wrap generated C code with tiny python functionalities HOT 1
- Integrate new codegen with cvxpygen HOT 1
- Add CONTRIBUTING.md
- Support codegen in editable install HOT 1
- Add macOS arm64 wheel HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from osqp-python.