-
Notifications
You must be signed in to change notification settings - Fork 17
Description
Dear SpinW developers,
I have an issue when I try to run SpinW packages via the Apple Silicon Chip (M3, Mac OS Sequia Version 15.4.1), after I run the install_spinw.m and then run_tests.m, the error messages are below:
Error using mex
/Users/tingguangli/research/simulation/spinw-master/external/eig_omp/eig_omp.cpp:40:10:
fatal error: 'omp.h' file not found
40 | #include <omp.h>
| ^~~~~~~
1 error generated.
Error in sw_mex (line 89)
mex('-v','-largeArrayDims','eig_omp.cpp', 'CXX_FLAGS="-Xclang -fopenmp -pthread"', ...
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in run_tests (line 43)
sw_mex('compile', true, 'test', false, 'swtest', false);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
I already have Xcode installed, and could you please help me with this issue?
Best Regards,
Tingguang Li
Physics PhD candidate in Delare Research Group
Department of Physics, Duke University