Hi all,
I have a shared space cluster and I'm trying to distribute my work among
various nodes. I create and use various files during each run on each node.
If nothing is done, the files created by one node will get overwritten by
the same files created by other nodes.
So, I wish to create different directories for each node and build all the
files and use them in that directory. When all work is done, I would like
to get all the information back to the root and proceed to the final
computations.
I start my mpirun from /rootdirectory/
The root node creates all files in this directory and all other nodes
should create the exact same files in directories /rootdirectory/1/,
/rootdirectory/2/ ..etc.
I have tried doing "cd itoa(rank)" from /rootdirectory/ for each node
before the actual computation begins. However, the pwd remains the
/rootdirectory/
and files are being overwritten.
How can I do this? Is there any other way to do the above?
Thanks
Sriram
-------------------------------------------------------------------------------
Sriram K. Rallabhandi
Graduate Research Assistant Work: 404 385 2789
Aerospace Engineering Res: 404 603 9160
Georgia Inst. of Technology
-------------------------------------------------------------------------------
|