Hi,
I have chapel 1.8.0 installed with default settings in my desktop having
config:
OS: Ubuntu 12.04.04
Ram: 4gb
Processor: i5 2320 @ 3.00 Ghz x 4
The code I am trying to run is:
*var d : domain(1) int = {1..2048};*
*var A : [d] int;*
*forall i in d {*
* doSomethingOnAElements(i); *
*}*
*for i in 1..40 {*
* doSomething();*
*}*
*forall i in d {*
* doSomethingOnAElements(i); *
*}*
*writeln(A);*
The problem is till *writeln(A); *the code is running only on single core.
But after displaying A chapel uses all the four cores for a period more
than it took to display A.
The problem is same if *coforall *is used or *for* is used in substitute to
*forall.*
So how can I make chapel use all the four cores every time?
Below are options(all default) used for chapel:
Parallelism Control Options:
--[no-]local Target one [many] locale[s]
currently: --local
--[no-]serial [Don't] Serialize parallel constructs
currently: --no-serial
--[no-]serial-forall [Don't] Serialize forall constructs
currently: --no-serial-forall
Optimization Control Options:
--fast Use fast default settings
currently: not selected
--[no-]fast-followers Enable [disable] fast followers
currently: --fast-followers
--[no-]optimize-loop-iterators Enable [disable] optimization of
iterators composed of a single loop
currently: --optimize-loop-iterators
Waiting for reply.
Soumen
------------------------------------------------------------------------------
WatchGuard Dimension instantly turns raw network data into actionable
security intelligence. It gives you real-time visual feedback on key
security issues and trends. Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk
_______________________________________________
Chapel-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/chapel-users