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

[flang][test] Detect OpenMP runtime when built via LLVM_RUNTIMES_TO_B… #88914

Closed

Conversation

kparzysz
Copy link
Contributor

…UILD

The lit config was checking for the presence of the OpenMP runtime by looking at LLVM_TOOL_OPENMP_BUILD. This only works when the runtime is enabled in LLVM_PROJECTS_TO_BUILD. Expand the check to examine LLVM_RUNTIMES_TO_BUILD as well.

…UILD

The lit config was checking for the presence of the OpenMP runtime by
looking at LLVM_TOOL_OPENMP_BUILD. This only works when the runtime is
enabled in LLVM_PROJECTS_TO_BUILD. Expand the check to examine
LLVM_RUNTIMES_TO_BUILD as well.
@llvmbot llvmbot added the flang Flang issues not falling into any other category label Apr 16, 2024
Copy link
Contributor

@kiranchandramohan kiranchandramohan left a comment

Choose a reason for hiding this comment

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

Makes sense. LG. Please wait for @mjklemm.

@mjklemm
Copy link
Contributor

mjklemm commented Apr 16, 2024

There has been some duplication of work here, sorry. I'm close to finishing up a PR that solves this problem for all runtimes. I'd suggest to use the more general one instead. The PR is: #88934.

@mjklemm
Copy link
Contributor

mjklemm commented Apr 16, 2024

Plus, once #88934 has been landed, we can use the new CMake variable to detect the presence of OpenMP as a runtime in the tests.

@kparzysz
Copy link
Contributor Author

Closing. To be replaced with Michael's PRs.

@kparzysz kparzysz closed this Apr 16, 2024
@kparzysz kparzysz deleted the users/kparzysz/lit-detect-openmprt branch April 16, 2024 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flang Flang issues not falling into any other category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants