Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93442749
hello.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
Thu, Nov 28, 19:22
Size
270 B
Mime Type
text/x-c
Expires
Sat, Nov 30, 19:22 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22639007
Attached To
R11821 phys-743-lecture
hello.c
View Options
#include <mpi.h>
#include <stdio.h>
int
main
(
int
argc
,
char
*
argv
[]){
int
size
,
rank
;
MPI_Init
(
&
argc
,
&
argv
);
MPI_Comm_size
(
MPI_COMM_WORLD
,
&
size
);
MPI_Comm_rank
(
MPI_COMM_WORLD
,
&
rank
);
printf
(
"I’m process %d out of %d
\n
"
,
rank
,
size
);
MPI_Finalize
();
}
Event Timeline
Log In to Comment