I have an MPI code here , which i use to transfer a file from one node to other. but somehow i am not able to run on localscratch folders on each node. For example: I run the code as follows:
mpirun --host ser010,ser011 ./test <test.txt(inputfile)> <test2.txt(outputfile)>
the code runs on 2 nodes ser010,ser011 the inputfile is read by process 0 (ser010) and process 1 receives data from process 0 and writes as outputfile.
But this works when I am on NFS. (Parallel file system).
Every node (ser010, ser011) has its own localscratch folder (not on nfs). so files in each of the nodes are not shared.
How do I send a file from ser010's scratch to ser011's scratch ?
Please suggest. I am using OpenMPI here.