-
Notifications
You must be signed in to change notification settings - Fork 102
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
TL/SHARP: SHARP OOB fixes #746
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -300,6 +300,17 @@ ucc_status_t ucc_tl_sharp_context_init(ucc_tl_sharp_context_t *sharp_ctx, | |
init_spec.config = sharp_coll_default_config; | ||
init_spec.config.user_progress_num_polls = sharp_ctx->cfg.uprogress_num_polls; | ||
init_spec.config.ib_dev_list = sharp_ctx->cfg.dev_list; | ||
#if HAVE_DECL_SHARP_COLL_HIDE_ERRORS | ||
if (lib->super.super.log_component.log_level < UCC_LOG_LEVEL_DEBUG) { | ||
init_spec.config.flags |= SHARP_COLL_HIDE_ERRORS; | ||
} | ||
#endif | ||
#if HAVE_DECL_SHARP_COLL_DISABLE_LAZY_GROUP_RESOURCE_ALLOC | ||
if(!sharp_ctx->cfg.enable_lazy_group_alloc) { | ||
init_spec.config.flags |= SHARP_COLL_DISABLE_LAZY_GROUP_RESOURCE_ALLOC; | ||
} | ||
#endif | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. print warning if disabling lazy group alloc is not supported by sharp and user has changed default value There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. maybe we can expose the user option also only when flag is there |
||
|
||
init_spec.job_id = ((getpid() ^ pthread_self()) | ||
^ rand_r(&sharp_ctx->cfg.rand_seed)); | ||
init_spec.enable_thread_support = | ||
|
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.
how device will be selected for previous SHARP releases?
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 was sharplib user's responsibility to specify the device.. there is no default device selection
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.
right, this is my question, if one builds UCC 1.2 with SHARP 3.0 how it will work without providing device?
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.
the default selection was fixed in libsharp in the last HPCX release i. it will fail if we use older than that. that should be ok