From 9657d906869e098340c23118c2eb8592d9e77ac5 Mon Sep 17 00:00:00 2001 From: Thomas Schwinge 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(+) 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 + * 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 */ -- 2.25.1