Skip to content

parallelize at file granularity - #85770

Closed
clee2000 wants to merge 6 commits into
masterfrom
csl/parttwo
Closed

clee2000 wants to merge 6 commits into
masterfrom
csl/parttwo

Conversation

@clee2000

@clee2000 clee2000 commented Sep 27, 2022 •

Copy link
Copy Markdown
Contributor

part two of #84961

tests files in parallel at the test file granularity

  • 2 procs at a time
  • number of tests ran changed by <200, possibly due to adding more tests on master between the base commit and head commit of the PR
  • may cause flakiness, but I haven't seen it in my small sample size of this PR

@pytorch-bot

pytorch-bot Bot commented Sep 27, 2022 •

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/85770

Note: Links to docs will display an error until the docs builds have been completed.

❌ 2 Failures

As of commit e845d8d:

The following jobs have failed:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@pytorch-bot pytorch-bot Bot added the topic: not user facing topic category label Sep 27, 2022
@clee2000 clee2000 added ciflow/trunk Trigger trunk jobs on your pull request ciflow/periodic Trigger jobs ran periodically on master (periodic.yml) on the PR labels Sep 28, 2022
@clee2000 clee2000 changed the title more parallelization parallelize at file granularity Sep 29, 2022
@clee2000
clee2000 marked this pull request as ready for review September 29, 2022 19:24
@clee2000
clee2000 requested a review from a team as a code owner September 29, 2022 19:24
Comment thread test/run_test.py Resolved
Comment thread test/run_test.py Outdated

selected_tests_parallel = [x for x in selected_tests if not must_serial(x)]
selected_tests_serial = [x for x in selected_tests if x not in selected_tests_parallel]
print_to_stderr("parallel tests:\n {}".format("\n ".join(selected_tests_parallel)))

@huydhn huydhn Sep 29, 2022 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Just a note: this might be a bit misleading to read given what we discussed earlier:

  • parallel tests means that these test files can be run in parallel
  • serial tests means that these test files needs to run sequentially, but they could use multiple shards to run multiple process "in parallel", i.e. a custom handler like test_ops

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

added a comment, also changed the print statements slightly but idk if its much clearer

@clee2000
clee2000 force-pushed the csl/parttwo branch 2 times, most recently from 3e5fabc to 2b714c5 Compare September 30, 2022 21:02
@clee2000

clee2000 commented Oct 3, 2022

Copy link
Copy Markdown
Contributor Author

@pytorchbot merge -f "errors were already present on master"

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

@pytorchbot successfully started a merge job. Check the current status here.
The merge job was triggered with the force (-f) flag. This means your change will be merged immediately, bypassing any CI checks (ETA: 1-5 minutes). If this is not the intended behavior, feel free to use some of the other merge options in the wiki.
Please reach out to the PyTorch DevX Team with feedback or questions!

@jeffdaily jeffdaily mentioned this pull request Jan 12, 2023
@github-actions
github-actions Bot deleted the csl/parttwo branch April 3, 2024 01:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/periodic Trigger jobs ran periodically on master (periodic.yml) on the PR ciflow/trunk Trigger trunk jobs on your pull request cla signed Merged topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants