Linked by Thom Holwerda on Wed 7th Nov 2012 23:50 UTC, submitted by Joel Dahl
Thread beginning with comment 541353
To view parent comment, click here.
To read all comments associated with this story, please click here.
To view parent comment, click here.
To read all comments associated with this story, please click here.
I agree. Clang provides fantastically clear error messages, expecially when you use templates. But the lack of support for OpenMP is a severe impediment for those like me that do HPC (I am working in a large astrophysical project, and our codes run on machines with 12 cores at least and take hours/days to complete!).
By the way, this is the reason why I removed Mac OS X from my Macbook and replaced it with Ubuntu: to have a reasonably updated version of gcc instead of the very old one bundled with Lion.
But the lack of support for OpenMP is a severe impediment for those like me that do HPC (I am working in a large astrophysical project, and our codes run on machines with 12 cores at least and take hours/days to complete!).
I don't know if this helps: http://root.cern.ch/drupal/content/cling
CERN does something with cling and clang and they do HPC stuff.
By the way, this is the reason why I removed Mac OS X from my Macbook and replaced it with Ubuntu: to have a reasonably updated version of gcc instead of the very old one bundled with Lion.
I don't have much experience with OS X Lion, but couldn't you simply have installed a newer version of GCC? I've not used a Mac as my main work machine for a while, but it used to be possible on Snow Leopard using MacPorts with some tweaking. I certainly had GCC 4.5.x running with OpenMP 3.0 support on my Snow Leopard based machine (like you, I needed it for modelling).
Edited 2012-11-08 16:56 UTC





Member since:
2007-07-20
clang is really very good compiler, though I think you're right - its a licensing issue, at the moment I wouldn't say clang is a better compiler.
For C, they both do well, for C++, clang is still not 100%.
And on both C/C++ clang misses OpenMP, which may be a big deal if you're using that a lot.
I do benchmarks once in a while and for me - (testing cycles-raytracer), clang is still slower then gcc (5-10%), and has been for over a year.
IMHO the advantage is more with is ability to integrate with IDE's and be used as a library. - clang/python for example is pretty nice, though focused on IDE's rather then giving you access to all info.