"De Groof, Vincent Frans Maria" <[email protected]> writes:

> Thanks. I made a new function based on the PetscGetCurrentUsage which
> does what I want. It seems like I am being lucky as the numbers
> returned by the OS seem to be reasonable.

For example, Blue Gene/Q wants us to use Kernel_GetMemorySize, which
resides in a header with inline assembly.  So we need compiler flags
that support the inline assembly just to access the function.
getrusage() is useless on BG/Q and some other HPC systems.  If it works
on your system, you should think the vendor for doing something
reasonable with the useful POSIX function.

Attachment: pgpgC8rW7qj1B.pgp
Description: PGP signature

Reply via email to