Skip to content

Commit

Permalink
UTIL: Set rcache alignment to UCS_PGT_ADDR_ALIGN (#996)
Browse files Browse the repository at this point in the history
  • Loading branch information
x41lakazam authored Aug 20, 2024
1 parent 985947a commit 777df69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/tl/mlx5/tl_mlx5_team.c
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ ucc_status_t ucc_tl_mlx5_team_get_scores(ucc_base_team_t * tl_team,
team_info.num_mem_types = 2;
team_info.supported_mem_types = mt;
team_info.supported_colls =
(UCC_COLL_TYPE_ALLTOALL * (team->a2a_state == TL_MLX5_TEAM_STATE_ALLTOALL_READY) * 0) |
(UCC_COLL_TYPE_ALLTOALL * (team->a2a_state == TL_MLX5_TEAM_STATE_ALLTOALL_READY)) |
UCC_COLL_TYPE_BCAST * (team->mcast_state == TL_MLX5_TEAM_STATE_MCAST_READY);
team_info.size = UCC_TL_TEAM_SIZE(team);

Expand Down
2 changes: 1 addition & 1 deletion src/utils/ucc_rcache.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ ucc_rcache_get(ucc_rcache_t *rcache, void *address, size_t length,
ucs_status_t status;

#ifdef UCS_HAVE_RCACHE_REGION_ALIGNMENT
status = ucs_rcache_get(rcache, address, length, ucc_get_page_size(),
status = ucs_rcache_get(rcache, address, length, UCS_PGT_ADDR_ALIGN,
PROT_READ | PROT_WRITE, arg, region_p);
#else
status = ucs_rcache_get(rcache, address, length,
Expand Down

0 comments on commit 777df69

Please sign in to comment.