]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
NVPTX GOMP_OFFLOAD_openacc_async_construct arg fix and gomp_print_* support
authorJulian Brown <julian@codesourcery.com>
Mon, 29 Jul 2019 22:05:35 +0000 (15:05 -0700)
committerKwok Cheung Yeung <kcy@codesourcery.com>
Tue, 21 Jun 2022 13:11:16 +0000 (14:11 +0100)
libgomp/
* config/nvptx/gomp_print.c (gomp_print_string, gomp_print_integer,
gomp_print_double): New.

libgomp/ChangeLog.omp
libgomp/config/nvptx/gomp_print.c [new file with mode: 0644]

index 3ee537015606aa95a14f55eeac312988b0a01530..76087dc3dde7f6a5f8217f6ee932a73d0b5db0d8 100644 (file)
@@ -1,3 +1,8 @@
+2019-07-31  Julian Brown  <julian@codesourcery.com>
+
+       * config/nvptx/gomp_print.c (gomp_print_string, gomp_print_integer,
+       gomp_print_double): New.
+
 2019-01-23  Thomas Schwinge <thomas@codesourcery.com>
 
        * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Update.
diff --git a/libgomp/config/nvptx/gomp_print.c b/libgomp/config/nvptx/gomp_print.c
new file mode 100644 (file)
index 0000000..811bdd6
--- /dev/null
@@ -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);
+}