LLNL / variorum

Vendor-neutral library for exposing power and performance features across diverse architectures
https://variorum.readthedocs.io
MIT License
67 stars 26 forks source link

Fix flags for OpenMP example #556

Closed masterleinad closed 2 months ago

masterleinad commented 3 months ago

Description

The target is using C not C++. Thus, the C OpenMP flags should be used. Without this change, I'm seeing errors like

[...]
gcc: error: unrecognized command-line option '-fopenmp=libomp'; did you mean '-fopenmp-simd'?
[...]

Type of change

How Has This Been Tested?

Compiling and running tests on Frontier.

Test before merge:

Checklist: