Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Runtime] Move init_nomp.c to flangrti #1283

Merged
merged 1 commit into from Aug 21, 2022

Conversation

PeixinQiao
Copy link
Collaborator

@PeixinQiao PeixinQiao commented Aug 12, 2022

The functions in init_nomp.c was added in libompstub.so. The ompstub
linking "-lompstub" is planned to be removed in the driver. However, it
is unknown how the functions in init_nomp.c are used. For example, as
the description in ilmtp.n, "_mp_lcpu2" is used for sections directive,
but there is no such runtime function generated for a OpenMP sections
program. To be safe, move init_nomp.c to flangrti.

Copy link
Collaborator

@pawosm-arm pawosm-arm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was trying to google some reference to those functions, seems it's part of libpgc library shipped with PGI's compiler, e.g. _mp_avlcpus is listed here: https://mailman.ucar.edu/pipermail/met_help/2009-January/000534.html

Although this seems like polluting of flangrti with unrelated stuff, I guess there is no other way to make an improvement. I'm approving this conditionally, assuming other reviewers will also approve this.

Copy link
Collaborator

@bryanpkc bryanpkc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Just one nit: the word "planned" is misspelled in the commit message.

The functions in init_nomp.c was added in libompstub.so. The ompstub
linking "-lompstub" is planned to be removed in the driver. However, it
is unknown how the functions in init_nomp.c are used. For example, as
the description in ilmtp.n, "_mp_lcpu2" is used for sections directive,
but there is no such runtime function generated for a OpenMP sections
program. To be safe, move init_nomp.c to flangrti.
@PeixinQiao
Copy link
Collaborator Author

PeixinQiao commented Aug 13, 2022

Just one nit: the word "planned" is misspelled in the commit message.

Thanks. Fixed.

@PeixinQiao
Copy link
Collaborator Author

ping @shivaramaarao

@bryanpkc bryanpkc merged commit 5afb7f9 into flang-compiler:master Aug 21, 2022
@bryanpkc bryanpkc deleted the move-init_nomp branch September 22, 2022 01:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants