Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solution of enabling OpenMP support for macOS #2274

Open
vainPointer opened this issue Dec 2, 2023 · 0 comments
Open

Solution of enabling OpenMP support for macOS #2274

vainPointer opened this issue Dec 2, 2023 · 0 comments

Comments

@vainPointer
Copy link

Describe the Issue!

The document of QuTiP said installing from the source code by python setup.py install --with-openmp doesn't support for macOS. But this is actually easy to deal with.

Step 1. Install GNU GCC and OpenMP from home-brew
$ brew install gcc libomp

Step 2. Export environment CC CXX instead of /usr/bin/gcc by /usr/local/bin/gcc-13
$ export CC=`which gcc-13` $ export CXX=`which g++-13`

Now it is worked in my environment that python setup.py build --with-openmp generates a OpenMP edition QuTiP.

And as for INTEL MKL supporting info, the judgment for macOS is different, you can find the way here to get this information rather than hasattr(config,'mkl_info').

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant