Dear David, Thanks for the reply, but I guess my problem is much more easier than that, I think theres something that I'm missing out,
1) Am I restricted to "*Rail*" types only when I want to integrate arrays as parameters in a Native code method. for example If I want to pass an array from X10 to a BLAS routine in C which takes "*double [ ]*" as a parameter, do I have to convert the array to a "Rail" type? 2) I want to use any Data structure that could be distributed over distinct places, and I would be able to extract regions of it (like a blocked distribution e.g a block in place 1) and be capable of sending it as a parameter to a BLAS routine. 3) What is the type "DistributedRail"? When I look into the documentation I couldn't really understand how its used. Thank you all, Regards, Mohammed On Thu, Jul 8, 2010 at 11:08 AM, David P Grove <gro...@us.ibm.com> wrote: > > > > mohammed elsaeedy <mohammed.elsae...@kaust.edu.sa> wrote on 07/08/2010 > 10:47:57 AM: > > > > > > I'm trying to use the BLAS libraries with X10, and I was able to use > the > > rails to be sent as parameters to BLAS routines, > > now I want to parallelize these rails into places and call in each place > a > > BLAS routine. > > > > When I call a BLAS routine, I define a native function for example : > > "*...@native("c++", > > "run((#1)->raw(), (#2)->raw(), (#3)->raw())")*" > > these parameters are Arrays "*double[ ]*" in C-BLAS routines, as I > > understand X10 has to take them in the form of Rail to convert them to > the > > back-ends > > corresponding type basically "arrays", so when I used the "Array" type in > > X10 I had to call the raw( ) function, but what if I want to use the > > DistArray, the raw function is > > protected. > > > > Am I missing something? > > > > You could change the raw() method if DistArray to be public for > experimental purposes. > > We are still doing some re-design on the internal of DistArray, so didn't > want to commit to make the raw() method be part of its public API yet. The > way distributions map the points in the region into the local storage might > still be evolving. It will be stablized by X10 2.1.0 (end of August). > > --dave > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > X10-users mailing list > X10-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/x10-users > -- Thank you for your concern. Regards, Mohammed El Sayed ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ X10-users mailing list X10-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/x10-users