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 |
|||||
Traditional mode | Clang mode -Nclang |
||||
Optimization | -O3 | -O3 or -Ofast | -O3 or -Ofast | -Kfast | -O3 |
Vectorization | -h vector3 | -mcpu=a64fx -armpl | -mcpu=a64fx | -KSVE | -march=armv8.2-a+sve |
Vectorization report | -h msgs | -Rpass=loop-vectorize | -fopt-info-vec |
-Koptmsg=2 |
|
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/version | arm-modules/version | gcc/version |
fujitsu/ |
|
Compiler names | |||||
C | cc | armclang | gcc | fcc | |
C++ | CC | armclang++ | g++ | FCC | |
Fortran | ftn | armflang | gfortran | frt |