This is an archive of the discontinued LLVM Phabricator instance.

[flang][OpenMP] Add fortran test with basic target region
ClosedPublic

Authored by jsjodin on Aug 30 2023, 10:18 AM.

Details

Summary

This patch adds a test that uses a target region to set a scalar value. It also adds rules in lit.cfg to handle Fortran testing.

Diff Detail

Event Timeline

jsjodin created this revision.Aug 30 2023, 10:18 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 30 2023, 10:18 AM
jsjodin requested review of this revision.Aug 30 2023, 10:18 AM
jdoerfert added inline comments.Aug 30 2023, 1:20 PM
openmp/libomptarget/test/offloading/fortran/basic_target_region.f90
3

I believe you need unsupported here too.
This will only check we have the AMD backend, not that we might want to offload to NVIDIA or the host.

jsjodin updated this revision to Diff 555058.Aug 31 2023, 8:26 AM

Added UNSUPPORTED targets and ignored commands rules.

jsjodin marked an inline comment as done.Aug 31 2023, 8:26 AM

I added unsupported for the other targets.

elmcdonough added inline comments.Aug 31 2023, 9:54 AM
openmp/libomptarget/test/offloading/fortran/basic_target_region.f90
3

Do you reckon this applies to basic_array.c as well?

jdoerfert accepted this revision.Aug 31 2023, 6:56 PM

LG

openmp/libomptarget/test/offloading/fortran/basic_target_region.f90
3

yes.

This revision is now accepted and ready to land.Aug 31 2023, 6:56 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptSep 1 2023, 6:27 AM