Repository navigation
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/84961
Note: Links to docs will display an error until the docs builds have been completed. ❌ 6 FailuresAs of commit f0d5a30: The following jobs have failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
| auto pivots_ = pivots.to(kLong); | ||
| auto pivots_data = pivots_.data_ptr<int64_t>(); | ||
|
|
||
| c10::cuda::device_synchronize(); |
There was a problem hiding this comment.
This change requires a comment.
|
|
||
| // Constructor | ||
| explicit MAGMAQueue(int64_t device_id) { | ||
| c10::cuda::device_synchronize(); |
There was a problem hiding this comment.
If the goal is to affect LU tests then this synchronize shall be localized to LU function only, here's the place where MAGMAQueue is created:
janeyx99
left a comment
There was a problem hiding this comment.
Is there a document/description somewhere of the devx side effects of this change?
| os.environ["PARALLEL_TESTING"] = "1" | ||
| pool = mp.Pool(num_procs) | ||
| for i in range(num_procs): | ||
| log_fd, file_path = tempfile.mkstemp(dir=REPO_ROOT / "test" / "test-reports", |
There was a problem hiding this comment.
I think creating the temp file here looks hard to maintain. Do you think it's better to do this internally and transparently inside run_test? After the test, you can just glob all files under REPO_ROOT/test/test-reports as they are already named correctly with the test module prefix. So there is no need to pass the temp filename and file descriptor around. You can also just remove the whole test-reports directory after
There was a problem hiding this comment.
moved file creation + printing to inside of run_test
| for return_code in return_codes: | ||
| if return_code.get() != 0: | ||
| return return_code.get() | ||
| return_code = run_test(test_module, test_directory, copy.deepcopy(options), |
There was a problem hiding this comment.
Umm, what does the second run_test do here?
There was a problem hiding this comment.
it runs linalg_cholesky
There was a problem hiding this comment.
Ohhh, I see. It all makes sense now. May be a comment on the code will help the next people looking at it
|
@pytorchbot merge |
|
@pytorchbot successfully started a merge job. Check the current status here. |
|
Hey @clee2000. |
|
@pytorchbot revert -m "makes test_forward_ad_nn_functional_max_unpool2d_cuda_float32 flakily unexpectedly pass" -c weird |
|
@pytorchbot successfully started a revert job. Check the current status here. |
|
@clee2000 your PR has been successfully reverted. |
This reverts commit 8107666. Reverted #84961 on behalf of https://github.com/clee2000 due to makes test_forward_ad_nn_functional_max_unpool2d_cuda_float32 flakily unexpectedly pass
part one of splitting up #84961 into (probably 2) parts contains * logging to file * testing test_ops in parallel Pull Request resolved: #85528 Approved by: https://github.com/huydhn
This extends #84961 to support functorch tests with pytest-shard. Pull Request resolved: #85321 Approved by: https://github.com/samdow, https://github.com/clee2000
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 Pull Request resolved: #85770 Approved by: https://github.com/huydhn
run tests in parallel at the test file granularity runs 3 files in parallel using multiprocessing pool, output goes to a file, which is then printed when the test finishes. Some tests cannot be run in parallel (usually due to lacking memory), so we run those after. Sharding is changed to attempt to mask large files with other large files/run them on the same shard. test_ops* gets a custom handler to run it because it is simply too big (2hrs on windows) and linalg_cholesky fails (I would really like a solution to this if possible, but until then we use the custom handler). reduces cuda tests by a lot, reduces total windows test time by ~1hr Ref. #82894 Pull Request resolved: #84961 Approved by: https://github.com/huydhn
This reverts commit 8107666. Reverted #84961 on behalf of https://github.com/clee2000 due to makes test_forward_ad_nn_functional_max_unpool2d_cuda_float32 flakily unexpectedly pass
part one of splitting up #84961 into (probably 2) parts contains * logging to file * testing test_ops in parallel Pull Request resolved: #85528 Approved by: https://github.com/huydhn
This extends #84961 to support functorch tests with pytest-shard. Pull Request resolved: #85321 Approved by: https://github.com/samdow, https://github.com/clee2000
run tests in parallel at the test file granularity
runs 3 files in parallel using multiprocessing pool, output goes to a file, which is then printed when the test finishes. Some tests cannot be run in parallel (usually due to lacking memory), so we run those after. Sharding is changed to attempt to mask large files with other large files/run them on the same shard.
test_ops* gets a custom handler to run it because it is simply too big (2hrs on windows) and linalg_cholesky fails (I would really like a solution to this if possible, but until then we use the custom handler).
reduces cuda tests by a lot, reduces total windows test time by ~1hr
Ref. #82894