Skip to content

Fix Windows cpu_profiling_allocator_test same pointer check flakiness#92264

Closed
huydhn wants to merge 2 commits intopytorch:masterfrom
huydhn:fix-windows-libtorch-flakiness
Closed

Fix Windows cpu_profiling_allocator_test same pointer check flakiness#92264
huydhn wants to merge 2 commits intopytorch:masterfrom
huydhn:fix-windows-libtorch-flakiness

Conversation

@huydhn
Copy link
Copy Markdown
Contributor

@huydhn huydhn commented Jan 16, 2023

This is a small follow-up from #91727 to fix the flaky same pointer check on Windows https://hud.pytorch.org/failure/%5B%20%20FAILED%20%20%5D%20CPUAllocationPlanTest.with_profiling_alloc. AFAICT, keeping the same memory pointer is not a guarantee in non-mobile memory allocator (or may be this is Windows-specific behavior).

The test might be flaky when the tensor is copied to a different memory location with the default allocator. This's ok as long as the values remain equal.

@huydhn huydhn added ciflow/trunk Trigger trunk jobs on your pull request test-config/functorch Use this label to run only functorch tests test-config/default labels Jan 16, 2023
@huydhn huydhn requested review from a team, ZainRizvi and clee2000 January 16, 2023 22:29
@huydhn huydhn self-assigned this Jan 16, 2023
@pytorch-bot
Copy link
Copy Markdown

pytorch-bot bot commented Jan 16, 2023

🔗 Helpful Links

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

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

✅ No Failures

As of commit f4a9f65:
💚 Looks good so far! There are no failures yet. 💚

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 Jan 16, 2023
@huydhn huydhn requested a review from malfet January 17, 2023 00:13
@huydhn
Copy link
Copy Markdown
Contributor Author

huydhn commented Jan 17, 2023

@pytorchbot merge

@pytorchmergebot
Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk Trigger trunk jobs on your pull request Merged test-config/default test-config/functorch Use this label to run only functorch tests topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants