Skip to content

Commit d9891ae

Browse files
authored
Merge pull request #9374 from brminich/ucp/generic_cuda_rndv_fix_1.15.x
UCP/RNDV: Do not use recv ppln with generic send buf - v1.15.x
2 parents 9b3aeaa + 9d41061 commit d9891ae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ucp/rndv/rndv.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,15 +122,15 @@ ucp_rndv_is_put_pipeline_needed(uintptr_t remote_address, size_t length,
122122
const ucp_ep_rndv_zcopy_config_t *put_zcopy,
123123
int is_get_zcopy_failed)
124124
{
125-
if ((remote_address != 0) &&
125+
if ((remote_address == 0) ||
126126
(ucp_rkey_packed_mem_type(rkey_buf) == UCS_MEMORY_TYPE_HOST)) {
127127
return 0;
128128
}
129129

130130
/* Fallback to PUT pipeline if: */
131131
return /* Remote mem type is non-HOST memory OR can't do GET ZCOPY */
132-
((remote_address == 0) || (get_zcopy->max == 0) ||
133-
(length < get_zcopy->min) || is_get_zcopy_failed) &&
132+
((get_zcopy->max == 0) || (length < get_zcopy->min) ||
133+
is_get_zcopy_failed) &&
134134
/* AND can do PUT assuming that configurations are symmetric */
135135
((put_zcopy->max != 0) && (length >= put_zcopy->min));
136136
}

0 commit comments

Comments
 (0)