-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Conversation
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
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. |
There was a problem hiding this 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.
There was a problem hiding this 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.
…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.
Summary:
We have tests that depend on two static libraries
libomptarget.devicertl.a
andlibcgpu.a
. These are currentlyimplicitly picked up and searched through the standard path. This patch
changes that to pass
-nogpulib
to disable implicit runtime pathsearches. 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