Skip to content

Accelerating Custom Force Computations #1843

Answered by joaander
mgaimann asked this question in Support
Discussion options

You must be logged in to vote

local_pair_list is designed for convenience, not zero-copy. You should use gpu_local_nlist_arrays with cupy.

I still recommend a direct C++ implementation. This opens the possibility to use highly optimized multiple threads per particle code, auto uners, parameter dictionaries, etc. If you are writing C++ already for cupy, then the only additional work is to add the C++/Python interface and to execute cmake to configure and build the code.

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
2 replies
@mgaimann
Comment options

@joaander
Comment options

Comment options

You must be logged in to vote
6 replies
@joaander
Comment options

Answer selected by mgaimann
@mgaimann
Comment options

@joaander
Comment options

@mgaimann
Comment options

@mgaimann
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Support
Labels
None yet
2 participants