I have installed OpenMC 0.14.0 from the source on macOS Catalina, it has installed successfully and will run but settings the OMP_NUM_THREADS environment variable to the number of hardware threads on the computer still results in OpenMC running a single process?
Hi @Donald,
Thanks for your post! Does your machine have an Apple silicon chip (M1 or M2 chip). If so, the native compilers provided through XCode don’t provide support for OpenMP threading.
Not worry though, other versions of clang can be installed on the latest Apple machines and support threading. I’ll try to track down a link to them if needed.
Best,
Patrick
Hi @pshriwise,
Thank you fo r your reply. My machine does not have an Apple silicon chip.
gcc version if helpful is:
Apple clang version 12.0.0 (clang-1200.0.32.29)
Ah, I see. I’m betting that the OpenMP library still isn’t supported by default. Perhaps this link is helpful?
https://open-box.readthedocs.io/en/latest/installation/openmp_macos.html
Looks like the issue is OpenMP not being supported, went though the instructions you included and got the following error when running make:
clang: warning: argument unused during compilation: ‘-Xclang -fopenmp’ [-Wunused-command-line-argument]
So looks like it is a clang with OpenMP issue, haven’t found a work around