How to run Message Passing Interface C file?# Programming - 葵花宝典
y*h
1 楼
I tried, but it doesn't work
$ gcc fork.c -o a.out
fork.c:2:17: error: mpi.h: No such file or directory
fork.c: In function 'main':
fork.c:11: error: 'MPI_SUCCESS' undeclared (first use in this function)
fork.c:11: error: (Each undeclared identifier is reported only once
fork.c:11: error: for each function it appears in.)
fork.c:13: error: 'MPI_COMM_WORLD' undeclared (first use in this function)
$ gcc fork.c -o a.out
fork.c:2:17: error: mpi.h: No such file or directory
fork.c: In function 'main':
fork.c:11: error: 'MPI_SUCCESS' undeclared (first use in this function)
fork.c:11: error: (Each undeclared identifier is reported only once
fork.c:11: error: for each function it appears in.)
fork.c:13: error: 'MPI_COMM_WORLD' undeclared (first use in this function)