Comments (4)
I just tried your code and it seems to give the segfault when verbose=True
. Have you tried it with False
instead? I will look into a fix.
from osqp-python.
@bstellato I'm getting a seg fault with verbose=False
when running 50 in parallel. Here's the code
import osqp
import numpy as np
import scipy as sp
from scipy import sparse
from multiprocessing.pool import ThreadPool
def f(i):
m = 30
n = 20
Ad = sparse.random(m, n, density=0.7, format='csc')
b = np.random.randn(m)
# OSQP data
P = sparse.block_diag([sparse.csc_matrix((n, n)), sparse.eye(m)], format='csc')
q = np.zeros(n+m)
A = sparse.vstack([
sparse.hstack([Ad, -sparse.eye(m)]),
sparse.hstack([sparse.eye(n), sparse.csc_matrix((n, m))])], format='csc')
l = np.hstack([b, np.zeros(n)])
u = np.hstack([b, np.ones(n)])
# Setup workspace
osqp.solve(P, q, A, l, u, verbose=False)
pool = ThreadPool(4)
pool.map(f, range(50))
from osqp-python.
I think the printing issue was related to this cvxgrp/scs#48 I will try to fix it tomorrow together with your segfault problem.
from osqp-python.
@bstellato thank you for the prompt response! You are right, verbose=False
solved the second case.
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.