Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_solve_adjoint_derivative_dense much slower than np.linalg.solve #38

Open
zcyang opened this issue Aug 8, 2020 · 2 comments
Open

_solve_adjoint_derivative_dense much slower than np.linalg.solve #38

zcyang opened this issue Aug 8, 2020 · 2 comments

Comments

@zcyang
Copy link

zcyang commented Aug 8, 2020

diffcp is installed with openmp flags:

MARCH_NATIVE=1 OPENMP_FLAG="-fopenmp" pip install diffcp

It's at least 5 times slower than np.linalg.solve.
Eigen solve should not be much slower than np.linalg.solve.

Report here in case the code performance can be improved.

@sbarratt
Copy link
Collaborator

sbarratt commented Aug 28, 2020 via email

@zcyang
Copy link
Author

zcyang commented Sep 7, 2020

It seems diffcp is using many cores in backward when batch_size = 1 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants