python3Packages.cvxpy: add openmp multithreading
This commit is contained in:
parent
23e399366c
commit
e44319a3e6
@ -9,6 +9,7 @@
|
|||||||
, osqp
|
, osqp
|
||||||
, scipy
|
, scipy
|
||||||
, scs
|
, scs
|
||||||
|
, useOpenmp ? true
|
||||||
# Check inputs
|
# Check inputs
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
}:
|
}:
|
||||||
@ -34,6 +35,12 @@ buildPythonPackage rec {
|
|||||||
scs
|
scs
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# Required flags from https://github.com/cvxgrp/cvxpy/releases/tag/v1.1.11
|
||||||
|
preBuild = lib.optional useOpenmp ''
|
||||||
|
export CFLAGS="-fopenmp"
|
||||||
|
export LDFLAGS="-lgomp"
|
||||||
|
'';
|
||||||
|
|
||||||
checkInputs = [ pytestCheckHook ];
|
checkInputs = [ pytestCheckHook ];
|
||||||
pytestFlagsArray = [ "./cvxpy" ];
|
pytestFlagsArray = [ "./cvxpy" ];
|
||||||
# Disable the slowest benchmarking tests, cuts test time in half
|
# Disable the slowest benchmarking tests, cuts test time in half
|
||||||
|
Loading…
x
Reference in New Issue
Block a user