[PATCH 5/5] openmp: -foffload-memory=pinned

2022-03-08 Thread Hafiz Abid Qadeer
From: Andrew Stubbs Implement the -foffload-memory=pinned option such that libgomp is instructed to enable fully-pinned memory at start-up. The option is intended to provide a performance boost to certain offload programs without modifying the code. This feature only works on Linux, at present,

Re: [PATCH 5/5] openmp: -foffload-memory=pinned

2022-03-30 Thread Andrew Stubbs
On 08/03/2022 11:30, Hafiz Abid Qadeer wrote: gcc/ChangeLog: * omp-low.cc (omp_enable_pinned_mode): New function. (execute_lower_omp): Call omp_enable_pinned_mode. This worked for x86_64, but I needed to make the attached adjustment to work on powerpc without a linker error.

[og12] 'c-c++-common/gomp/alloc-pinned-1.c' -> 'libgomp.c-c++-common/alloc-pinned-1.c' (was: [PATCH 5/5] openmp: -foffload-memory=pinned)

2023-02-09 Thread Thomas Schwinge
Hi! On 2022-03-08T11:30:59+, Hafiz Abid Qadeer wrote: > From: Andrew Stubbs > > [...] > --- /dev/null > +++ b/gcc/testsuite/c-c++-common/gomp/alloc-pinned-1.c > @@ -0,0 +1,28 @@ > +/* { dg-do run } */ Pushed to devel/omp/gcc-12 branch commit 9c0ffa3776a135a69697253a0bd75ebf9b9d0150 "'c-c++