-
Notifications
You must be signed in to change notification settings - Fork 429
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UCT/GGA: rkey resolution for many MDs #10236
base: master
Are you sure you want to change the base?
UCT/GGA: rkey resolution for many MDs #10236
Conversation
fab25db
to
c86b266
Compare
/azp run |
Azure Pipelines successfully started running 4 pipeline(s). |
src/uct/ib/mlx5/gga/gga_mlx5.c
Outdated
md_attr->rkey_packed_size = md_attr->exported_mkey_packed_size; | ||
return UCS_OK; | ||
} | ||
static pthread_mutex_t uct_gga_mlx5_rkeys_locker = PTHREAD_MUTEX_INITIALIZER; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe use "_lock" or "_mutex" to conform with the codebase
Maybe store it in the component uct_gga_component?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe store it in the component uct_gga_component?
I also thought about it, but don't found much benefit, just more code related to new type/struct
|
||
*rkey_p = (uintptr_t)rkey_handle; | ||
*handle_p = NULL; | ||
return UCS_OK; | ||
} | ||
|
||
static ucs_status_t | ||
uct_gga_mlx5_md_put_rkey(uct_gga_mlx5_md_t *md, | ||
const uct_gga_mlx5_rkey_hash_key_t key, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor: since key is primitive const
is redundant
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's more for readability and clean API + uct_gga_mlx5_rkey_hash_key_t
might be changed in future, so this place won't require changes
What
rkey resolution for many MDs in GGA transport
Why ?
#9993 (comment)
How ?