r a posição no ficheiro
> | MPI_File_get_position(fh, &myCurrentOffset);
> | printf ("[%d] - My current offset is %lld\n", rank, myCurrentOffset);
> | MPI_Barrier(MPI_COMM_WORLD);
> |
> | //READ FILE
> | //leitura do ficheiro
> | int readBuffer=0;
> | // MPI_Status
_STATUS_IGNORE);
MPI_Barrier(MPI_COMM_WORLD);
printf("[%d] - Leu do ficheiro o valor '%d'\n", rank, readBuffer );
MPI_Barrier(MPI_COMM_WORLD);
//CLOSE FILE
// fecho do ficheiro
MPI_File_close(&fh);
MPI_File_delete("buffer.io", MPI_INFO_NULL );
//end program
MPI_Finalize();
return(0);
}
--
Cumprimentos
Luís Miranda
How to install openmpi to suport thread_level_multiple?