Skip to content
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

Add a context-level query capability. #621

Merged
merged 1 commit into from
Feb 1, 2024

Conversation

bosilca
Copy link
Contributor

@bosilca bosilca commented Jan 26, 2024

Augment the PaRSEC context API with query capabilities, allowing users to find the number of processes, cores and other information from a PaRSEC context.

@bosilca bosilca requested a review from a team as a code owner January 26, 2024 00:31
Copy link
Contributor

@devreal devreal left a comment

Choose a reason for hiding this comment

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

I like this, nice and concise. Just a few comments.

{
parsec_device_module_t* dev;
va_list args;
va_start(args, cmd);
Copy link
Contributor

Choose a reason for hiding this comment

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

Missing call to va_end

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There are too many return points to place an va_end. Plus everything related to the va_list is on the stack, so returning should clean up everything.

parsec/parsec.c Show resolved Hide resolved
parsec/runtime.h Show resolved Hide resolved
@bosilca
Copy link
Contributor Author

bosilca commented Jan 26, 2024

Added documentation for the vararg, and the different commands.

parsec/parsec.c Outdated Show resolved Hide resolved
Augment the PaRSEC context API with query capabilities, allowing users
to find the number of processes, cores and other information from a
PaRSEC context.

Signed-off-by: George Bosilca <bosilca@icl.utk.edu>
@abouteiller abouteiller merged commit b0e38dd into ICLDisco:master Feb 1, 2024
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants