-
Notifications
You must be signed in to change notification settings - Fork 15
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
GPU Support for rascaline #271
Comments
Yes, rascaline currently only supports calculations on CPU. All the CPU-intensif code is written in Rust, and then exported with a compatibilty shim to PyTorch, but the main calculation happens outside of PyTorch itself, and without using PyTorch primitives. Adding support for GPU will require us to write custom CUDA/HIP/... kernels for everything, which think we will want to do at some point. This will however require a significant refactoring and coding effort, unlikely to happen before ~1year. @kvhuguenin and @PicoCentauri are working on a pure PyTorch version of LODE that should support GPU, but it's currently private. |
I would like to run a simulation of a charged system with about 10,000 particles. So using rascaline and pytroch together may not be practical at this stage. Thank you very much for your excellent work, I'll keep an eye on it. |
From @clecust in #270, split into it's own issue
GPU Support for rascaline.torch.LodeSphericalExpansion
I encountered an issue when attempting to use rascaline.torch.LodeSphericalExpansion() with GPU input data. It appears that the computation primarily occurs on the CPU, and the results (x) are displayed on the CPU as well. Below is a snippet of my main code:
The text was updated successfully, but these errors were encountered: