Hi Vassily,

thank you for your answer.

Okay, so I tried to write a program that applies remote access.
This program is similar to a project I'm doing at the moment. Iit's  
intended to do a lot of accesses.
It is clear that it runs slower due to this if I don't optimize. So I  
thought about a temporary array that holds the needed values from  
every Locale. This array should be created once per locale, so every  
of them can get the values locally after they are got remotely only  
once. Unfortunately I'm having some problems to implement this.

Could you have a view on my code [1] and give some suggestions?
The program iterates over every (distributed) array element where it  
does the same iteration in an inner loop. Within this there are some  
calculations which need the array values.
The algorithm is done locally, then distributed and then distributed  
with my suggested optimization (which is actually no good idea).
The console output includes the time measures and calculation results.  
The results are not meant to make any sense, they just show consistency.

One example:
./test -nl 16 --N=1000
Time on one Locale: 0.05074 seconds
Time on 16 Locales: 3.38145 seconds
Optimized time on 16 Locales: 3.74074 seconds

bye

[1] https://www-user.tu-chemnitz.de/~michd/distExample.chpl


Zitat von Vassily Litvinov <[email protected]>:

> To measure remote accesses, try using startCommDiagnostics() and
> stopCommDiagnostics() and writeln(getCommDiagnostics())
> as described in:
>
>   doc/technotes/README.comm-diagnostics
>
> in the Chapel release tree.
>
> Vassily
>
> On Wed, Nov 26, 2014 at 01:38:43AM +0100, Michael Dietrich wrote:
>> Hi Tom,
>>
>> Yes, there is a possibility to change the number of tasks per locale
>> within the source code. I thought this was only possible via
>> complicated command lines or environment variable changes. Thank you
>> very much.
>>
>> One more question (something different but let's keep the e-mail subject):
>> Is it somehow possible to measure the remote accesses of a Chapel program?
>> I'm experimenting with a distributed array on which a lot of remote
>> accesses are done. Of course a faster execution is a sign of less
>> access but I would like to get a more exact result.
>> Maybe even a notification in the console for every access (for this I
>> will have to keep my array very small of course)?
>>
>> bye
>> ...




------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Chapel-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/chapel-users

Reply via email to