Skip to content

Commit

Permalink
Enable Torch in GROMACS builds when available from CI container
Browse files Browse the repository at this point in the history
  • Loading branch information
giacomofiorin committed Oct 11, 2024
1 parent 28d80b4 commit 871cfa0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions devel-tools/compile-gromacs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ compile_gromacs_target() {
fi
fi

if [ -d "/opt/libtorch" ] ; then
GMX_BUILD_OPTS+=(-DGMX_NNPOT=TORCH -DTorch_DIR=/opt/libtorch/share/cmake/Torch)
fi

# When on GitHub Actions, build the tests as well
if [ -n "${GITHUB_ACTION}" ] ; then
export GROMACS_BUILD_TESTS=1
Expand Down

0 comments on commit 871cfa0

Please sign in to comment.