[petsc-dev] OpenMP/Vec

Sean Farley sean at mcs.anl.gov
Mon Feb 27 16:39:18 CST 2012


On Mon, Feb 27, 2012 at 4:31 PM, Gerard Gorman <g.gorman at imperial.ac.uk>wrote:

> I'm surprised by this. I not aware of any compiler that doesn't have
> OpenMP support - and then you do not actually enable OpenMP compilers
> generally just ignore the pragma. Do you know of any compiler that does
> not have OpenMP support which will complain?
>

clang (which is on any mac with xcode >= 4.0) will not compile any OpenMP
(but gcc will compile just fine):

>>>>>>>>>>>>
fatal error: 'omp.h' file not found
#include <omp.h>
         ^
1 error generated.
<<<<<<<<<<<<<

 It's not in any llvm stuff as of last month:

http://www.phoronix.com/scan.php?page=news_item&px=MTA0Mzc

Putting this layer of abstraction is really needed (especially if there are
any calls to omp_ functions)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20120227/b6e0e269/attachment.html>


More information about the petsc-dev mailing list