aboutsummaryrefslogtreecommitdiff
path: root/libgomp/configure
diff options
context:
space:
mode:
authorAlexander Monakov <amonakov@ispras.ru>2016-11-30 21:08:30 +0300
committerAlexander Monakov <amonakov@gcc.gnu.org>2016-11-30 21:08:30 +0300
commit9e38af5c5521d07a914a03175bf7b7f5d88d3c89 (patch)
treec5a2737c29a2282ad9665f202a1374c48bced574 /libgomp/configure
parentf96b7f1f47e7dccf7f1da0cab913efb3fe855db8 (diff)
downloadgcc-9e38af5c5521d07a914a03175bf7b7f5d88d3c89.zip
gcc-9e38af5c5521d07a914a03175bf7b7f5d88d3c89.tar.gz
gcc-9e38af5c5521d07a914a03175bf7b7f5d88d3c89.tar.bz2
libgomp: introduce LIBGOMP_OFFLOADED_ONLY macro
* configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it... (LIBGOMP_OFFLOADED_ONLY): ...here; new define. * configure: Regenerate. * config.h.in: Likewise. From-SVN: r243040
Diffstat (limited to 'libgomp/configure')
-rwxr-xr-xlibgomp/configure8
1 files changed, 8 insertions, 0 deletions
diff --git a/libgomp/configure b/libgomp/configure
index cfce560..6355ad9 100755
--- a/libgomp/configure
+++ b/libgomp/configure
@@ -15074,6 +15074,8 @@ case "$host" in
nvptx*-*-*)
# NVPTX does not support Pthreads, has its own code replacement.
libgomp_use_pthreads=no
+ # NVPTX is an accelerator-only target
+ libgomp_offloaded_only=yes
;;
*)
# Check to see if -pthread or -lpthread is needed. Prefer the former.
@@ -15125,6 +15127,12 @@ $as_echo "#define LIBGOMP_USE_PTHREADS 1" >>confdefs.h
fi
+if test x$libgomp_offloaded_only = xyes; then
+
+$as_echo "#define LIBGOMP_OFFLOADED_ONLY 1" >>confdefs.h
+
+fi
+
# Plugins for offload execution, configure.ac fragment. -*- mode: autoconf -*-
#
# Copyright (C) 2014-2016 Free Software Foundation, Inc.