I installed the gcc compiler via xcode-select --install
but the version installed is 4.2.1
then it isn't possible to use the OpenMp flag -fopenmp
for compile the source code.
I tried to install the compile via Homebrew
and link this to the gcc exported but it doesn't work. I tried to install gcc building the latest GNU release but after building the operative system asked me if I would install gcc using xcode-select --install
.
Moreover, I follow the answer to this question but I have this error:
Error: No available formula with the name "clang-omp"
Is there any solution or suggestion I can follow to execute the OpenMP code on my Mac and on any unix-like device without having to install particular dependencies because in this answer there is a solution but the user can install dependencies?