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

Compilation of MEX files fails in OSX 10.9.2 (clang-500.2.79) #1

Closed
JoaoRodrigues opened this issue Jun 1, 2014 · 2 comments
Closed

Comments

@JoaoRodrigues
Copy link

Setting the OPENMP option in Make.config does not allow the code to compile on the above-mentioned setup. The compiler complains it cannot find -lgomp.

Removing this from the compilation line in modules/Makefile (line 47) allows the code to compile (and run). Sorry for not submitting a patch but I'm not familiar with Makefile syntax at all..

@carlobaldassi
Copy link
Owner

Thanks for reporting. Hopefully, it should be fixed now if you set OPENMP=0 in Make.config (otherwise I'll reopen the issue). However, using OpenMP can improve performance significantly - unfortunately, clang doesn't support it yet, so you'd need to use gcc or icc to use it. Or you would need to use the Julia version of the code instead, which does not require to compile anything and has the same performance (slightly better actually).

@JoaoRodrigues
Copy link
Author

On my Mac I'm stuck with clang, and I won't really install Julia since on the cluster we have a normal GCC and MATLAB (so OpenMP works perfectly).

The patch works great, thanks, and thanks for making this available here too!

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

2 participants