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.wes...@tu-dresden.de

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to