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

Add lj/webgl pair style #11

Open
andeplane opened this issue Aug 8, 2017 · 0 comments
Open

Add lj/webgl pair style #11

andeplane opened this issue Aug 8, 2017 · 0 comments
Assignees
Milestone

Comments

@andeplane
Copy link
Collaborator

We don't have cuda or anything like that, but we do have webgl. It is possible to do all computations in a simple pair style like LJ just to be able to run big simulations in the browser.

Maybe compute shaders are available on WebGL? If not, we can send all atom positions/types etc as textures into the fragment shader kernels and write forces and energies as output maybe. Problem is that we'd like one fragment shader kernel per atom i, not per Fx, Fy, Fz, E per atom. So maybe we can write to multiple textures, one for Fx, one for Fy etc.

https://gist.github.com/adrianseeley/f768fd7a3aab2370eafc
https://github.com/gnonio/gl-compute
http://www.khronos.org/webcl/
https://kripken.github.io/emscripten-site/docs/api_reference/module.html

@andeplane andeplane added this to the Future milestone Aug 8, 2017
@andeplane andeplane self-assigned this Aug 8, 2017
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

1 participant