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
ffc8f114
Commit
ffc8f114
authored
May 07, 2016
by
Philip Carns
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stub for bulk persist fn
parent
aec05985
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
2 deletions
+36
-2
include/bake-bulk.h
include/bake-bulk.h
+19
-0
src/bake-bulk.c
src/bake-bulk.c
+7
-0
src/bb-copy-to.c
src/bb-copy-to.c
+10
-2
No files found.
include/bake-bulk.h
View file @
ffc8f114
...
...
@@ -60,6 +60,13 @@ int bake_bulk_create(
*
* Results are undefined if multiple writers (from same process or different
* processes) perform overlapping writes.
*
* @param [in] bti BAKE target identifier
* @param [in] rid identifier for new region
* @param [in] region_offset offset into the target region to write
* @param [in] buf local memory buffer to write
* @param [in] buf_size size of local memory buffer to write
* @returns 0 on success, -1 on failure
*/
int
bake_bulk_write
(
bake_target_id_t
bti
,
...
...
@@ -67,6 +74,18 @@ int bake_bulk_write(
uint64_t
region_offset
,
void
const
*
buf
,
uint64_t
buf_size
);
/**
* Persist a bulk region. The region is considered immutable at this point
* and reads may be performed on the region.
*
* @param [in] bti BAKE target identifier
* @param [in] rid identifier for new region
* @returns 0 on success, -1 on failure
*/
int
bake_bulk_persist
(
bake_target_id_t
bti
,
bake_bulk_region_id_t
rid
);
/**
* Release local resources associated with access to a target; does not
...
...
src/bake-bulk.c
View file @
ffc8f114
...
...
@@ -237,3 +237,10 @@ int bake_bulk_create(
}
int
bake_bulk_persist
(
bake_target_id_t
bti
,
bake_bulk_region_id_t
rid
)
{
/* TODO: implement */
return
(
-
1
);
}
src/bb-copy-to.c
View file @
ffc8f114
...
...
@@ -116,10 +116,18 @@ int main(int argc, char **argv)
return
(
-
1
);
}
/* TODO: persist */
munmap
(
local_region
,
statbuf
.
st_size
);
close
(
fd
);
ret
=
bake_bulk_persist
(
bti
,
rid
);
if
(
ret
!=
0
)
{
bake_release_instance
(
bti
);
ABT_finalize
();
fprintf
(
stderr
,
"Error: bake_bulk_persist()
\n
"
);
return
(
-
1
);
}
bake_release_instance
(
bti
);
ABT_finalize
();
...
...
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