Hi,  I had a quick look at the differences between KMeansCUDA's own 
DistributedRail and the system one, they are very similar except for some type 
system stuff which may or may not still be important.

However the DistributedRail internally synchronises using clocks so you must be 
using clocks in your program.  You should treat the collective operation like a 
next 'next' statement, it actually uses several next statements internally.

Thanks
________________________________________
From: Christoph Pospiech [christoph.pospi...@de.ibm.com]
Sent: 30 January 2010 16:48
To: Cunningham, David
Cc: x10-users@lists.sourceforge.net
Subject: Re: [X10-users] DistributedRail

On Sunday 24 January 2010 02:30:23 am Cunningham, David wrote:
> Currently the DistributedRail is a separate rail at each participating
>  activity (same length everywhere), with collective operations to
>  synchronise the data in those rails (which may involve communication
>  between places as the activities need not be at the same place).  The code
>  is essentially a reference implementation, and is very raw.  It has only
>  been tested with KMeansCUDA.x10 and in fact I think that file has its own
>  DistributedRail class which is more up-to-date than the one in the
>  standard library.  However KMeansCUDA does not work at the moment (I am
>  currently fixing it).
>
> I would be very wary of DistributedRail if I were you,  but by all means
>  take a look, and please comment on its interface or implementation as this
>  may help us with the reworking of the Array library.
>
> thanks
>

David,

I got my program working using the DistributedRail class. Unfortunately, the
result of v.collectiveReduce(Double.+) is unexpected (all values 0.00). Could
you please have a look, what is wrong here ? Thanks.

The program is attached to this post. It is an X10 project with C++ back end.
The output is printed below.

<map>
        <host name="sirius" slots="1" max_slots="0">
                <process rank="0"/>
                <process rank="1"/>
        </host>
</map>
<stdout rank="0">Matrix A at place 0</stdout>
<stdout rank="0">0.00 0.01 0.02 </stdout>
<stdout rank="0">1.00 1.01 1.02 </stdout>
<stdout rank="0">2.00 2.01 2.02 </stdout>
<stdout rank="0">3.00 3.01 3.02 </stdout>
<stdout rank="0">4.00 4.01 4.02 </stdout>
<stdout rank="0">5.00 5.01 5.02 </stdout>
<stdout rank="1">Matrix A at place 1</stdout>
<stdout rank="1">0.03 0.04 0.05 </stdout>
<stdout rank="1">1.03 1.04 1.05 </stdout>
<stdout rank="1">2.03 2.04 2.05 </stdout>
<stdout rank="1">3.03 3.04 3.05 </stdout>
<stdout rank="1">4.03 4.04 4.05 </stdout>
<stdout rank="1">5.03 5.04 5.05 </stdout>
<stdout rank="0">Rail initial v at place 0</stdout>
<stdout rank="0">1.00 1.00 1.00 1.00 1.00 1.00 </stdout>
<stdout rank="0">Rail v at place 0</stdout>
<stdout rank="0">0.03 3.03 6.03 9.03 12.03 15.03 </stdout>
<stdout rank="1">Rail v at place 1</stdout>
<stdout rank="1">0.12 3.12 6.12 9.12 12.12 15.12 </stdout>
<stdout rank="0">Rail final v at place 0</stdout>
<stdout rank="0">0.00 0.00 0.00 0.00 0.00 0.00 </stdout>

--

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