<div dir="ltr">It builds successfully and works on helloworld!<br><br>-ragib<br><br><div class="gmail_quote">On Tue, Jul 15, 2008 at 4:58 PM, Mihael Hategan <<a href="mailto:hategan@mcs.anl.gov">hategan@mcs.anl.gov</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">On Tue, 2008-07-15 at 16:48 -0500, Mihael Hategan wrote:<br>
> On Tue, 2008-07-15 at 16:37 -0500, Mihael Hategan wrote:<br>
> > On Tue, 2008-07-15 at 16:18 -0500, Ragib Morshed wrote:<br>
> > > Can we change the dependencies such that it builds up the software<br>
> > > like in eclipse?<br>
> ><br>
> > No.<br>
> ><br>
> > So the solution would be to pass a data structure that is available in<br>
> > both. Let me think a bit.<br>
><br>
> A Map adapter of course.<br>
><br>
> I'll commit one shortly.<br>
<br>
</div>Ok, so if you do an svn update in vdsk, there will be a CacheMapAdapter<br>
which implements java.util.Map.<br>
<br>
You'll use it like this:<br>
In JobConstrains, instead of tc.addConstraint("filecache",<br>
CacheFunction.getCache(stack)), you'd write:<br>
tc.addConstraint("filecache", new<br>
CacheMapAdapter(CacheFunction.getCache(stack)));<br>
<br>
The get() method of the adapter is mapped to cache.getPaths(). So in the<br>
scheduler code:<br>
Map cache = (Map) t.getConstraint("filecache");<br>
...<br>
Collection paths = (Collection) cache.get(wh.getHost());<br>
<br>
Though this is a bit shady anyway, given that knowledge of all that file<br>
information is pretty Swift specific. But for the purpose of<br>
experimenting with this it will have to do.<br>
<div><div></div><div class="Wj3C7c"><br>
><br>
><br>
> ><br>
> > ><br>
> > > -ragib<br>
> > ><br>
> > > On Tue, Jul 15, 2008 at 12:27 PM, Ben Clifford <<a href="mailto:benc@hawaga.org.uk">benc@hawaga.org.uk</a>><br>
> > > wrote:<br>
> > ><br>
> > ><br>
> > > VDLCache is in the vdsk module.<br>
> > ><br>
> > > The WeightedHost stuff is in karajan, which is a dependency.<br>
> > ><br>
> > > You can't use code from module A in module B if module A is<br>
> > > dependent on<br>
> > > module B (equivalently if if module B is a prerequisite of<br>
> > > module A)<br>
> > ><br>
> > > Here A = vdsk, B= karajan<br>
> > ><br>
> > > There's a subclass of the weighted host scheduler that lives<br>
> > > in the vdsk<br>
> > > module and extends the functionality in swift-specific ways:<br>
> > > src//org/griphyn/vdl/karajan/VDSAdaptiveScheduler.java<br>
> > ><br>
> > > You might be able to add your new functionality there.<br>
> > ><br>
> > > If its building in eclipse, that's because it enforces cog<br>
> > > module<br>
> > > dependencies differently (or not at all).<br>
> > ><br>
> > > On Tue, 15 Jul 2008, Ragib Morshed wrote:<br>
> > ><br>
> > ><br>
> > ><br>
> > > > Ben suggested forwarding this problem of mine to<br>
> > > swift-devel.<br>
> > > ><br>
> > > > ---------- Forwarded message ----------<br>
> > > > From: Ragib Morshed <<a href="mailto:ragib.morshed@gmail.com">ragib.morshed@gmail.com</a>><br>
> > > > Date: Tue, Jul 15, 2008 at 11:40 AM<br>
> > > > Subject: Fwd: build problem with swift<br>
> > > > To: <a href="mailto:benc@ci.uchicago.edu">benc@ci.uchicago.edu</a><br>
> > > ><br>
> > > ><br>
> > > > Hi Ben,<br>
> > > ><br>
> > > > I sent this email to Mihael, but he is off somewhere at a<br>
> > > conference I<br>
> > > > think, and don't know if he will get to it.<br>
> > > ><br>
> > > > I put some code in for the site-affinity thing and swift<br>
> > > compiles and runs<br>
> > > > the code fine using eclipse. Compilation/building using ant<br>
> > > says: *package<br>
> > > > org.griphyn.vdl.karajan.lib.cache does not exist. *But it is<br>
> > > there and<br>
> > > > compiles fine with eclipse.<br>
> > > ><br>
> > > > Do you have any ideas on the top of your head where the<br>
> > > problem might be?<br>
> > > ><br>
> > > > Thanks.<br>
> > > > -Ragib<br>
> > > ><br>
> > > ><br>
> > > > ---------- Forwarded message ----------<br>
> > > > From: Ragib Morshed <<a href="mailto:ragib.morshed@gmail.com">ragib.morshed@gmail.com</a>><br>
> > > > Date: Tue, Jul 15, 2008 at 11:25 AM<br>
> > > > Subject: build problem with swift<br>
> > > > To: Mihael Hategan <<a href="mailto:hategan@uchicago.edu">hategan@uchicago.edu</a>><br>
> > > ><br>
> > > ><br>
> > > > Hi,<br>
> > > ><br>
> > > > I have been trying to build swift with the new changes using<br>
> > > 'ant dist', but<br>
> > > > it gives compilation error. It compiles and runs fine on<br>
> > > eclipse, but here<br>
> > > > it says it can't find the package<br>
> > > org.gridphyn.vdl.karajan.lib.cache so it<br>
> > > > cannot recognize the VDLFileCache type. Any ideas why?<br>
> > > ><br>
> > > > Here's the output from building it:<br>
> > > ><br>
> > > > [javac] Compiling 540 source files to<br>
> > > > /autonfs/home/rmorshed/Desktop/swiftNew/cog/modules/karajan/build<br>
> > > > [javac]<br>
> > > > /autonfs/home/rmorshed/Desktop/swiftNew/cog/modules/karajan/src/org/globus/cog/karajan/scheduler/WeightedHostScoreScheduler.java:34:<br>
> > > > *package org.griphyn.vdl.karajan.lib.cache does not exist*<br>
> > > > [javac] import<br>
> > > org.griphyn.vdl.karajan.lib.cache.VDLFileCache;<br>
> > > > [javac] ^<br>
> > > > [javac]<br>
> > > > /autonfs/home/rmorshed/Desktop/swiftNew/cog/modules/karajan/src/org/globus/cog/karajan/scheduler/WeightedHostScoreScheduler.java:230:<br>
> > > > cannot resolve symbol<br>
> > > > [javac] symbol : class VDLFileCache<br>
> > > > [javac] location: class<br>
> > > > org.globus.cog.karajan.scheduler.WeightedHostScoreScheduler<br>
> > > > [javac] VDLFileCache fileCache =<br>
> > > (VDLFileCache)<br>
> > > > t.getConstraint("filecache");<br>
> > > > [javac] ^<br>
> > > > [javac]<br>
> > > > /autonfs/home/rmorshed/Desktop/swiftNew/cog/modules/karajan/src/org/globus/cog/karajan/scheduler/WeightedHostScoreScheduler.java:230:<br>
> > > > cannot resolve symbol<br>
> > > > [javac] symbol : class VDLFileCache<br>
> > > > [javac] location: class<br>
> > > > org.globus.cog.karajan.scheduler.WeightedHostScoreScheduler<br>
> > > > [javac] VDLFileCache fileCache =<br>
> > > (VDLFileCache)<br>
> > > > t.getConstraint("filecache");<br>
> > > > [javac] ^<br>
> > > > [javac] Note: Some input files use or override a<br>
> > > deprecated API.<br>
> > > > [javac] Note: Recompile with -deprecation for details.<br>
> > > > [javac] 3 errors<br>
> > > ><br>
> > > > BUILD FAILED<br>
> > > > /autonfs/home/rmorshed/Desktop/swiftNew/cog/modules/vdsk/build.xml:73: The<br>
> > > > following error occurred while executing this line:<br>
> > > > /autonfs/home/rmorshed/Desktop/swiftNew/cog/mbuild.xml:442:<br>
> > > The following<br>
> > > > error occurred while executing this line:<br>
> > > > /autonfs/home/rmorshed/Desktop/swiftNew/cog/mbuild.xml:78:<br>
> > > The following<br>
> > > > error occurred while executing this line:<br>
> > > > /autonfs/home/rmorshed/Desktop/swiftNew/cog/mbuild.xml:51:<br>
> > > The following<br>
> > > > error occurred while executing this line:<br>
> > > > /autonfs/home/rmorshed/Desktop/swiftNew/cog/modules/vdsk/dependencies.xml:4:<br>
> > > > The following error occurred while executing this line:<br>
> > > > /autonfs/home/rmorshed/Desktop/swiftNew/cog/mbuild.xml:162:<br>
> > > The following<br>
> > > > error occurred while executing this line:<br>
> > > > /autonfs/home/rmorshed/Desktop/swiftNew/cog/mbuild.xml:167:<br>
> > > The following<br>
> > > > error occurred while executing this line:<br>
> > > > /autonfs/home/rmorshed/Desktop/swiftNew/cog/modules/karajan/build.xml:59:<br>
> > > > The following error occurred while executing this line:<br>
> > > > /autonfs/home/rmorshed/Desktop/swiftNew/cog/mbuild.xml:463:<br>
> > > The following<br>
> > > > error occurred while executing this line:<br>
> > > > /autonfs/home/rmorshed/Desktop/swiftNew/cog/mbuild.xml:227:<br>
> > > Compile failed;<br>
> > > > see the compiler error output for details.<br>
> > > ><br>
> > > > Total time: 30 seconds<br>
> > > ><br>
> > > > -ragib<br>
> > > ><br>
> > ><br>
> > ><br>
> > ><br>
> > > _______________________________________________<br>
> > > Swift-devel mailing list<br>
> > > <a href="mailto:Swift-devel@ci.uchicago.edu">Swift-devel@ci.uchicago.edu</a><br>
> > > <a href="http://mail.ci.uchicago.edu/mailman/listinfo/swift-devel" target="_blank">http://mail.ci.uchicago.edu/mailman/listinfo/swift-devel</a><br>
><br>
> _______________________________________________<br>
> Swift-devel mailing list<br>
> <a href="mailto:Swift-devel@ci.uchicago.edu">Swift-devel@ci.uchicago.edu</a><br>
> <a href="http://mail.ci.uchicago.edu/mailman/listinfo/swift-devel" target="_blank">http://mail.ci.uchicago.edu/mailman/listinfo/swift-devel</a><br>
<br>
</div></div></blockquote></div><br></div>