how to compile and run mpi on beowulf
when i'm compile the cpi
these line occurs
cpi.o(.text+0x69): In function `main':
: undefined reference to `MPI_Init'
cpi.o(.text+0x7a): In function `main':
: undefined reference to `MPI_Comm_size'
cpi.o(.text+0x8b): In function `main':
: undefined reference to `MPI_Comm_rank'
cpi.o(.text+0xa1): In function `main':
: undefined reference to `MPI_Get_processor_name'
cpi.o(.text+0xf3): In function `main':
: undefined reference to `MPI_Wtime'
cpi.o(.text+0x10a): In function `main':
: undefined reference to `MPI_Bcast'
cpi.o(.text+0x199): In function `main':
: undefined reference to `MPI_Reduce'
cpi.o(.text+0x1e1): In function `main':
: undefined reference to `MPI_Wtime'
cpi.o(.text+0x20b): In function `main':
: undefined reference to `MPI_Finalize'
collect2: ld returned 1 exit status
make: *** [cpi] Error 1
|