MATLAB coder - compiler does not support OpenMP error (using a supported compiler)
7 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Lawrence Costa
le 12 Jan 2018
Modifié(e) : Walter Roberson
le 6 Fév 2018
When attempting to use codegen for a function that includes a parfor loop, I am getting the error "Warning: The selected compiler does not support the OpenMP library; this loop will not be parallelized". I am using a Mac with High Sierra; the compiler is Xcode 9.2 (which is listed as being supported for all coder features here: https://www.mathworks.com/support/compilers.html#mac_n1). How might I get this working?
0 commentaires
Réponse acceptée
Walter Roberson
le 16 Jan 2018
Modifié(e) : Walter Roberson
le 6 Fév 2018
You cannot do that. Apple does not support openmp for xcode. It does support openmp for one of its other compilers. A common solution is to install a different compiler, but you could configure Apple's clang instead. gcc and clang are not "supported" compilers for the Mac so no promises that everything will work.
https://stackoverflow.com/questions/41979611/is-it-possible-to-run-openmp-in-xcode-8
0 commentaires
Plus de réponses (1)
Darshan Ramakant Bhat
le 16 Jan 2018
Please refer to the "Notes for the Mac Platform" section in the below document:
OpenMP is not supported in Mac platforms.
Voir également
Catégories
En savoir plus sur Execution Speed dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!