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

TEST/TAG: Fix tag test to check inline data flag #5961

Merged
merged 1 commit into from
Nov 30, 2020

Conversation

yosefe
Copy link
Contributor

@yosefe yosefe commented Nov 27, 2020

Why

UCT test must copy-out inline data, following #5889
@bureddy

@@ -388,6 +388,9 @@ class test_tag : public uct_test {
recv_ctx *user_ctx = ucs_container_of(self, recv_ctx, uct_ctx);
user_ctx->sw_rndv = true;
user_ctx->status = status;
if (flags & UCT_TAG_RECV_CB_INLINE_DATA) {
Copy link
Member

Choose a reason for hiding this comment

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

[minor/imp] can reduce duplication:

static void sw_rndv_completed(uct_tag_context_t *self, uct_tag_t stag,
                              const void *header, unsigned header_length,
                              ucs_status_t status, unsigned flags)
{
    recv_ctx *user_ctx = ucs_container_of(self, recv_ctx, uct_ctx);
    user_ctx->sw_rndv  = true;
    if (flags & UCT_TAG_RECV_CB_INLINE_DATA) {
        memcpy(user_ctx->mbuf->ptr(), header, header_length);
    }
    completed(self, stag, 0, header_length, NULL, status);
}

@yosefe yosefe force-pushed the topic/test-tag-fix-tag-test-to-check branch from 578405d to 99237a7 Compare November 27, 2020 21:59
@dmitrygx
Copy link
Member

/azp run

@dmitrygx
Copy link
Member

bot:pipe:retest

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@yosefe
Copy link
Contributor Author

yosefe commented Nov 28, 2020

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@dmitrygx
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@yosefe
Copy link
Contributor Author

yosefe commented Nov 30, 2020

merging since test failure is unrelated

@yosefe yosefe merged commit 26555a2 into openucx:master Nov 30, 2020
@yosefe yosefe deleted the topic/test-tag-fix-tag-test-to-check branch November 30, 2020 12:37
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.

4 participants