Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
sds
bake
Commits
3dbf4e71
Commit
3dbf4e71
authored
Jul 06, 2016
by
Philip Carns
Browse files
update to handle new Mercury address/init syntax
parent
3c29df3a
Changes
2
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
3dbf4e71
# 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.
src/bake-bulk.c
View file @
3dbf4e71
...
...
@@ -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 us
in
g
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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment