Skip to content

Commit

Permalink
gpu: init device_attr in MPIR_GPU_query_pointer_attr
Browse files Browse the repository at this point in the history
Fix uninitialized variables in MPIDI_OFI_send()
  • Loading branch information
dycz0fx committed Mar 19, 2024
1 parent 84501db commit 119051c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/include/mpir_gpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ MPL_STATIC_INLINE_PREFIX int MPIR_GPU_query_pointer_attr(const void *ptr, MPL_po
} else {
attr->type = MPL_GPU_POINTER_UNREGISTERED_HOST;
attr->device = MPL_GPU_DEVICE_INVALID;
attr->device_attr = 0;
}

fn_exit:
Expand Down

0 comments on commit 119051c

Please sign in to comment.