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 '-framework Accelerate' to LDFLAGS on a mac #1906

Merged
merged 1 commit into from
Sep 22, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
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
8 changes: 8 additions & 0 deletions config/cesm/machines/config_compilers.xml
Original file line number Diff line number Diff line change
Expand Up @@ -722,6 +722,14 @@ using a fortran linker.
</SLIBS>
</compiler>

<compiler MACH="homebrew" COMPILER="gnu">
<LDFLAGS>
<!-- These LDFLAGS provide lapack and blas support on a Mac. This
may require installation of the Apple Developer Tools. -->
<append> -framework Accelerate </append>
</LDFLAGS>
</compiler>

<compiler MACH="juqueen" COMPILER="ibm">
<MPICC> mpixlc_r </MPICC>
<MPIFC> mpixlf2003_r </MPIFC>
Expand Down
7 changes: 5 additions & 2 deletions config/cesm/machines/config_machines.xml
Original file line number Diff line number Diff line change
Expand Up @@ -898,9 +898,12 @@
config_machines.xml file in your personal .cime directory and
then changing the machine name (MACH="homebrew") to
your machine name and the NODENAME_REGEX to something matching
your machine's hostname. In this case, you should not need the
your machine's hostname. With (2), you should not need the
`--machine` argument, because the machine should be determined
automatically.
automatically. However, with (2), you will also need to copy the
homebrew-specific settings in config_compilers.xml into a
config_compilers.xml file in your personal .cime directory, again
changing the machine name (MACH="homebrew") to your machine name.

</DESC>
<NODENAME_REGEX> something.matching.your.machine.hostname </NODENAME_REGEX>
Expand Down