This is an archive of the discontinued LLVM Phabricator instance.

[flang][driver] Forward `-fopenmp` to the host compiler
ClosedPublic

Authored by awarzynski on Jul 27 2021, 6:16 AM.

Details

Summary

This patch only modifies flang - the bash wrapper script.

-fopenmp is required to enable the OpenMP extension in the frontend
and to make sure that the required libraries are linked when generating
the final binary. This patch makes sure that -fopnemp is used for both
unparsing and the code generation (via the host compiler).

Diff Detail

Event Timeline

awarzynski created this revision.Jul 27 2021, 6:16 AM
awarzynski requested review of this revision.Jul 27 2021, 6:16 AM
Herald added a project: Restricted Project. · View Herald Transcript
awarzynski added a project: Restricted Project.
This revision is now accepted and ready to land.Jul 27 2021, 6:52 AM

I think you can move -fopenacc as well.

Include -fopenacc in this change

I think you can move -fopenacc as well.

Sure thing! I don't have an OpenACC example to test this with, but it's a fairly straightforward change. If there are no further comments, I will merge this tomorrow.