Re: [PATCH 02/17] libgomp: pinned memory

2022-12-08 Thread Tobias Burnus
On 08.12.22 15:35, Andrew Stubbs wrote: On 08/12/2022 14:02, Tobias Burnus wrote: With available, I assume that nvptx is an 'available device' (per OpenMP definition, finally added in TR11), i.e. there is an image for nvptx and - after omp_requires filtering - there remains at least one nvptx de

Re: [PATCH 02/17] libgomp: pinned memory

2022-12-08 Thread Andrew Stubbs
On 08/12/2022 14:02, Tobias Burnus wrote: On 08.12.22 13:51, Andrew Stubbs wrote: On 08/12/2022 12:11, Jakub Jelinek wrote: On Thu, Jul 07, 2022 at 11:34:33AM +0100, Andrew Stubbs wrote: Implement the OpenMP pinned memory trait on Linux hosts using the mlock syscall.  Pinned allocations are pe

Re: [PATCH 02/17] libgomp: pinned memory

2022-12-08 Thread Tobias Burnus
On 08.12.22 13:51, Andrew Stubbs wrote: On 08/12/2022 12:11, Jakub Jelinek wrote: On Thu, Jul 07, 2022 at 11:34:33AM +0100, Andrew Stubbs wrote: Implement the OpenMP pinned memory trait on Linux hosts using the mlock syscall. Pinned allocations are performed using mmap, not malloc, to ensure t

Re: [PATCH 02/17] libgomp: pinned memory

2022-12-08 Thread Andrew Stubbs
On 08/12/2022 12:11, Jakub Jelinek wrote: On Thu, Jul 07, 2022 at 11:34:33AM +0100, Andrew Stubbs wrote: Implement the OpenMP pinned memory trait on Linux hosts using the mlock syscall. Pinned allocations are performed using mmap, not malloc, to ensure that they can be unpinned safely when fre

Re: [PATCH 02/17] libgomp: pinned memory

2022-12-08 Thread Jakub Jelinek via Gcc-patches
On Thu, Jul 07, 2022 at 11:34:33AM +0100, Andrew Stubbs wrote: > > Implement the OpenMP pinned memory trait on Linux hosts using the mlock > syscall. Pinned allocations are performed using mmap, not malloc, to ensure > that they can be unpinned safely when freed. As I said before, I think the pi

[PATCH 02/17] libgomp: pinned memory

2022-07-07 Thread Andrew Stubbs
Implement the OpenMP pinned memory trait on Linux hosts using the mlock syscall. Pinned allocations are performed using mmap, not malloc, to ensure that they can be unpinned safely when freed. libgomp/ChangeLog: * allocator.c (MEMSPACE_ALLOC): Add PIN. (MEMSPACE_CALLOC): Add PIN