]> gcc.gnu.org Git - gcc.git/commit
libgomp testsuite: Don't amend 'LD_LIBRARY_PATH' for system-provided HSA Runtime...
authorThomas Schwinge <thomas@codesourcery.com>
Wed, 6 Apr 2022 08:39:56 +0000 (10:39 +0200)
committerKwok Cheung Yeung <kcy@codesourcery.com>
Tue, 28 Jun 2022 20:55:28 +0000 (13:55 -0700)
commitcb3cdd60f6b3ca9a354cdcaf4be024142473d215
tree5b7027c52f7d3d2f5aa247ad70d2ad566d976f35
parent270bfaf9addc79163a7f170e8da01c2579bc5a5f
libgomp testsuite: Don't amend 'LD_LIBRARY_PATH' for system-provided HSA Runtime library

This is only active if GCC is 'configure'd with '--with-hsa-runtime=[...]' or
'--with-hsa-runtime-lib=[...]' -- which nobody really is doing, as far as I can
tell.

'libgomp/testsuite/lib/libgomp.exp:libgomp_init' states:

    # For build-tree testing, also consider the library paths used for builing.
    # For installed testing, we assume all that to be provided in the sysroot.
    if { $blddir != "" } {
        [...]
        global hsa_runtime_lib
        if { $hsa_runtime_lib != "" } {
            append always_ld_library_path ":$hsa_runtime_lib"
        }
    }

However, the libgomp GCN plugin is unconditionally built against the
GCC-shipped 'include/hsa*.h' header files, and at run time does
'dlopen("libhsa-runtime64.so.1")', so there is no system-provided HSA Runtime
library "used for builing".  It thus doesn't make sense to amend
'LD_LIBRARY_PATH' for system-provided HSA Runtime library.

libgomp/
* testsuite/lib/libgomp.exp (libgomp_init): Don't
'append always_ld_library_path ":$hsa_runtime_lib"'.
* testsuite/libgomp-test-support.exp.in (hsa_runtime_lib): Don't set.

(cherry picked from commit 2e309a4eff80e55b53d32d26926a2a94eabfea21)
libgomp/ChangeLog.omp
libgomp/testsuite/lib/libgomp.exp
libgomp/testsuite/libgomp-test-support.exp.in
This page took 0.064075 seconds and 6 git commands to generate.