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.
@@ -62,6 +62,11 @@ if { $lang_test_file_found } {
set libstdcxx_includes ""
}
+ if { ![info exists env(LIBGOMP_PLUGIN_PATH)] } {
+ set env(LIBGOMP_PLUGIN_PATH) "${blddir}/.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" }
@@ -33,6 +33,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}/.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}/.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