summaryrefslogtreecommitdiff
path: root/libhsail-rt
diff options
context:
space:
mode:
authorMartin Jambor <jamborm@gcc.gnu.org>2017-01-27 15:35:07 +0100
committerMartin Jambor <jamborm@gcc.gnu.org>2017-01-27 15:35:07 +0100
commitf6a24a94a63abf72a349346c0af46426a63aba1a (patch)
tree5c230ebc44096ebc0fd8a1e52e8be49140663b98 /libhsail-rt
parent71103b610487c068e1bb379724f6bba1eafedb08 (diff)
downloadgcc-f6a24a94a63abf72a349346c0af46426a63aba1a.tar.gz
[brigfe] Small fixes
2017-01-27 Pekka Jaaskelainen <pekka.jaaskelainen@parmance.com> * configure.ac: Moved the white list of enabling BRIG FE to libhsail-rt/configure.tgt. * configure: Regenerated. * MAINTAINERS: Updated maintainers for BRIG FE and libhsail-rt. gcc/ * builtin-types.def: Use unsigned_char_type_node for BT_UINT8. Use uint16_type_node for BT_UINT16. gcc/brig/ * config-lang.in: Removed stale target-libbrig reference. libhsail-rt/ * configure.tgt: Moved the white list of supported targets here from configure.ac. Added i[3456789]86-*-linux* as a supported env for the BRIG FE. * README: Added a proper description of what libhsail-rt is. From-SVN: r244978
Diffstat (limited to 'libhsail-rt')
-rw-r--r--libhsail-rt/ChangeLog7
-rw-r--r--libhsail-rt/README14
-rw-r--r--libhsail-rt/configure.tgt38
3 files changed, 55 insertions, 4 deletions
diff --git a/libhsail-rt/ChangeLog b/libhsail-rt/ChangeLog
index b986286c409..c8f27080109 100644
--- a/libhsail-rt/ChangeLog
+++ b/libhsail-rt/ChangeLog
@@ -1,3 +1,10 @@
+2017-01-27 Pekka Jääskeläinen <pekka.jaaskelainen@parmance.com>
+
+ * configure.tgt: Moved the white list of supported targets here
+ from configure.ac. Added i[3456789]86-*-linux* as a supported env
+ for the BRIG FE.
+ * README: Added a proper description of what libhsail-rt is.
+
2017-01-26 Jakub Jelinek <jakub@redhat.com>
Update copyright years.
diff --git a/libhsail-rt/README b/libhsail-rt/README
index 2792253f6d3..64c2107ea3d 100644
--- a/libhsail-rt/README
+++ b/libhsail-rt/README
@@ -1,4 +1,10 @@
-Run autoconf2.64 && automake-1.11 to regenerate the buildfiles.
-You might need to manually tweak the minor automake version number
-in configure.ac and aclocal.m4 (search for 1.11.6) in case your
-local 1.11 minor version doesn't match. \ No newline at end of file
+This library implements the agent-side runtime functionality required
+to run HSA finalized programs produced by the BRIG frontend.
+
+The library contains both the code required to run kernels on the agent
+and also functions implementing more complex HSAIL instructions.
+
+rt/workitems.c contains the runtime entry function that manages multiple
+work-item execution using fibers or simple for-loops (in case of work groups
+without barriers). Otherwise, the rest of the source files mostly contain
+functions that typically map directly to HSAIL instructions.
diff --git a/libhsail-rt/configure.tgt b/libhsail-rt/configure.tgt
new file mode 100644
index 00000000000..7c481caa38b
--- /dev/null
+++ b/libhsail-rt/configure.tgt
@@ -0,0 +1,38 @@
+# -*- shell-script -*-
+# Copyright (C) 2012-2017 Free Software Foundation, Inc.
+# Contributed by Pekka Jaaskelainen <pekka.jaaskelainen@parmance.com>
+# for General Processor Tech.
+#
+# This file is part of the libhsail-rt.
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files
+# (the "Software"), to deal in the Software without restriction, including
+# without limitation the rights to use, copy, modify, merge, publish,
+# distribute, sublicense, and/or sell copies of the Software, and to
+# permit persons to whom the Software is furnished to do so, subject to
+# the following conditions:
+#
+# The above copyright notice and this permission notice shall be included
+# in all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
+# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
+# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
+# USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+# Disable the BRIG frontend and libhsail-rt on untested or known
+# broken systems. Currently it has been tested only on x86_64 Linux
+# of the upstream gcc targets. More targets shall be added after testing.
+case "${target}" in
+ i[[3456789]]86-*linux*)
+ ;;
+ x86_64-*-linux*)
+ ;;
+ *)
+ UNSUPPORTED=1
+ ;;
+esac