Commit 3dbf4e71 authored by Philip Carns's avatar Philip Carns

update to handle new Mercury address/init syntax

parent 3c29df3a
# bake-bulk
TODO: fill this in.
Example execution:
$ ./bake-bulk-server sm://1/1 /dev/shm/foo.dat
$ ./bb-latency-bench sm:///tmp/cci/sm/carns-x1/1/1 100000 4 8
TODO: notes about how to fix nvml pkg-config files too.
......@@ -50,6 +50,9 @@ struct hg_instance g_hginst = {
static int hg_instance_init(const char *mercury_dest)
{
char hg_na[64] = {0};
int i;
/* have we already started a Mercury instance? */
if(g_hginst.refct > 0)
{
......@@ -59,11 +62,14 @@ static int hg_instance_init(const char *mercury_dest)
/* boilerplate HG initialization steps */
/***************************************/
/* NOTE: the listening address is not actually used in this case (the
* na_listen flag is false); but we pass in the *target* server address
* here to make sure that Mercury starts up the correct transport
/* initialize Mercury using the transport portion of the destination
* address (i.e., the part before the first : character if present)
*/
g_hginst.hg_class = HG_Init(mercury_dest, HG_FALSE);
for(i=0; (i<63 && mercury_dest[i] != '\0' && mercury_dest[i] != ':'); i++)
hg_na[i] = mercury_dest[i];
g_hginst.hg_class = HG_Init(hg_na, HG_FALSE);
if(!g_hginst.hg_class)
{
return(-1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment