Skip to content

Conversation

@wckzhang
Copy link
Contributor

Signed-off-by: William Zhang wilzhang@amazon.com

Signed-off-by: William Zhang <wilzhang@amazon.com>
@jsquyres
Copy link
Member

Could you provide a bit more information in the commit message about what this is? E.g., what's "dtoh"?

OPAL_THREAD_LOCK(&pml_ob1_accelerator_dtoh_lock);
if (accelerator_event_dtoh_num_used == accelerator_event_max) {
opal_output_verbose(1, mca_pml_ob1_output, "Out of event handles. Max: %d. Suggested to rerun with new max with mca mpi_common_accelerator_event_max %d.",
accelerator_event_max, accelerator_event_max + 100);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing unlock before the return here

int result;

if (0 == strcmp(accelerator_base_selected_component.base_version.mca_component_name, "null")) {
return 0;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should that be OPAL_SUCCESS?

int result;

if (0 == strcmp(accelerator_base_selected_component.base_version.mca_component_name, "null")) {
return 0;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shoulld that be OPAL_SUCCESS? I wonder if the return values should be OMPI_* variants in this component...

"Accelerator event query returned OPAL_ERR_RESOURCE_BUSY");
*frag = NULL;
OPAL_THREAD_UNLOCK(&pml_ob1_accelerator_dtoh_lock);
return 0;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does zero mean here? OPAL_SUCCESS? See also below

@bosilca
Copy link
Member

bosilca commented Sep 27, 2022

Could you provide a bit more information in the commit message about what this is? E.g., what's "dtoh"?

It's about the direction of the operation, from the source to the destination location. Thus, dtoh indicates a "device to host" transfer while htod indicates the opposite, aka. "host to device".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants