Using clang+libomp+gfortran toolchain for build saves both compile and runtime cost under mac.
As cmake seems to have a little problem recognizing libomp, additional variables have to be set in the configuration. I'm uploading mine.
Simple benchmark:
45.35s user 30.20s system 329% cpu 22.906 total # gcc9+mkl
89.03s user 0.53s system 772% cpu 11.590 total # icc+mkl
76.39s user 0.28s system 779% cpu 9.834 total # clang+accelerate
Using
clang+libomp+gfortran
toolchain for build saves both compile and runtime cost under mac. As cmake seems to have a little problem recognizing libomp, additional variables have to be set in the configuration. I'm uploading mine.Simple benchmark: