Skip to content

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

Merged
yosefe merged 1 commit into
openucx:masterfrom
yosefe:topic/test-tag-fix-tag-test-to-check
Nov 30, 2020
Merged

yosefe merged 1 commit into
openucx:masterfrom
yosefe:topic/test-tag-fix-tag-test-to-check

Conversation

@yosefe

@yosefe yosefe commented Nov 27, 2020

Copy link
Copy Markdown
Member

Why

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

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
Copy Markdown
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
Copy Markdown
Member

/azp run

@dmitrygx

Copy link
Copy Markdown
Member

bot:pipe:retest

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@yosefe

yosefe commented Nov 28, 2020

Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@dmitrygx

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@yosefe

yosefe commented Nov 30, 2020

Copy link
Copy Markdown
Member Author

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