Ray,

from shmem_ptr man page :

RETURN VALUES
shmem_ptr returns a pointer to the data object on the specified remote PE. If target is not remotely accessible, a NULL pointer is returned.

since you are running your application on two hosts and one task per host, the target is not remotely accessible, and hence the NULL pointer.
if you run two tasks on the same node, then the test should be fine.

note openshmem does not provide a virtual shared memory system.
if you want to run across nodes, then you need to shmem_{get,put}

Cheers,

Gilles

On 3/16/2016 2:59 PM, RYAN RAY wrote:
Dear Gilles

I have attached the source code and the hostfile.

Regards

Ryan

From: Gilles Gouaillardet <gilles.gouaillar...@gmail.com>
Sent: Tue, 15 Mar 2016 15:44:48
To: Open MPI Users <us...@open-mpi.org>
Subject: Re: [OMPI users] Open SHMEM Error
Ryan,

can you please post your source code and hostfile ?

Cheers,

Gilles

On Tuesday, March 15, 2016, RYAN RAY <ryan....@rediffmail.com> wrote:

    Dear Gilles,
    Thanks for the reply. After executing the code as you told I get
    the output as shown in the attached snapshot.
    So I am understanding that the code cannot remotely access the
    array at PE1 from PE0. Can you please explain why this is happenning?

    Regards,
    Ryan

    From: Gilles Gouaillardet <gil...@rist.or.jp
    <javascript:_e(%7B%7D,'cvml','gil...@rist.or.jp');>>
    Sent: Fri, 04 Mar 2016 11:16:38
    To: Open MPI Users <us...@open-mpi.org
    <javascript:_e(%7B%7D,'cvml','us...@open-mpi.org');>>
    Subject: Re: [OMPI users] Open SHMEM Error
    Ryan,

    do you really get a segmentation fault ?

    here is the message i have :

    -------------------------------------------------------
    Primary job  terminated normally, but 1 process returned
    a non-zero exit code.. Per user-direction, the job has been aborted.
    -------------------------------------------------------
    --------------------------------------------------------------------------
    oshrun detected that one or more processes exited with non-zero
    status, thus causing
    the job to be terminated. The first process to do so was:

      Process name: [[23403,1],0]
      Exit code:    1
    --------------------------------------------------------------------------

    the root cause is the test program ends with
    return 1;
    instead of
    return 0;

    /* and i cannot figure out a rationale for that, i just replaced
    this with return 0; and that was fine*/

    fwiw, this examples use the deprecated start_pes(0) instead of
    shmem_init();
    and there is no shmem_finalize();

    Cheers,

    Gilles

    On 3/3/2016 4:15 PM, RYAN RAY wrote:

        
1456988179.s.21347.24038.f4-235-148.1456989355.13...@webmail.rediffmail.com
        
<javascript:_e(%7B%7D,'cvml','1456988179.s.21347.24038.f4-235-148.1456989355.13...@webmail.rediffmail.com');>"
        type="cite">


        From: "RYAN RAY" ryan....@rediffmail.com
        <javascript:_e(%7B%7D,'cvml','ryan....@rediffmail.com');>
        Sent: Thu, 03 Mar 2016 12:26:19 +0530
        To: "announce " annou...@open-mpi.org
        <javascript:_e(%7B%7D,'cvml','annou...@open-mpi.org');>,
        "ryan.ray " ryan....@rediffmail.com
        <javascript:_e(%7B%7D,'cvml','ryan....@rediffmail.com');>
        Subject: Open SHMEM Error


        On trying a code specified in the manual"OpenSHMEM
        Specification Draft "asection8.16 example code , we are facing
        a problem.
        The code is the c version of the example code for the
        callSHMEM_PTR.
        We have written the code exactly as it is in the manual , but
        we are getting a segmentation fault.
        The code , manual and error snapshots are attached in this mail.

        I will be grateful if you can provide any solution to this
        problem.

        RYAN SAPTARSHI RAY



        *FREE* website, *FREE* domain & *FREE* mobile app with Company
        email.
        
<//www.rediffmail.com/cgi-bin/red.cgi?red=%2F%2Fwww%2Erediffmail%2Ecom%2Fcgi%2Dbin%2Fred%2Ecgi%3Fred%3Dhttps%253A%252F%252Fsigads%252Erediff%252Ecom%252FRealMedia%252Fads%252Fclick%255Fnx%252Eads%252Fwww%252Erediffmail%252Ecom%252Fsignatureline%252Ehtm%2540Middle%253F%26amp%3BisImage%3D0%26amp%3BBlockImage%3D0%26amp%3Brediffng%3D0%26amp%3Brogue%3D86405da3ed8eb9005549e1536a8c08bb6cef0c3e&isImage=0&BlockImage=0&rediffng=0&rogue=5bd1dc3ef7ebf01a2a278d17db5e08d99e13084a>

    *Know More >*
    
