SHMEM\_INIT - Online Linux Manual PageSection : 3
Updated : Jan 21, 2016
Source : 1.10.2
Note : Open MPI

NAMEshmem_init, start_pes − Allocates a block of memory from the symmetric heap.

SYNOPSISC or C++: void shmem_init(void); void start_pes(int npes); Fortran: CALL SHMEM_INIT() CALL START_PES(npes)

DESCRIPTIONThe start_pes routine should be the first statement in a SHMEM parallel program. The start_pes routine accepts the following argument: npes  Unused. Should be set to 0. This routine initializes the SHMEM API, therefore it must be called before calling any other SHMEM routine. This routine is responsible inter alia for setting up the symmetric heap on the calling PE, and the creation of the virtual PE numbers. Upon successful return from this routine, the calling PE will be able to communicate with and transfer data to other PEs. Multiple calls to this function are not allowed. For an overview of programming with SHMEM communication routines, example SHMEM programs, and instructions for compiling SHMEM programs, see the intro_shmem(3) man page.

EXAMPLESThis is a simple program that calls shmem_integer_put(3): PROGRAM PUT INCLUDE "mpp/shmem.fh" INTEGER TARG, SRC, RECEIVER, BAR COMMON /T/ TARG PARAMETER (RECEIVER=1) CALL SHMEM_INIT() IF (MY_PE() .EQ. 0) THEN SRC = 33 CALL SHMEM_INTEGER_PUT(TARG, SRC, 1, RECEIVER) ENDIF CALL SHMEM_BARRIER_ALL ! SYNCHRONIZES SENDER AND RECEIVER IF (MY_PE() .EQ. RECEIVER) THEN PRINT *,'PE ', MY_PE(),' TARG=',TARG,' (expect 33)' ENDIF END

NOTESIf the start_pes call is not the first statement in a program, unexpected results may occur on some architectures.

SEE ALSOintro_shmem(3), shmem_barrier(3), shmem_barrier_all(3), shmem_put(3), my_pe(3I), shmem_n_pes(3I)
0
Johanes Gumabo
Data Size   :   6,503 byte
man-start_pes.3Build   :   2024-12-29, 07:25   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   4 / 260,806
Visitor ID   :     :  
Visitor IP   :   13.59.69.58   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.29
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (rof_escape_sequence|91|shmem_init.3|14|\_INIT" "3" "Jan 21, 2016" "1.10.2" "Open MPI" |.TH "SHMEM\\_INIT" "3" "Jan 21, 2016" "1.10.2" "Open MPI" )