[Swift-devel] [Bug 83] nested loops hung

bugzilla-daemon at mcs.anl.gov bugzilla-daemon at mcs.anl.gov
Sun Jul 15 23:09:53 CDT 2007


http://bugzilla.mcs.anl.gov/swift/show_bug.cgi?id=83





------- Comment #7 from tiberius at mcs.anl.gov  2007-07-15 23:09 -------

The code below also hangs. 
On the execution node, I only get a subset of the echo jobs to be executed.

This is not good at all.
I was trying the following patttern:
A set of similar inputs (processData) I need to process through various
procedures (echoA, echoB, echoNone) and I was trying to have a batch job  that
processes all the inputs through these procedures. Note that in this case there
are no dependencies between the procedures (echoA,echoB, echoNone).

This has got to be a pretty standard pattern.


type file{};

(file echoAfile) echoA (string sIn){
        app{
                echo sIn stdout=@filename(echoAfile);
        }
}

(file echoBfile) echoB (string sIn){
        app{
                echo sIn stdout=@filename(echoBfile);
        }
}

(file echoCfile) echoNone(){
        app{
                echo "NONE" stdout=@filename(echoCfile);
        }
}


(file aResults[], file bResults[], file noResults) testLoop (string symbols[]){
        noResults=echoNone();
        foreach s,i in symbols {
                aResults[i] = echoA(s); 
                bResults[i] = echoB(s);
        }
}

string processData[]=["data-1", "data-2"];
string echoANames = "data-1.A data-2.B";
string echoBNames = "data-2.A data-2.B";

file echoEmpty<"echo.empty">;
file echoA[]<fixed_array_mapper; files=echoANames>;
file echoB[]<fixed_array_mapper; files=echoBNames>;

(echoA, echoB, echoEmpty) = testLoop (processData);


-- 
Configure bugmail: http://bugzilla.mcs.anl.gov/swift/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the Swift-devel mailing list