[Swift-devel] [Bug 217] New: struct of structs via ext mapper

bugzilla-daemon at mcs.anl.gov bugzilla-daemon at mcs.anl.gov
Wed Jul 15 11:45:33 CDT 2009


https://bugzilla.mcs.anl.gov/swift/show_bug.cgi?id=217

           Summary: struct of structs via ext mapper
           Product: Swift
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: SwiftScript language
        AssignedTo: benc at hawaga.org.uk
        ReportedBy: aespinosa at cs.uchicago.edu


Swift is looking for a file describing the 2nd level struct itself.  

my swift session
(latest on cog svn and swift svn) reports as follows:

RunID: testing
Progress:
Progress:  Initializing site shared directory:1  Failed:1
Execution failed:
       Mapper failed to map org.griphyn.vdl.mapping.DataNode
identifier
tag:benc at ci.uchicago.edu,2008:swift:dataset:20090714-1343-6lzjg014:720000000039
type AmplFilter with no value at dataset=res path=.out (not closed)

my instance_mapper.sh:
#!/bin/bash

while getopts ":i:" options; do
 case $options in
   i) export instance=$OPTARG ;;
   *) exit 1;;
 esac
done

echo "expend result/$instance/expend.dat";
echo "limits result/$instance/limits.dat";
echo "price result/$instance/price.dat";
echo "ratio result/$instance/ratio.dat";
echo "solve result/$instance/solve.dat";

echo "ofile result/$instance/stdout";

echo "out.expend_out result/$instance/expend.out";
echo "out.price_out result/$instance/price.out";
echo "out.ratio_out result/$instance/ratio.out";



here is the workflow i was working on:

type Template;
type AmplIn;
type StdOut;

type AmplCmd {
 Template temp;
 AmplIn mod;
 AmplIn process;
 AmplIn output;
 AmplIn so;
 AmplIn tree;
}

type ExpendDat;
type LimitsDat;
type PriceDat;
type RatioDat;
type SolveDat;

type ExpendOut;
type PriceOut;
type RatioOut;

type AmplFilter {
 ExpendOut expend_out;
 PriceOut price_out;
 RatioOut ratio_out;
}

type AmplResult {
 ExpendDat expend;
 LimitsDat limits;
 PriceDat price;
 RatioDat ratio;
 SolveDat solve;
 StdOut ofile;
 AmplFilter out;
}

app (AmplResult result) run_ampl (string instanceID, AmplCmd cmd)
{
 run_ampl instanceID @filename(cmd.temp)
     @filename(cmd.mod) @filename(cmd.process)
     @filename(cmd.output) @filename(cmd.so) @filename(cmd.tree)
     stdout=@filename(result.ofile);
}
AmplCmd const_cmd <ext;exec="./cmd_mapper.sh">;

int runs[]=[2001:2002];
foreach i in runs {

 string instanceID = @strcat("run", i);

 AmplResult res <ext;exec="./instance_mapper.sh", i=instanceID>;
 res = run_ampl(instanceID, const_cmd);
}

Initial hack to get the script to work:

> Author: aespinosa
> Date: 2009-07-14 21:04:25 -0500 (Tue, 14 Jul 2009)
> New Revision: 3008
>
> Modified:
>    SwiftApps/SEE/trunk/instance_mapper.sh
> Log:
> swift code now compiles with struct hack from ben
>
> Modified: SwiftApps/SEE/trunk/instance_mapper.sh
> ===================================================================
> --- SwiftApps/SEE/trunk/instance_mapper.sh    2009-07-14 22:06:08 UTC (rev 3007)
> +++ SwiftApps/SEE/trunk/instance_mapper.sh    2009-07-15 02:04:25 UTC (rev 3008)
> @@ -15,6 +15,7 @@
>
>  echo "ofile result/$instance/stdout";
>
> +echo "out null";
>  echo "out.expend_out result/$instance/expend.out";
>  echo "out.price_out result/$instance/price.out";
>  echo "out.ratio_out result/$instance/ratio.out";

-- 
Configure bugmail: https://bugzilla.mcs.anl.gov/swift/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.



More information about the Swift-devel mailing list