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
  • Loading branch information
dycz0fx committed Oct 27, 2023
1 parent 1f25b34 commit 84a1eb0
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 84a1eb0

Please sign in to comment.