Re: mkoctfile and OpenMP

Kai Torben Ohlhus <[email protected]>
Newsgroups gmane.comp.gnu.octave.maintainers
Message-ID <[email protected]>
On 5/9/20 10:09 PM, José Luis García Pallero wrote:
> Hello:
> 
> I've observed in Octave 5.2.0 (I don't know if it was present in
> previous versions) that mkocfile by default activates the OpenMP
> compatibility. Which is the reason for this behavior instead of the
> use of -fopenmp by the user as in gcc?
> 

mkoctfile is a wrapper for the system compiler (e.g. "gcc").

   mkoctfile -p CC
   gcc

Do you refer to the standard compiler flags of "mkoctfile", i.e., why is
"-fopenmp" set by default?

   mkoctfile -p ALL_CFLAGS
   -I/usr/include/octave-5.2.0/octave/..
-I/usr/include/octave-5.2.0/octave  -pthread -fopenmp -g -O2

Is there a reason not to use this flag by default?

Kai
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.