Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
maestro-core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
maestro
maestro-core
Commits
da345796
Commit
da345796
authored
Dec 6, 2022
by
Ali Mohammed
Browse files
Options
Downloads
Patches
Plain Diff
remove unused function
parent
121dd172
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
maestro/ofi.c
+0
-33
0 additions, 33 deletions
maestro/ofi.c
with
0 additions
and
33 deletions
maestro/ofi.c
+
0
−
33
View file @
da345796
...
...
@@ -883,39 +883,6 @@ mstro_mr_key_get(struct fi_info* fi, struct fid_mr* mr,
return
MSTRO_OK
;
}
static
inline
mstro_status
mstro_ofi__maybe_register_as_read_target_buffer_host
(
int
mr_mode
,
struct
fid_ep
*
ep
,
struct
fid_domain
*
domain
,
const
void
*
buf
,
size_t
len
,
struct
fid_mr
**
mr
,
void
**
local_buf_mr_desc
)
{
mstro_status
status
=
MSTRO_UNIMPL
;
if
(
mr_mode
&
FI_MR_LOCAL
)
{
uint64_t
requested_key
=
mr_mode
&
FI_MR_PROV_KEY
?
0
:
mstro_memory_new_key
();
int
err
=
fi_mr_reg
(
domain
,
buf
,
len
,
FI_READ
,
0
,
requested_key
,
0
,
mr
,
NULL
);
if
(
err
)
{
ERR
(
"Couldn't register memory region for RDMA transport (err: %d, %s)
\n
"
,
err
,
fi_strerror
(
-
err
));
return
MSTRO_OFI_FAIL
;
}
*
local_buf_mr_desc
=
fi_mr_desc
(
*
mr
);
DEBUG
(
"Registered memory region for RDMA transport successfully
\n
"
);
/*maybe bind memory to ep */
status
=
mstro_ofi__maybe_bind_and_enable_mreg
(
ep
,
mr_mode
,
*
mr
);
}
else
{
DEBUG
(
"Fabric provider does not require registering host local buffers
\n
"
);
*
mr
=
NULL
;
*
local_buf_mr_desc
=
NULL
;
status
=
MSTRO_OK
;
}
return
status
;
}
static
inline
mstro_status
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment