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

HARK jaxinterp #4

Open
alanlujan91 opened this issue Jun 13, 2023 · 2 comments
Open

HARK jaxinterp #4

alanlujan91 opened this issue Jun 13, 2023 · 2 comments

Comments

@alanlujan91
Copy link

I experimented on this a while ago but haven't done work on it since.

https://github.com/alanlujan91/HARK/blob/6fd7796402bac8527860d9bb57f151b29a5e059d/HARK/interpolation/jaxinterp.py

Also trying to overhaul HARK's interpolation infrastructure. A different route I went to use GPU was using cupy as seen in this PR econ-ark/HARK#1203

I am writing a flexible multilinear interpolator that can use different targets depending on user's hardware: cpu serial, cpu parallel, and gpu https://github.com/alanlujan91/HARK/blob/6fd7796402bac8527860d9bb57f151b29a5e059d/HARK/interpolation/jaxinterp.py

would be happy to collaborate

@alanlujan91
Copy link
Author

some of my own benchmarks

image

@Smit-create
Copy link
Member

Thanks @alanlujan91. Can you please show a small example to use your API so that we can include and benchmark your implementation using: https://gist.github.com/HumphreyYang/f524bfeb21f038d701f4d2b9a7fbb8e6?

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