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

Fix for control replication violation in test #1005

Merged
merged 5 commits into from
Aug 2, 2023

Conversation

ipdemes
Copy link
Contributor

@ipdemes ipdemes commented Jul 25, 2023

Several tests used python's random which will generate different values on a different Legion shards. This violates control replication requirements.

@ipdemes ipdemes requested a review from manopapad July 25, 2023 03:34
@@ -17,6 +17,8 @@
from typing import NoReturn

BOILERPLATE = [
Copy link
Contributor

Choose a reason for hiding this comment

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

This code will need to be present at the bottom of every test, otherwise pre-commit checks will fail.

Copy link
Contributor

Choose a reason for hiding this comment

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

Actually let's just remove this for now. I think we're going to end up seeding np.random and python random automatically on import legate.

@ipdemes ipdemes added the category:bug-fix PR is a bug fix and will be classified as such in release notes label Jul 25, 2023
@ipdemes ipdemes merged commit d54a3dd into nv-legate:branch-23.09 Aug 2, 2023
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:bug-fix PR is a bug fix and will be classified as such in release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants