[Swift-user] task parallel MPI

Agarwal, Khushbu Khushbu.Agarwal at pnnl.gov
Thu May 5 14:03:34 CDT 2011


Hi,

I am trying to launch multiple MPI runs( parallel task) within a single job allocation, but I keep on getting
error about task exiting
srun: error: cu01n2: tasks 0-7: Exited with exit code 2
srun: Terminating job step 1546136.4

Here is my swift script. I am not sure what is going wrong, any help is appreciated.

Thanks,
-Khushbu
---------------------------------

type file;

file stompIn <"stomp.in">;
file stompOut <"stomp.out">;
file sphArr[] <fixed_array_mapper;files="sph.in.1, sph.in.2">;
int n = 2;

(file stOut) runStomp (file stIn) {
    app {
         stomp @stIn @stOut;
    }
}

(file s[]) pg (file stOut, int num) {
    app {
         pg @stOut "sph.in" num;
    }
}

(file output) runSph (file input, int num) {
    app{
        mpi @input @output num;
    }
}

stompOut = runStomp(stompIn);

sphArr = pg(stompOut, n);

int list[] = [1,2];

foreach i in list
{
    file sphOut <single_file_mapper;file=@strcat("sph.out.",i)>;
    sphOut = runSph(sphArr[i-1], i-1);
}


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/swift-user/attachments/20110505/a62054b7/attachment.html>


More information about the Swift-user mailing list