Skip Navigation
Search

Vectorization Flags

To enable vectorization it is important to set specific flags for the compiler. There are also flags for causing the compiler to generate messages on what it did vectorize. Here the most important flags are given.

 

Cray

Arm

GNU

Fujitsu

  Flags
Optimization -O3 -O3 or -Ofast -O3 or -Ofast -Kfast
Vectorization -h vector3 -mcpu=a64fx -armpl -mcpu=a64fx -KSVE
Vectorization report -h msgs -Rpass=loop-vectorize -fopt-info-vec

-Koptmsg=2
-Nlst=t
(creates a *.lst file with optimization information)

Report on missed optimization -h negmsgs -Rpass-analysis=loop-vectorize -fopt-info-vec-missed  
OpenMP -h omp -fopenmp -fopenmp -Kopenmp
Debugging -G 2 -ggdb -ggdb -g
Large memory -h pic -mcmodel=large -mcmodel=large -mcmodel=large
Module CPE arm-modules/21 gcc/11.1.0

fujitsu/
compiler/1.0.20

  Compiler names
C cc armclang gcc fcc
C++ CC armclang++ g++ FCC
Fortran ftn armflang gfortran frt