how to disable vectorization

Tobias Burnus burnus@net-b.de
Sat Nov 14 22:00:00 GMT 2015


Tim Prince wrote:
> Now that gfortran 6.0 has become aggressive enough on vectorization to
> reduce performance in some cases, is there an equivalent to:
> gcc (by function): __attribute__((optimize("no-tree-vectorize")))
> or ifort (by DO loop) !dir$ novector ?

I think there isn't but I wonder whether the OpenMP's "!$omp simd 
savelen(1)" directive is able to do this.

  (Requires -fopenmp-simd or -fopenmp, the former only enables the SIMD 
directives, ignoring other OpenMP directives, without linking libgomp 
and without  implying -frecursive.)

Cheers,

Tobias




More information about the Fortran mailing list