Anh Trinh <anh.tr...@nasa.gov> wrote on 11/01/2011 02:40:50 PM:
>
> Hi,
> I did AES (ECB mode) implementation in X10, JAVA. Basically, I create
> AES object which will take in array of byte input and calculate the
> output. For parallel version, I chopped the file into 4 pieces and feed
> it to 4 AES objects then let them run in parallel. I only calculated
> time of encryption not the I/O. Testing on dual-core macbook, x10
> performance is slower than java (64seconds vs 15 seconds for 7.7MB
> file). I looked at the monitor, I can see CPU-utilization is at peak in
> Java but not in X10 (Java 190%, x10 95%)
>
> is there any runtime configuration that i need to set up?
>
My guess is that you didn't set X10_NTHREADS, so the X10 program is using a
single worker thread (the default) to execute the parallel work. So it
won't get parallel speedup, since it is only using 1 core.
You may find the section on the X10 runtime in this document helpful:
http://dist.codehaus.org/x10/documentation/papers/X10Workshop2011/X10PerformanceModel.pdf
--dave
------------------------------------------------------------------------------
RSA® Conference 2012
Save $700 by Nov 18
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users