Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97012928
hello_mpi.c
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Jan 1, 15:21
Size
291 B
Mime Type
text/x-c
Expires
Fri, Jan 3, 15:21 (2 d)
Engine
blob
Format
Raw Data
Handle
23312386
Attached To
rSCEXAMPLES SCITAS examples on how to run on the clusters
hello_mpi.c
View Options
#include <stdio.h>
#include <mpi.h>
int main (int argc, char *argv[]){
int rank, size;
MPI_Init (&argc, &argv);
MPI_Comm_rank (MPI_COMM_WORLD, &rank);
MPI_Comm_size (MPI_COMM_WORLD, &size);
printf( "Hello from process %d of %d\n", rank, size );
MPI_Finalize();
return 0;
}
Event Timeline
Log In to Comment