Skip to content

Possible to compile the neighbor function separate from full package? #299

Closed Answered by RaulPPelaez
InfluenceFunctional asked this question in Q&A
Discussion options

You must be logged in to vote

Indeed!
99% of the building time of torchmd-net comes from the neighbor list extensions. So I would not worry about wasting time by building the rest.

If you are not planning to modify the extension itself I would just conda install torchmd-net.

You can then just import this https://torchmd-net.readthedocs.io/en/latest/generated/torchmdnet.extensions.html#torchmdnet.extensions.get_neighbor_pairs_kernel
Or alternatively this wrapper: https://torchmd-net.readthedocs.io/en/latest/generated/torchmdnet.models.utils.html#torchmdnet.models.utils.OptimizedDistance

Building torch extensions is really tricky, so I would start by using the conda builds. If you want to build locally to fiddle with th…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@InfluenceFunctional
Comment options

Answer selected by InfluenceFunctional
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants