Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bake
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
7
Issues
7
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sds
bake
Commits
3171e59e
Commit
3171e59e
authored
Jul 29, 2016
by
Philip Carns
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
get manual eager write path working
parent
97421e01
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
src/bake-bulk-rpc.h
src/bake-bulk-rpc.h
+9
-0
src/bake-bulk-server.c
src/bake-bulk-server.c
+3
-0
No files found.
src/bake-bulk-rpc.h
View file @
3171e59e
...
...
@@ -131,7 +131,16 @@ static inline hg_return_t hg_proc_bake_bulk_eager_write_in_t(hg_proc_t proc, voi
hg_proc_bake_bulk_region_id_t
(
proc
,
&
in
->
rid
);
hg_proc_uint64_t
(
proc
,
&
in
->
region_offset
);
hg_proc_uint32_t
(
proc
,
&
in
->
size
);
if
(
hg_proc_get_op
(
proc
)
==
HG_DECODE
)
{
in
->
buffer
=
malloc
(
in
->
size
);
}
hg_proc_memcpy
(
proc
,
in
->
buffer
,
in
->
size
);
if
(
hg_proc_get_op
(
proc
)
==
HG_FREE
)
{
if
(
in
->
buffer
)
free
(
in
->
buffer
);
}
return
(
HG_SUCCESS
);
}
...
...
src/bake-bulk-server.c
View file @
3171e59e
...
...
@@ -127,6 +127,9 @@ int main(int argc, char **argv)
MERCURY_REGISTER
(
hg_class
,
"bake_bulk_write_rpc"
,
bake_bulk_write_in_t
,
bake_bulk_write_out_t
,
bake_bulk_write_ult_handler
);
MERCURY_REGISTER
(
hg_class
,
"bake_bulk_eager_write_rpc"
,
bake_bulk_eager_write_in_t
,
bake_bulk_eager_write_out_t
,
bake_bulk_eager_write_ult_handler
);
MERCURY_REGISTER
(
hg_class
,
"bake_bulk_persist_rpc"
,
bake_bulk_persist_in_t
,
bake_bulk_persist_out_t
,
bake_bulk_persist_ult_handler
);
...
...
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