]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Prototype 'GOMP_enable_pinned_mode'
authorThomas Schwinge <thomas@codesourcery.com>
Mon, 20 Feb 2023 14:29:44 +0000 (15:29 +0100)
committerThomas Schwinge <thomas@codesourcery.com>
Mon, 20 Feb 2023 14:55:39 +0000 (15:55 +0100)
Fix-up for og12 commit 842df187487f5b16ae29bbe7e9acd79661a9df48
"openmp: -foffload-memory=pinned".  No functional change.

libgomp/
* libgomp_g.h (GOMP_enable_pinned_mode): New.

libgomp/ChangeLog.omp
libgomp/libgomp_g.h

index c5a7860478e420b91c716af37fb7d10777e2873e..e447509305503aa77771e48493f6aced5600f70f 100644 (file)
@@ -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
index ece1f97a61f355f83a5f2e326f1fadde26d9560c..fe66a53d94a3b1855b6ed32c4522a66eb03dee2b 100644 (file)
@@ -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 */