Skip to content

Issues for complie SpinW to Apple Silicon #220

@tingguangli

Description

@tingguangli

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions