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

gromacs: build with legacy api #126931

Merged
merged 2 commits into from
Mar 29, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Formula/gromacs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ def install
args = %W[
-DGROMACS_CXX_COMPILER=#{cxx}
-DGMX_VERSION_STRING_OF_FORK=#{tap.user}
-DGMX_INSTALL_LEGACY_API=ON
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the legacy API replace the modern API?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no new API (yet), the main thing the switch does is to install the header files.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm confused: why would you install this without any headers? It seems very odd for the default build to install things without the headers.

Copy link

@eirrgang eirrgang Mar 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why would you install this without any headers?

Primarily, the project provides a (suite of) command line tool(s).

Several libraries with various degrees of support are also bundled. One of them (libgmxapi) is enabled by default and installs gmxapi/ headers. The oldest (libgromacs) is primarily for internal use to support the command line tool(s). Some of its headers are available, optionally (the gromacs/ headers), but it is not well-supported for use by external software.

]
# Force SSE2/SSE4.1 for compatibility when building Intel bottles
args << "-DGMX_SIMD=#{MacOS.version.requires_sse41? ? "SSE4.1" : "SSE2"}" if Hardware::CPU.intel? && build.bottle?
Expand Down