Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |  

This web mail archive is frozen.

This page is part of a frozen web archive of this mailing list.

You can still navigate around this archive, but know that no new mails have been added to it since July of 2016.

Click here to be taken to the new web archives of this list; it includes all the mails that are in this frozen archive plus all new mails that have been sent to the list since it was migrated to the new archives.

Subject: Re: [OMPI devel] SHMEM symmetric objects in shared libraries
From: Bert Wesarg (bert.wesarg_at_[hidden])
Date: 2014-07-29 13:08:43


On 07/29/2014 06:57 PM, Joshua Ladd wrote:
> Are you claiming that in the following test, the static variable "val" will
> not be seen as a symmetric object?

No.

>
> #include "shmem.h"
>
> int main( int argc, char **argv){
> long my_pe, npes, master;
>
> start_pes(0);
> my_pe = shmem_my_pe();
> npes = shmem_n_pes();
>
> master = npes - 1;
>
> /* only used on master */
> static long val = 0;
>
>
> if(my_pe != master ){
> shmem_long_fadd(&val,1,master);
> }
>
> shmem_barrier_all();
>
> return 0;
> }
>
> Josh
>

-- 
Dipl.-Inf. Bert Wesarg
wiss. Mitarbeiter
Technische Universität Dresden
Zentrum für Informationsdienste und Hochleistungsrechnen (ZIH)
01062 Dresden
Tel.: +49 (351) 463-42451
Fax: +49 (351) 463-37773
E-Mail: bert.wesarg_at_[hidden]