aboutsummaryrefslogtreecommitdiff
path: root/libgomp
diff options
context:
space:
mode:
authorJulian Brown <julian@codesourcery.com>2019-07-29 15:05:35 -0700
committerThomas Schwinge <thomas@codesourcery.com>2020-03-03 12:50:41 +0100
commitda5430880b8c503a39cfc2445337a6374419c446 (patch)
tree63211219d533b843494dce3a6c342d60d2fae859 /libgomp
parent291dfc7320dd954a5c36b63c6846065f6bf044df (diff)
downloadgcc-da5430880b8c503a39cfc2445337a6374419c446.zip
gcc-da5430880b8c503a39cfc2445337a6374419c446.tar.gz
gcc-da5430880b8c503a39cfc2445337a6374419c446.tar.bz2
[og9] NVPTX GOMP_OFFLOAD_openacc_async_construct arg fix and gomp_print_* support
libgomp/ * config/nvptx/gomp_print.c (gomp_print_string, gomp_print_integer, gomp_print_double): New. * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add dummy device parameter. (cherry picked from openacc-gcc-9-branch commit 3df3ea7e8163b9ec0c7227c70c6e1154bf95c24a)
Diffstat (limited to 'libgomp')
-rw-r--r--libgomp/ChangeLog.omp7
-rw-r--r--libgomp/config/nvptx/gomp_print.c20
-rw-r--r--libgomp/plugin/plugin-nvptx.c2
3 files changed, 28 insertions, 1 deletions
diff --git a/libgomp/ChangeLog.omp b/libgomp/ChangeLog.omp
index c03f871..c850203 100644
--- a/libgomp/ChangeLog.omp
+++ b/libgomp/ChangeLog.omp
@@ -1,5 +1,12 @@
2019-07-31 Julian Brown <julian@codesourcery.com>
+ * config/nvptx/gomp_print.c (gomp_print_string, gomp_print_integer,
+ gomp_print_double): New.
+ * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
+ dummy device parameter.
+
+2019-07-31 Julian Brown <julian@codesourcery.com>
+
* libgomp.map (GOMP_2.0.GOMP_4_BRANCH): Remove GOACC_parallel_keyed_v2.
* libgomp_g.h (GOACC_parallel_keyed_v2): Remove prototype.
* oacc-parallel.c (GOACC_parallel_keyed_internal): Rename to...
diff --git a/libgomp/config/nvptx/gomp_print.c b/libgomp/config/nvptx/gomp_print.c
new file mode 100644
index 0000000..811bdd6
--- /dev/null
+++ b/libgomp/config/nvptx/gomp_print.c
@@ -0,0 +1,20 @@
+#include <stdio.h>
+#include <stdint.h>
+
+void
+gomp_print_string (const char *msg, const char *value)
+{
+ printf ("%s%s\n", msg, value);
+}
+
+void
+gomp_print_integer (const char *msg, int64_t value)
+{
+ printf ("%s%ld\n", msg, value);
+}
+
+void
+gomp_print_double (const char *msg, double value)
+{
+ printf ("%s%f\n", msg, value);
+}
diff --git a/libgomp/plugin/plugin-nvptx.c b/libgomp/plugin/plugin-nvptx.c
index 09567ce..4beb322 100644
--- a/libgomp/plugin/plugin-nvptx.c
+++ b/libgomp/plugin/plugin-nvptx.c
@@ -1732,7 +1732,7 @@ GOMP_OFFLOAD_openacc_cuda_set_stream (struct goacc_asyncqueue *aq, void *stream)
}
struct goacc_asyncqueue *
-GOMP_OFFLOAD_openacc_async_construct (void)
+GOMP_OFFLOAD_openacc_async_construct (int device __attribute__((unused)))
{
CUstream stream = NULL;
CUDA_CALL_ERET (NULL, cuStreamCreate, &stream, CU_STREAM_DEFAULT);