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

[Libomptarget] Explicitly pass the OpenMP device libraries to tests #68225

Merged
merged 1 commit into from
Oct 4, 2023

Conversation

jhuber6
Copy link
Contributor

@jhuber6 jhuber6 commented Oct 4, 2023

Summary:
We have tests that depend on two static libraries
libomptarget.devicertl.a and libcgpu.a. These are currently
implicitly picked up and searched through the standard path. This patch
changes that to pass -nogpulib to disable implicit runtime path
searches. We then explicitly passed the built libraries to the
compilations so that we know exactly which libraries are being used.

Depends on: #68220

Fixes #68141

Summary:
We have tests that depend on two static libraries
`libomptarget.devicertl.a` and `libcgpu.a`. These are currently
implicitly picked up and searched through the standard path. This patch
changes that to pass `-nogpulib` to disable implicit runtime path
searches. We then explicitly passed the built libraries to the
compilations so that we know exactly which libraries are being used.

Depends on: llvm#68220
@shiltian
Copy link
Contributor

shiltian commented Oct 4, 2023

An irrelevant question: can GitHub handle dependence?

@jhuber6
Copy link
Contributor Author

jhuber6 commented Oct 4, 2023

An irrelevant question: can GitHub handle dependence?

No, that's just for me to keep track as I made three separate patches. There's still an ongoing discussion on how to handle stacked revisions.

Copy link
Contributor

@shiltian shiltian left a comment

Choose a reason for hiding this comment

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

Yes, we need to get rid of any implicit behavior that might cause issue in a messy environment.

Copy link
Collaborator

@JonChesterfield JonChesterfield left a comment

Choose a reason for hiding this comment

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

Keen, thank you. This will leave check-openmp running on systems that don't have rocm device libs on the path.

@jhuber6 jhuber6 merged commit 7282975 into llvm:main Oct 4, 2023
@tnv01 tnv01 mentioned this pull request Oct 4, 2023
DominikAdamski added a commit that referenced this pull request Jan 4, 2024
…tests (#76796)

This pull request is a follow-up of patch:
#68225 and it explicitly
specifies OpenMP device libraries for Fortran OpenMP tests.
qihangkong pushed a commit to rvgpu/llvm that referenced this pull request Apr 18, 2024
…tests

This pull request is a follow-up of patch:
llvm/llvm-project#68225 and it explicitly
specifies OpenMP device libraries for Fortran OpenMP tests.
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.

openmp testing should pass nogpulib
3 participants