autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: detection and support of OpenMP


From: Noah Misch
Subject: Re: detection and support of OpenMP
Date: Thu, 17 May 2007 05:00:12 -0700
User-agent: Mutt/1.5.9i

On Thu, May 17, 2007 at 12:30:31PM +0200, Bruno Haible wrote:
> In the macro, it would have been simpler to blindly test for the first
> supported option in a list "-fopenmp -xopenmp -openmp -mp -omp -qsmp=omp",
> but many compilers accept several of these options and do something unrelated 
> -
> like to create an output file called 'penmp' or to warn about an unsupported
> compiler option. The code therefore applies each option only to the brand of
> compiler that is known to be likely to support it.

Even if a compiler accepts one of these options without enabling OpenMP, the
test compilation will fail thanks to _OPENMP remaining undefined.  Right?

I also echo Ralf's good advice, particularly about testing a few OpenMP features
in addition to the preprocessor symbol.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]