"Pinned" allocate
Steve Kargl
sgk@troutmask.apl.washington.edu
Thu Jan 3 14:06:00 GMT 2013
On Thu, Jan 03, 2013 at 11:12:06AM +0100, Thomas Koenig wrote:
> Hello Al,
>
> > Is there a way to do a "pinned" (i.e. page-locked in physical memory) allocate in gfortran?
> > If not, I suggest an extension to the ALLOCATE statement with an option PINNED='YES' or 'NO'.
>
> Gfortran currently does not have such a functionality. If you have a
> system which supports this, you can do it yourself using mlock and
> the C interoperability feature. Example (untested):
>
According to the FreeBSD man page, mlock and munlock are
available only to the superuser. I suspect that this
restriction applies to other operating systems.
--
Steve
More information about the Fortran
mailing list