public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/omp/gcc-12] NVPTX GOMP_OFFLOAD_openacc_async_construct arg fix and gomp_print_* support
@ 2022-06-29 14:35 Kwok Yeung
  0 siblings, 0 replies; only message in thread
From: Kwok Yeung @ 2022-06-29 14:35 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:f398407c3b5afd2997a3721029dabc0ab4868946

commit f398407c3b5afd2997a3721029dabc0ab4868946
Author: Julian Brown <julian@codesourcery.com>
Date:   Mon Jul 29 15:05:35 2019 -0700

    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.

Diff:
---
 libgomp/ChangeLog.omp             |  5 +++++
 libgomp/config/nvptx/gomp_print.c | 20 ++++++++++++++++++++
 2 files changed, 25 insertions(+)

diff --git a/libgomp/ChangeLog.omp b/libgomp/ChangeLog.omp
index 3ee53701560..76087dc3dde 100644
--- a/libgomp/ChangeLog.omp
+++ b/libgomp/ChangeLog.omp
@@ -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
index 00000000000..811bdd6e9a9
--- /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);
+}


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-06-29 14:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-29 14:35 [gcc/devel/omp/gcc-12] NVPTX GOMP_OFFLOAD_openacc_async_construct arg fix and gomp_print_* support Kwok Yeung

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).