Dear List,
I have this very weird behavior going on, I'm just implementing this
simple Matrix-Vector Multiplication program
and I'm measuring the time consumed by my program, so heres my parallel code
with asyncs :
*
val n:int=1000;
// 2
val a= new Array[Int]([0..n,0..n],((i,j):Point)=>j);
val b= new Array[Int]([0..n],((i):Point)=>i);
val result = new Array[Int]([0..n],((i):Point)=>0);
val h = new Hello();
val begin:Long = Timer.nanoTime();
finish
{
for((i,j):Point in a.region)
{
async
{
val value:int;
finish
value= h.computeMult(a,b,i,j); //this is just a
method that calculates
atomic result(i)+=value;
}
}
}
val end:Long = Timer.nanoTime();*
--
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/x10-users