I have no way to see if this works because I do not have an M3, but it
looks like run_cmake generates the config.h file in the build directory
(same as where run_cmake is found) and in that file you see:
CC=/usr/bin/clang
CFLAGS= -Wall -Wno-unused-function
CNOOPTFLAGS=
COPTFLAGS=-O3 -mtune=native
CXX=/usr/bin/clang++
CXXFLAGS= -Wall -Wno-unused-function -stdlib=libc++
CXXNOOPTFLAGS=
CXXOPTFLAGS=-O3 -mtune=native
I would change native to m2 maybe ?
do this after run_cmake and before make_install
Please let me know if this works.
Adrian
On 1/16/25 9:16 AM, Sommers, Rachel C. via AMBER wrote:
> [External Email]
>
> Hi, I’m having some difficulties in getting Amber24 installed on my Mac. It has a M3 Pro chip, and is currently running MacOS 14.7.2.
>
>
> I was able to get AmberTools24 and Amber24 decompiled, and successfully ran all steps of the installation tutorial through running the run_cmake executable.
>
>
> However, when it then directs me to run the command “make install,” the process starts but always gets hung up around progress point 21%, with the following message:
>
>
>
> [ 21%] Building Fortran object AmberTools/src/quick/src/libxc/CMakeFiles/xc.dir/libxc_funcs.f90.o
>
> clang: error: unsupported argument 'apple-m3' to option '-mtune='
>
> make[2]: *** [AmberTools/src/quick/src/libxc/CMakeFiles/xc.dir/libxc_funcs.f90.o] Error 1
>
> make[1]: *** [AmberTools/src/quick/src/libxc/CMakeFiles/xc.dir/all] Error 2
>
> make: *** [all] Error 2
>
>
>
> After some independent research, I am fairly sure that I need to simply direct this program to run mtune, mcpu, or whatever else as apple-m2 instead of apple-m3, as Apple clang does not yet include apple-m3 as a supported cpu, but it should still run if directed to use apple-m2 instead of native.
>
>
> However, I cannot for the life of me figure out how or where to tell this system to use apple-m2 as the argument for mtune.
>
>
> Very grateful in advance to anyone who can suggest a command addition or file modification that might resolve this issue!
>
> R.C. Sommers
> DVM Candidate, Class of 2028
> UF College of Veterinary Medicine
>
>
>
> _______________________________________________
> AMBER mailing list
> AMBER.ambermd.org
> http://lists.ambermd.org/mailman/listinfo/amber
--
Dr. Adrian E. Roitberg
Frank E. Harris Professor
Department of Chemistry
University of Florida
roitberg.ufl.edu
352-392-6972
_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Thu Jan 16 2025 - 09:00:02 PST