[J3] [EXTERNAL] Re: Custom Memory Allocator

Vipul Parekh parekhvs at gmail.com
Sat Nov 16 11:57:51 EST 2019


On Fri, Nov 15, 2019 at 7:16 PM Reuben D. Budiardja via J3
<j3 at mailman.j3-fortran.org> wrote:
>.. we do want to avoid
> giving up the advantages of allocatable. And some OpenMP runtime
> surprisingly works better with Fortran allocatable vs pointer. Hence the
> question.  .

Hi Reuben,

Re: "some OpenMP runtime surprisingly works better with Fortran
allocatable vs pointer", would you know if this performance gain is
due to OpenMP runtime taking advantage of what the Fortran standard
offers in section 8.5.7, "An object is contiguous if it is .. an array
allocated by an ALLOCATE statement,"  Meaning it presumes the "Fortran
allocatable" are all CONTIGUOUS in its handling where it does not with
"Fortran pointer"?

And if so, would you benefit from using CONTIGUOUS attribute with
objects in Fortran (dummy arguments perhaps?) whose memory is
allocated using cudaMallocManaged?

Regards,
Vipul


More information about the J3 mailing list