octave-maintainers
[Top][All Lists]
Advanced

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

Re: Enabling OpenMP by default


From: John W. Eaton
Subject: Re: Enabling OpenMP by default
Date: Sun, 10 Mar 2013 17:12:17 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.11) Gecko/20121122 Icedove/10.0.11

On 03/10/2013 05:06 PM, Stefan Seefeld wrote:
On 03/10/2013 04:50 PM, Júlio Hoffimann wrote:
OpenMP pragmas are simply ignored by the compiler when the `-fopenmp'
flag is omitted and the code remains as if untouched. The only
consequence is a warning (e.g. warning: ignored #pragma omp). If we
enable OpenMP by default, people won't see these warnings unless they
explicitly disable the flag through configure similar to what is done
today (i.e. --enable-openmp).

Alternatively you could disable the warning using |-Wno-unknown-pragmas|.

That assumes the option exists with the compiler you are using. That might be likely, but I'd rather not depend on particular compiler options to do this job.

jwe


reply via email to

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