Skip to content

Instantly share code, notes, and snippets.

@carrascomj
Last active September 14, 2021 10:03
Show Gist options
  • Save carrascomj/a4d91a926814646e36592a853516c7ac to your computer and use it in GitHub Desktop.
Save carrascomj/a4d91a926814646e36592a853516c7ac to your computer and use it in GitHub Desktop.
try_cuosqp_optlang.ipynb
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@carrascomj
Copy link
Author

In the fork, I changed src/optlang/tests/test_osqp_interface.py to allow cuosqp and removed the tests from ConstraintTestCase (but it would have the same output).

@cdiener
Copy link

cdiener commented Mar 4, 2021

This is working for me:

test_binary_variables (optlang.tests.test_osqp_interface.ModelTestCase) ... /usr/local/lib/python3.7/dist-packages/cuosqp-0.1.0-py3.7-linux-x86_64.egg/cuosqp/utils.py:20: UserWarning: Linear system solver not recognized. Using default solver CUDA PCG.
  warn("Linear system solver not recognized. " +
ok

Have you changed your runtime to one with a GPU? (Runtime -> Change Runtime Type)

@rmnshelest
Copy link

I have the same error (

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment