2

I want to get the vectorisation report regrading automated vectorisation and openmp SIMD.

user1436187
  • 3,252
  • 3
  • 26
  • 59

2 Answers2

3
# gcc
-fopenmp-simd -O3 -ffast-math -march=native -fopt-info-omp-vec-optimized-missed
# clang
-fopenmp-simd -O3 -ffast-math -march=native -Rpass="loop|vect" -Rpass-missed="loop|vect" -Rpass-analysis="loop|vect"
# icc on Linux
-qopenmp-simd -O3 -ffast-math -march=native -qopt-report-file=stdout -qopt-report-format=vs -qopt-report=5 -qopt-report-phase=loop,vec
# msvc
-openmp -O2 -fp:fast -arch:AVX2 -Qvec-report:2
Trass3r
  • 5,858
  • 2
  • 30
  • 45
-2

I don't think Apple's flavor of clang supports OpenMP (At least not by default on macOS).

You may find ways to extend it though.

Royi
  • 4,640
  • 6
  • 46
  • 64
  • Clang supports OpenMP. Though Apple's clang does not support it directly, there is a way to make it to generate OpenMP code (see https://stackoverflow.com/a/47230419/3419533) – Alexey Bataev Jan 15 '18 at 21:24
  • Hi, Well I was talking about Apple's flavor of `clang`. Edited accordingly. – Royi Feb 10 '18 at 21:08