2014-11-03 Tom de Vries <tom@codesourcery.com>
* testsuite/libgomp.oacc-c++/c++.exp: Set default LIBGOMP_PLUGIN_PATH.
Print used LIBGOMP_PLUGIN_PATH.
* testsuite/libgomp.oacc-c/c.exp: Same.
* testsuite/libgomp.oacc-fortran/fortran.exp: Same.
---
libgomp/testsuite/libgomp.oacc-c++/c++.exp | 5 +++++
libgomp/testsuite/libgomp.oacc-c/c.exp | 5 +++++
libgomp/testsuite/libgomp.oacc-fortran/fortran.exp | 5 +++++
3 files changed, 15 insertions(+)
@@ -73,6 +73,11 @@ if { $lang_test_file_found } {
set libstdcxx_includes ""
}
+ if { ![info exists env(LIBGOMP_PLUGIN_PATH)] } {
+ set env(LIBGOMP_PLUGIN_PATH) "${blddir}/plugin/.libs"
+ }
+ puts "Using LIBGOMP_PLUGIN_PATH $env(LIBGOMP_PLUGIN_PATH)"
+
# Todo: get list of accelerators from configure options --enable-accelerator.
set accels { "nvidia" "host_nonshm" }
@@ -39,6 +39,11 @@ set ld_library_path $always_ld_library_path
append ld_library_path [gcc-set-multilib-library-path $GCC_UNDER_TEST]
set_ld_library_path_env_vars
+if { ![info exists env(LIBGOMP_PLUGIN_PATH)] } {
+ set env(LIBGOMP_PLUGIN_PATH) "${blddir}/plugin/.libs"
+}
+puts "Using LIBGOMP_PLUGIN_PATH $env(LIBGOMP_PLUGIN_PATH)"
+
# Todo: get list of accelerators from configure options --enable-accelerator.
set accels { "nvidia" "host_nonshm" }
@@ -66,6 +66,11 @@ if { $lang_test_file_found } {
append ld_library_path [gcc-set-multilib-library-path $GCC_UNDER_TEST]
set_ld_library_path_env_vars
+ if { ![info exists env(LIBGOMP_PLUGIN_PATH)] } {
+ set env(LIBGOMP_PLUGIN_PATH) "${blddir}/plugin/.libs"
+ }
+ puts "Using LIBGOMP_PLUGIN_PATH $env(LIBGOMP_PLUGIN_PATH)"
+
# Todo: get list of accelerators from configure options --enable-accelerator.
set accels { "nvidia" "host_nonshm" }
--
1.9.1