[gcc/devel/omp/gcc-14] NVPTX GOMP_OFFLOAD_openacc_async_construct arg fix and gomp_print_* support
Paul-Antoine Arras
parras@gcc.gnu.org
Fri Jun 28 09:47:56 GMT 2024
https://gcc.gnu.org/g:0225c5c9aa9adfc3cfd269b40288a5ba671d0d93
commit 0225c5c9aa9adfc3cfd269b40288a5ba671d0d93
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 6262293cb35..9cdcb3d18ab 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);
+}
More information about the Gcc-cvs
mailing list