issp-center-dev / mVMC

A numerical solver package for a wide range of quantum lattice models based on many-variable Variational Monte Carlo method
http://www.pasums.issp.u-tokyo.ac.jp/mvmc/en/
GNU General Public License v3.0
59 stars 19 forks source link

Added Compilation Configuration for Apple Clang #6

Closed xrq-phys closed 4 years ago

xrq-phys commented 5 years ago

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
k-yoshimi commented 4 years ago

Great !!