Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prov/efa: Implement FI_CONTEXT2 in EFA Direct #10707

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jiaxiyan
Copy link
Contributor

Store the completion flags and peer address in FI_CONTEXT2 and retrieve later when writing cq.

@jiaxiyan jiaxiyan requested a review from a team January 17, 2025 00:43
prov/efa/src/efa.h Outdated Show resolved Hide resolved
This commit removes the x86-64 architecture check from the static_assert
conditional compilation directive. The static_assert feature is not
architecture-dependent and should be checked on all platforms that
support it.

Signed-off-by: Jessie Yang <[email protected]>
prov/efa/src/efa_rma.c Outdated Show resolved Hide resolved
prov/efa/test/efa_unit_test_cq.c Outdated Show resolved Hide resolved
shijin-aws
shijin-aws previously approved these changes Jan 21, 2025
prov/efa/src/efa_cq.c Outdated Show resolved Hide resolved
efa_unit_test_buff_construct(&send_buff, resource, 4096 /* buff_size */);

assert_int_equal(g_ibv_submitted_wr_id_cnt, 0);
ret = fi_send(resource->ep, send_buff.buff, send_buff.size,
fi_mr_desc(send_buff.mr), addr, (void *) 12345);
fi_mr_desc(send_buff.mr), addr, &ctx);
assert_int_equal(ret, 0);
assert_int_equal(g_ibv_submitted_wr_id_cnt, 1);

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not related to this PR, but generally it worth checking the completion flags in the cq entry to be correct.

Store the completion flags and peer address in FI_CONTEXT2 and
retrieve later when writing cq.

Signed-off-by: Jessie Yang <[email protected]>
@shijin-aws
Copy link
Contributor

bot:aws:retest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants