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

how to compile on macOS #14

Open
tristan-k opened this issue Jun 1, 2024 · 1 comment
Open

how to compile on macOS #14

tristan-k opened this issue Jun 1, 2024 · 1 comment

Comments

@tristan-k
Copy link

Can you provide a quick guide on how to install on macOS with Apple Silicon?

$ brew install gcc cmake
$ git clone https://github.com/jeffhammond/STREAM/ && cd STREAM
$ make
gcc -O2 -fopenmp   -c -o mysecond.o mysecond.c
clang: error: unsupported option '-fopenmp'
make: *** [mysecond.o] Error 1
@jeffhammond
Copy link
Owner

jeffhammond commented Jun 1, 2024

Use a compiler that supports OpenMP. Apple Clang doesn't. Use Homebrew to install GCC or LLVM. Those will have OpenMP enabled.

You may need to edit the Makefile to use CC=gcc-13 or whatever the full binary name is. The program gcc is llvm dragonegg.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants