[gcc/devel/omp/gcc-12] Prototype 'GOMP_enable_pinned_mode'

Thomas Schwinge tschwinge@gcc.gnu.org
Mon Feb 20 14:57:10 GMT 2023


https://gcc.gnu.org/g:9657d906869e098340c23118c2eb8592d9e77ac5

commit 9657d906869e098340c23118c2eb8592d9e77ac5
Author: Thomas Schwinge <thomas@codesourcery.com>
Date:   Mon Feb 20 15:29:44 2023 +0100

    Prototype 'GOMP_enable_pinned_mode'
    
    Fix-up for og12 commit 842df187487f5b16ae29bbe7e9acd79661a9df48
    "openmp: -foffload-memory=pinned".  No functional change.
    
            libgomp/
            * libgomp_g.h (GOMP_enable_pinned_mode): New.

Diff:
---
 libgomp/ChangeLog.omp | 2 ++
 libgomp/libgomp_g.h   | 1 +
 2 files changed, 3 insertions(+)

diff --git a/libgomp/ChangeLog.omp b/libgomp/ChangeLog.omp
index c5a7860478e..e4475093055 100644
--- a/libgomp/ChangeLog.omp
+++ b/libgomp/ChangeLog.omp
@@ -1,5 +1,7 @@
 2023-02-20  Thomas Schwinge  <thomas@codesourcery.com>
 
+	* libgomp_g.h (GOMP_enable_pinned_mode): New.
+
 	* config/linux/allocator.c (linux_memspace_alloc): Add 'init0'
 	formal parameter.  Adjust all users.
 	(linux_memspace_alloc, linux_memspace_free): Attempt to allocate
diff --git a/libgomp/libgomp_g.h b/libgomp/libgomp_g.h
index ece1f97a61f..fe66a53d94a 100644
--- a/libgomp/libgomp_g.h
+++ b/libgomp/libgomp_g.h
@@ -375,6 +375,7 @@ extern void GOMP_teams_reg (void (*) (void *), void *, unsigned, unsigned,
 
 extern void *GOMP_alloc (size_t, size_t, uintptr_t);
 extern void GOMP_free (void *, uintptr_t);
+extern void GOMP_enable_pinned_mode (void);
 
 /* error.c */


More information about the Gcc-cvs mailing list