On Saturday 06 February 2010 07:34:39 pm Nate Nystrom wrote:
> You should be able to drop the clock after spawning the asyncs, but
> within the body of the finish.
> 
> Nate
> 

Nate,

thanks for your support and prompt reply again.

I tried the following code change.
        def ClockTest() {
                val c = Clock.make();
                finish for (p in Place.places ) {
                        async (p) clocked (c) {
                                Console.OUT.println("Before next");
                                next;
                                Console.OUT.println("After next");
                        }
                        c.drop();
                }
        }
This got me the following output.
<map>
        <host name="sirius" slots="1" max_slots="0">
                <process rank="0"/>
                <process rank="1"/>
        </host>
</map>
<stdout rank="0">main: before ClockTest</stdout>
<stdout rank="0">Before next</stdout>
<stdout rank="0">After next</stdout>
<stderr rank="0">Uncaught exception at place 0: x10.lang.ClockUseException: 
clock use exception</stderr>
<stderr rank="0">x10.lang.ClockUseException: clock use exception</stderr>
<stderr rank="0">       at x10::lang::Throwable::fillInStackTrace()</stderr>
<stderr rank="0">       at 
x10aux::throwException(x10aux::ref<x10::lang::Throwable>)</stderr>
<stderr rank="0">       at /home/cp/xample/MatMul/bummer_X10/bin/x10-generated-
dir/Hello [0x8123c3c]</stderr>
<stderr rank="0">       at x10::lang::ValRail<int>::make(int, 
x10aux::ref<x10::lang::Fun_0_1<int, int> >)</stderr>
<stderr rank="0">       at 
x10::lang::Runtime__ClockPhases::_kwd__register(x10aux::ref<x10::lang::ValRail<x10aux::ref<x10::lang::Clock>
 
> >)</stderr>

[...]

Your explanation still sounds reasonable to me. Is something wrong with the 
X10 runtime ?
-- 

Mit freundlichen Grüßen / Kind regards

Dr. Christoph Pospiech
High Performance & Parallel Computing
Phone:  +49-351 86269826
Mobile: +49-171-765 5871
E-Mail: christoph.pospi...@de.ibm.com
-------------------------------------
IBM Deutschland GmbH
Vorsitzender des Aufsichtsrats: Erich Clementi 
Geschäftsführung: Martin Jetter (Vorsitzender), 
Reinhard Reschke, Christoph Grandpierre, 
Klaus Lintelmann, Michael Diemer, Martina Koederitz 
Sitz der Gesellschaft: Ehningen / Registergericht: Amtsgericht Stuttgart, HRB 
14562 WEEE-Reg.-Nr. DE 99369940


------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users

Reply via email to