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

pool: Add a unit test for the old pool API #368

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

epmikida
Copy link

This API is still used by some users according to issue so we want to make sure it is still tested.
See #355.

This API is still used by some users according to issue pmodels#355 so we
want to make sure it is still tested.

Change-Id: I29b9c3726a738d78936028249f9c3f96e7216416
@epmikida
Copy link
Author

The added test passes, however there are some warnings cause I am currently using the new API for creating the pool def struct. I'm not sure how to create the pool def struct using the old API.

}
}

ABT_pool create_pool(ABT_pool_config config)
Copy link
Collaborator

Choose a reason for hiding this comment

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

The following must be updated (previously, function pointers are directly set to ABT_pool_def). See https://github.com/pmodels/argobots/blob/v1.1/examples/scheduling/sched_and_pool_user.c#L277-L320

Note that ABT_pool_user_def == ABT_pool_def * for backward compatibility (see #354).

@shintaro-iwasaki
Copy link
Collaborator

@epmikida Thank you for your contribution! Please use the old API to check the old pool behavior. The following is an example (note: the latest example uses the new API): https://github.com/pmodels/argobots/blob/v1.1/examples/scheduling/sched_and_pool_user.c

Please feel free to ask me any questions.

@shintaro-iwasaki
Copy link
Collaborator

Note: I relaxed the GitHub Action restriction, so the basic CI checks should run automatically when you push/rebase commits to your local branch registered to this PR.

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.

2 participants