From 9657d906869e098340c23118c2eb8592d9e77ac5 Mon Sep 17 00:00:00 2001
From: Thomas Schwinge <thomas@codesourcery.com>
Date: Mon, 20 Feb 2023 15:29:44 +0100
Subject: [PATCH] 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.
---
libgomp/ChangeLog.omp | 2 ++
libgomp/libgomp_g.h | 1 +
2 files changed, 3 insertions(+)
@@ -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
@@ -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 */
--
2.25.1