Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
sds-tests
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sds
sds-tests
Commits
d7e9f341
Commit
d7e9f341
authored
Jan 03, 2019
by
Philip Carns
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init bake client
parent
3871ed14
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
5 deletions
+20
-5
perf-regression/bake-p2p-bw.c
perf-regression/bake-p2p-bw.c
+20
-5
No files found.
perf-regression/bake-p2p-bw.c
View file @
d7e9f341
...
...
@@ -25,6 +25,7 @@
#include <ssg.h>
#include <ssg-mpi.h>
#include <bake-server.h>
#include <bake-client.h>
struct
options
{
...
...
@@ -176,20 +177,34 @@ int main(int argc, char **argv)
/* ssg id 0 (client) initiates benchmark */
hg_handle_t
handle
;
hg_addr_t
target_addr
;
bake_client_t
bcl
;
bake_provider_handle_t
bph
;
bake_target_id_t
bti
;
uint64_t
num_targets
=
0
;
target_addr
=
ssg_get_addr
(
gid
,
1
);
assert
(
target_addr
!=
HG_ADDR_NULL
);
ret
=
bake_client_init
(
mid
,
&
bcl
);
assert
(
ret
==
0
);
ret
=
bake_provider_handle_create
(
bcl
,
target_addr
,
1
,
&
bph
);
assert
(
ret
==
0
);
ret
=
bake_probe
(
bph
,
1
,
&
bti
,
&
num_targets
);
assert
(
ret
==
0
&&
num_targets
==
1
);
/* TODO: implement benchmark */
sleep
(
3
);
/* tell the server we are done */
target_addr
=
ssg_get_addr
(
gid
,
1
);
assert
(
target_addr
!=
HG_ADDR_NULL
);
bake_provider_handle_release
(
bph
);
bake_client_finalize
(
bcl
);
/* tell the server we are done */
ret
=
margo_create
(
mid
,
target_addr
,
bench_stop_id
,
&
handle
);
assert
(
ret
==
0
);
ret
=
margo_forward
(
handle
,
NULL
);
assert
(
ret
==
0
);
margo_destroy
(
handle
);
}
else
...
...
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