<//www.rediffmail.com/cgi-bin/red.cgi?red=%2F%2Fwww%2Erediffmail%2Ecom%2Fcgi%2Dbin%2Fred%2Ecgi%3Fred%3Dhttp%253A%252F%252Ftrack%252Erediff%252Ecom%252Fclick%253Furl%253D%255F%255F%255Fhttp%253A%252F%252Fbusinessemail%252Erediff%252Ecom%253Fsc%255Fcid%253Dsign%252D1%252D10%252D13%255F%255F%255F%2526amp%253Bcmp%253Dhost%2526amp%253Blnk%253Dsign%252D1%252D10%252D13%2526amp%253Bnsrv1%253Dhost%26amp%3BisImage%3D0%26amp%3BBlockImage%3D0%26amp%3Brediffng%3D0%26amp%3Brogue%3D387537254f7eee557c3b17544bd037e8098bd82e&isImage=0&BlockImage=0&rediffng=0&rogue=eb5ab44b006904f043867a30af2ac4310a867217>
    Get your own *FREE* website, *FREE* domain & *FREE* mobile app
    with Company email.
    
<//www.rediffmail.com/cgi-bin/red.cgi?red=https%3A%2F%2Fsigads%2Erediff%2Ecom%2FRealMedia%2Fads%2Fclick%5Fnx%2Eads%2Fwww%2Erediffmail%2Ecom%2Fsignatureline%2Ehtm%40Middle%3F&isImage=0&BlockImage=0&rediffng=0&rogue=86405da3ed8eb9005549e1536a8c08bb6cef0c3e>

<//www.rediffmail.com/cgi-bin/red.cgi?red=https%3A%2F%2Fsigads%2Erediff%2Ecom%2FRealMedia%2Fads%2Fclick%5Fnx%2Eads%2Fwww%2Erediffmail%2Ecom%2Fsignatureline%2Ehtm%40Middle%3F&isImage=0&BlockImage=0&rediffng=0&rogue=86405da3ed8eb9005549e1536a8c08bb6cef0c3e>*Know More >* <//www.rediffmail.com/cgi-bin/red.cgi?red=%2F%2Fwww%2Erediffmail%2Ecom%2Fcgi%2Dbin%2Fred%2Ecgi%3Fred%3Dhttp%253A%252F%252Ftrack%252Erediff%252Ecom%252Fclick%253Furl%253D%255F%255F%255Fhttp%253A%252F%252Fbusinessemail%252Erediff%252Ecom%253Fsc%255Fcid%253Dsign%252D1%252D10%252D13%255F%255F%255F%2526amp%253Bcmp%253Dhost%2526amp%253Blnk%253Dsign%252D1%252D10%252D13%2526amp%253Bnsrv1%253Dhost%26amp%3BisImage%3D0%26amp%3BBlockImage%3D0%26amp%3Brediffng%3D0%26amp%3Brogue%3D387537254f7eee557c3b17544bd037e8098bd82e&isImage=0&BlockImage=0&rediffng=0&rogue=eb5ab44b006904f043867a30af2ac4310a867217>


_______________________________________________ users mailing list us...@open-mpi.org Subscription: <//www.rediffmail.com/cgi-bin/red.cgi?red=https%3A%2F%2Fsigads%2Erediff%2Ecom%2FRealMedia%2Fads%2Fclick%5Fnx%2Eads%2Fwww%2Erediffmail%2Ecom%2Fsignatureline%2Ehtm%40Middle%3F&isImage=0&BlockImage=0&rediffng=0&rogue=86405da3ed8eb9005549e1536a8c08bb6cef0c3e>http://www.open-mpi.org/mailman/listinfo.cgi/users
Link to this 
post:http://www.open-mpi.org/community/lists/users/2016/03/28622.php

_______________________________________________
users mailing list
us...@open-mpi.org
Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/users
Link to this post: http://www.open-mpi.org/community/lists/users/2016/03/28635.php Get your own *FREE* website, *FREE* domain & *FREE* mobile app with Company email. <https://sigads.rediff.com/RealMedia/ads/click_nx.ads/www.rediffmail.com/signatureline.htm@Middle?>*Know More >* <http://track.rediff.com/click?url=___http://businessemail.rediff.com?sc_cid=sign-1-10-13___&cmp=host&lnk=sign-1-10-13&nsrv1=host>
_______________________________________________
users mailing list
us...@open-mpi.org
Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/users
Link to this post: http://www.open-mpi.org/community/lists/users/2016/03/28703.php <https://sigads.rediff.com/RealMedia/ads/click_nx.ads/www.rediffmail.com/signatureline.htm@Middle?> Get your own *FREE* website, *FREE* domain & *FREE* mobile app with Company email. *Know More >* <http://track.rediff.com/click?url=___http://businessemail.rediff.com?sc_cid=sign-1-10-13___&cmp=host&lnk=sign-1-10-13&nsrv1=host>



_______________________________________________
users mailing list
us...@open-mpi.org
Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/users
Link to this post: 
http://www.open-mpi.org/community/lists/users/2016/03/28706.php

Reply via email to