Skip to content

Commit 0215579

Browse files
authored
[Flang][Offload][Tests] Set default OpenMP version to 5.2 (52) (#110138)
We recently added versioning support to Flang's OpenMP, which restricts and enables certain things based on the OpenMP specification version. Currently one of the check-offload tests makes use of a feature that's at a slightly higher version than the current default causing it to fail. This PR basically applies the highest current OpenMP version number as a default argument for the lit.cfg, if we need more fine grained control in the future we can expand it to different lit commands for each relevant version than can then be added in each test. But for now, to keep it simple, just set the max level version.
1 parent b52885b commit 0215579

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

offload/test/lit.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ config.test_flags = " -I " + config.test_source_root + \
8888

8989
# compiler specific flags
9090
config.test_flags_clang = ""
91-
config.test_flags_flang = ""
91+
config.test_flags_flang = "-fopenmp-version=52"
9292

9393
if config.omp_host_rtl_directory:
9494
config.test_flags = config.test_flags + " -L " + \

0 commit comments

Comments
 (0)