my_pe(3I)

_my_pe, MY_PE - Returns the processing element (PE) number of the calling PE

As shipped in IRIX 6.5.15. Added in IRIX 6.5.5.

NAME
     _my_pe, MY_PE - Returns the processing element (PE) number of the
     calling PE

SYNOPSIS
     C/C++:

     #include <intrinsics.h>
     int _my_pe (void);

     Fortran on UNICOS and IRIX systems:

     I= MY_PE ()

     Fortran on UNICOS/mk systems:

     INTRINSIC MY_PE
     I= MY_PE ()

IMPLEMENTATION
     C/C++:  UNICOS/mk systems

     Fortran:  UNICOS, UNICOS/mk, IRIX systems

     Cray C/C++, CF90, MIPSpro 7 Fortran 90

STANDARDS
     C/C++ extension

     Fortran extension

DESCRIPTION
     This function returns the processing element (PE) number of the
     calling PE.  It accepts no arguments.  The result is an integer
     between 0 and npes - 1, where npes is the total number of PEs
     executing the current program.

NOTES
   C/C++
     Because _my_pe is an intrinsic function, no externally visible library
     function is available for it.  The compiler generates inline code to
     produce the result.

   Fortran
     Whether this function is intrinsic depends on your platform, as
     follows:

     * On UNICOS and IRIX systems, it is supported as part of the Message
       Passing Toolkit, and it is supported as an external function.

     * On UNICOS/mk systems, it is supported as an intrinsic function.

     MY_PE is an inquiry function.  The name of this intrinsic cannot be
     passed as an argument.

     On UNICOS/mk systems, MY_PE returns the same value as
     sysconf(_SC_CRAY_VPE).  See the sysconf(2) man page for more
     information on this system call.

SEE ALSO
     sysconf(2)

     A complete list of C/C++ intrinsic functions available on UNICOS and
     UNICOS/mk systems is in the Cray C/C++ Reference Manual.

     Intrinsic Procedures Reference Manual for the printed version of this
     man page.