Skip to content

Commit

Permalink
Merge pull request #7931 from dmitrygx/topic/ucp/worker_addr_am_only_…
Browse files Browse the repository at this point in the history
…v1_12

UCP/WIREUP: Fix parsing AM_ONLY flag from the header of a worker address [v1.12.x]
  • Loading branch information
yosefe authored Feb 12, 2022
2 parents 47f786e + ecbcb40 commit a6a787d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
##
#

## 1.12.1-rc2 (TBD)
### Bugfixes
* Fixed parsing header flags of worker address

## 1.12.1-rc1 (February 9, 2022)
### Bugfixes
* Fixed memory hooks for Cuda 11.5
Expand Down
6 changes: 4 additions & 2 deletions src/ucp/wireup/address.c
Original file line number Diff line number Diff line change
Expand Up @@ -1088,9 +1088,11 @@ uint64_t ucp_address_get_client_id(const void *address)

uint8_t ucp_address_is_am_only(const void *address)
{
const uint8_t address_header = *(const uint8_t *)address;
uint8_t addr_flags;
ucp_object_version_t addr_version;

return address_header & UCP_ADDRESS_HEADER_FLAG_AM_ONLY;
ucp_address_unpack_header(address, &addr_version, &addr_flags);
return addr_flags & UCP_ADDRESS_HEADER_FLAG_AM_ONLY;
}

static ucs_status_t
Expand Down

0 comments on commit a6a787d

Please sign in to comment.