[Swift-devel] LQCD mapping

Mihael Hategan hategan at mcs.anl.gov
Tue May 1 08:21:33 CDT 2007


On Tue, 2007-05-01 at 07:21 +0000, Ben Clifford wrote:
> yesterday evening I played some with Nika trying to get her LQCD workflow 
> running some more.
> 
> It involved one code change to swift:
> 
> I put a 'create' option on the filesys_mapper so that one can do this:
> 
>   file lattice[] <filesys_mapper;prefix="lattice.",create=true>;
>   foreach i in range {
>     int j=i-1;
>     lattice[i] = lqcd_exec(test_in,lattice[j]);
>   }
> 
> where lattice.* files don't exist, so that lattice[5] will map to 
> "lattice.5". With create=false (the default) then the mapper behaves as 
> before, which seems to be essentially an input-only mode where it creates 
> an array based on existing files.
> 
> I think this is the mapping functionality that I want, but its not clear 
> to me whether filesys_mapper is the place for it, whether one of the other 
> mappers already does this, or if it should go in a different place 
> (another mapper or a new mapper). comments?

The translator does static analysis to figure what things are "read" and
what things are "write". In this case it looks like it's figuring the
wrong thing, and I think that should be fixed.

Mihael

> 




More information about the Swift-devel mailing list