[Mochi-devel] running mochi examples

Carns, Philip H. carns at mcs.anl.gov
Mon Nov 4 16:10:50 CST 2019


For the transport it should work Ok to just use "verbs://" now (the trailing colon and slashes are important, though).   Mercury will automatically convert that to the more verbose string internally.

thanks,
-Phil
________________________________
From: mochi-devel <mochi-devel-bounces at lists.mcs.anl.gov> on behalf of Latham, Robert J. via mochi-devel <mochi-devel at lists.mcs.anl.gov>
Sent: Monday, November 4, 2019 3:11 PM
To: mochi-devel at lists.mcs.anl.gov <mochi-devel at lists.mcs.anl.gov>; abidmuslim at gmail.com <abidmuslim at gmail.com>
Subject: Re: [Mochi-devel] running mochi examples

On Mon, 2019-11-04 at 07:37 -0500, Abid Malik via mochi-devel wrote:
>
> Hello,
>
> I am trying to play with the mochi examples at
>
>   https://xgitlab.cels.anl.gov/sds/sds-examples.git
>
> I am trying the example on summit:
>
> /mercury/01_hello/01_hg_hello_server
>
> How should I start the server/client? I am trying it on login2 node
> and trying to initiate it like:
>
> ./01_hg_hello_server bmi+tcp://login2:1234

I see you are using spack.  If so, I think you would have had to go out
of your way to request the 'bmi' transport.  You probably built
libfabric.  You can find out for sure with 'spack find'

You tell margo (mercury, really) which protocol to use but the string
for "libfabric using the verbs provider" is a little odd:

"ofi+verbs;ofi_rxm://"

> and getting errors.
>
> # NA -- Error -- /tmp/amalik/spack-stage/spack-stage-mercury-master-
> nbp34rmg6rkc2ayiqxxxuupamvmdusr7/spack-src/src/na/na.c:281
>  # NA_Initialize_opt(): Specified class name does not support
> requested protocol

This says mercury did not recognize 'bmi+tcp'.  You'd get the same
error if you requested "moon_rock".

I don't have a lot of guidance to offer you (yet).  I just got started
on summit a few days ago.  When I try to take the advice I gave you I
get an error, too:

$ jsrun -r1 -n1 ./margo-example-server  verbs
# NA -- Error -- /tmp/robl/spack-stage/spack-stage-mercury-master-
c6nwqortoqjsyviyinlg5t6sfay6wv7l/spack-src/src/na/na.c:279
 # NA_Initialize_opt(): Specified class name does not support requested
protocol

That's what we expect.  margo/mercury don't know what 'verbs'
is.  Instead, we need to tell margo/mercury to use OFI (libfabric):

$ jsrun -r1 -n1 ./margo-example-server "ofi+verbs;ofi_rxm://"
# NA -- Error -- /tmp/robl/spack-stage/spack-stage-mercury-master-
c6nwqortoqjsyviyinlg5t6sfay6wv7l/spack-src/src/na/na_ofi.c:1406
 # na_ofi_getinfo(): fi_getinfo() failed, rc: -61(No data available)

Uh, I'm still working on that one...

==rob

_______________________________________________
mochi-devel mailing list
mochi-devel at lists.mcs.anl.gov
https://lists.mcs.anl.gov/mailman/listinfo/mochi-devel
https://www.mcs.anl.gov/research/projects/mochi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mochi-devel/attachments/20191104/d19c6bf7/attachment-0001.html>


More information about the mochi-devel mailing list