-
Notifications
You must be signed in to change notification settings - Fork 13.5k
[OpenMP][test][VE] Change to use VE_LD_LIBRARY_PATH for VE #65869
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
Conversation
Change to use VE_LD_LIBRARY_PATH for VE instead of LD_LIBRARY_PATH. The VE is connected to the host, and compiled test programs for VE is invoked on the host and transferred to the VE. If programs are compiled for the host, we use LD_LIBRARY_PATH. Otherwise, we use VE_LD_LIBRARY_PATH.
@llvm/pr-subscribers-openmp ChangesChange to use VE_LD_LIBRARY_PATH for VE instead of LD_LIBRARY_PATH. The VE is connected to the host, and compiled test programs for VE is invoked on the host and transferred to the VE. If programs are compiled for the host, we use LD_LIBRARY_PATH. Otherwise, we use VE_LD_LIBRARY_PATH.Full diff: https://github.com/llvm/llvm-project/pull/65869.diff 1 Files Affected:
diff --git a/openmp/runtime/test/lit.cfg b/openmp/runtime/test/lit.cfg index ab69819530d4a0..650d3853e85111 100644 --- a/openmp/runtime/test/lit.cfg +++ b/openmp/runtime/test/lit.cfg @@ -12,12 +12,16 @@ if 'PYLINT_IMPORT' in os.environ: lit_config = object() def prepend_dynamic_library_path(path): + target_arch = getattr(config, 'target_arch', None) if config.operating_system == 'Windows': name = 'PATH' sep = ';' elif config.operating_system == 'Darwin': name = 'DYLD_LIBRARY_PATH' sep = ':' + elif target_arch == 've': + name = 'VE_LD_LIBRARY_PATH' + sep = ':' else: name = 'LD_LIBRARY_PATH' sep = ':' |
Didn't we delete the |
I think this is for |
You are correct, sorry about that. |
So the host side libraries will not be used at all? |
No for libomp runtime. All test programs uses only the VE side libraries. But, some compiler tools running on the host uses libcxx and other host side libraries, though. |
And thank you for the quick correction. |
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.
LGTM. I don't think many people, including me, can run on VE in the community, so I suppose it can work. :-)
Thanks
It would be nice if there was a buildbot or machine that other people could test it on. That's the main reason we dropped the offloading support, no one knew if it actually worked. |
Thank you. We will add check-openmp to our buildbot, https://lab.llvm.org/buildbot/#/builders/91, after fixing few more problems. |
Change to use VE_LD_LIBRARY_PATH for VE instead of LD_LIBRARY_PATH. The VE is connected to the host, and compiled test programs for VE is invoked on the host and transferred to the VE. If programs are compiled for the host, we use LD_LIBRARY_PATH. Otherwise, we use VE_LD_LIBRARY_PATH.
Change to use VE_LD_LIBRARY_PATH for VE instead of LD_LIBRARY_PATH. The VE is connected to the host, and compiled test programs for VE is invoked on the host and transferred to the VE. If programs are compiled for the host, we use LD_LIBRARY_PATH. Otherwise, we use VE_LD_LIBRARY_PATH.