From: Julian Brown Date: Mon, 29 Jul 2019 22:05:35 +0000 (-0700) Subject: NVPTX GOMP_OFFLOAD_openacc_async_construct arg fix and gomp_print_* support X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f398407c3b5afd2997a3721029dabc0ab4868946;p=thirdparty%2Fgcc.git 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 --git a/libgomp/ChangeLog.omp b/libgomp/ChangeLog.omp index 3ee537015606..76087dc3dde7 100644 --- a/libgomp/ChangeLog.omp +++ b/libgomp/ChangeLog.omp @@ -1,3 +1,8 @@ +2019-07-31 Julian Brown + + * config/nvptx/gomp_print.c (gomp_print_string, gomp_print_integer, + gomp_print_double): New. + 2019-01-23 Thomas Schwinge * 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 000000000000..811bdd6e9a93 --- /dev/null +++ b/libgomp/config/nvptx/gomp_print.c @@ -0,0 +1,20 @@ +#include +#include + +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); +}