MMC Installation on Mac

194 views
Skip to first unread message

Mayna Nguyen

unread,
Aug 31, 2023, 4:41:12 PM8/31/23
to mmc-users
Hi,

I am trying to install MMC on a Macbook with an M2 Pro Chip. I followed the instructions from GitHub and I'm getting this error when I run make:

/Library/Developer/CommandLineTools/usr/lib/clang/14.0.3/include/smmintrin.h:14:2: error: "This header is only meant to be used on x86 and x64 architecture"


Is it possible to install MMC on a newer Mac or is there a quick fix for this?

Thanks,

Mayna

Qianqian Fang

unread,
Sep 8, 2023, 10:06:12 AM9/8/23
to mmc-users
it is strange that I also do not see this post in my email, only found out when browsing the web based forum.

I do not have an M2 based Mac (only intel macs), but I expect it to work.

if your goal is to just use OpenCL version of mmc, you can type "make omp CC=gcc-10 CXX=g++-10 AR=g++-10", and install gcc-10 using

brew install gcc@10

you can also use gcc@11 or 12 as well. you can checkout our Github action CI script to see how we build mmc on the mac


it is also possible to also use clang to build mmc under omp+OpenCL, but you will have to install libomp and replace all -fopenmp flag by -Xclang -fopenmp in compilation and -lomp in linking, this requires you to first install libomp

brew install libomp
brew link --force libomp

M2 processors are expected to support OpenCL, if you are able to build/run mmc on it, please let me know how its speed look like, you can run example/validation/run_tess.sh

Qianqian

Shijie Yan

unread,
Sep 8, 2023, 12:31:01 PM9/8/23
to mmc-users
Hi All,

I have a M1 Max MBP and I was able to build and run MMC-OpenCL following Dr. Fang's instructions. Note that the minimum version of GCC that supports Apple Silicon is gcc-11. In addition, you may want to modify this line to link libomp.a in case it is installed in a path different than /usr/local/lib/.
Homebrew’s package index
Best,
Shijie

From: mmc-...@googlegroups.com <mmc-...@googlegroups.com> on behalf of Qianqian Fang <fan...@gmail.com>
Sent: Friday, September 8, 2023 10:06 AM
To: mmc-users <mmc-...@googlegroups.com>
Subject: [mmc-users] Re: MMC Installation on Mac
 
--
You received this message because you are subscribed to the Google Groups "mmc-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mmc-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mmc-users/e4bedc3c-b752-495f-a9a2-96593387dab8n%40googlegroups.com.
Screenshot 2023-09-08 at 9.26.47 AM.png

Qianqian Fang

unread,
Sep 8, 2023, 12:36:49 PM9/8/23
to mmc-...@googlegroups.com
if you run `brew link --force libomp`, your libomp.a/libomp.dylib will be linked to /usr/local/lib

what's the speed of mmc looks like on M1? how does it compare to other GPUs in our lab?

Qianqian Fang

unread,
Sep 8, 2023, 12:44:47 PM9/8/23
to mmc-...@googlegroups.com
On 9/8/23 12:36, Qianqian Fang wrote:
if you run `brew link --force libomp`, your libomp.a/libomp.dylib will be linked to /usr/local/lib

what's the speed of mmc looks like on M1? how does it compare to other GPUs in our lab?



never mind, just saw your screenshot - looks like it is just int he league of Intel integrated GPU, still quite far from the performance of dedicated NVIDIA/AMD GPUs - even the old GTX1080 GPU is about 10x of the speed in M1 max

Reply all
Reply to author
Forward
0 new messages