user2804865
user2804865

Reputation: 1074

MPI to read all files in a directory

Hi guys I am learning to program in MPI and I came across this question. Lets say that the current working directory I have 10 files. Each file contains a column with numbers. I want to divide the work among all processors, so for example if i use, say, two nodes, i want node 1 to read the first 5 files and the second node do the rest. Thank you for any help.

Upvotes: 1

Views: 306

Answers (1)

Rob Latham
Rob Latham

Reputation: 5223

There are no metadata operations in MPI-IO aside from open/create a file or deleting that file. I suppose it was hard to standardize over windows, unix, and, I don't know.. vax-y styles back in the old days?

The nice thing about MPI is that it provides a good basis for libraries. Write a "MPI-IO metadata" library... and share it with us!

Upvotes: 1

Related Questions