-
Notifications
You must be signed in to change notification settings - Fork 77
Remove all unset(EnableOption::InferContiguity) #5881
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
Conversation
|
!test |
|
Review updated until commit 3493086 Description
|
| Relevant files | |||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Tests | 9 files
|
PR Reviewer Guide
Here are some key observations to aid the review process:
| 🧪 PR contains tests |
| 🔒 No security concerns identified |
| ⚡ Recommended focus areas for review |
Base class behavior change
|
Test failures
-
(Medium, 1)
Thunder nvFuser GPT network scalar mismatch in thunder.tests.test_networksTest Name A100 Source thunder.tests.test_networks.test_nanogpt_complete_autograd_nvfuser_cuda_thunder.dtypes.float32 ❌
Greptile OverviewGreptile SummaryThis PR completes the migration to enable Key Changes:
Context: This is a clean-up PR that removes technical debt after the underlying issues have been resolved. Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant TestRunner
participant NVFuserTest
participant EnableOptionsGuard
participant TestCase
participant FusionKernelRuntime
TestRunner->>NVFuserTest: Create test instance
NVFuserTest->>EnableOptionsGuard: Constructor: set(IdModel)
NVFuserTest->>EnableOptionsGuard: Constructor: set(InferContiguity)
Note over NVFuserTest,EnableOptionsGuard: Moved from SetUp() to constructor in utils.cpp
TestRunner->>TestCase: Run test (e.g., AliasTest)
Note over TestCase: Previously: unset(InferContiguity) here
Note over TestCase: Now: Uses default enabled InferContiguity
TestCase->>FusionKernelRuntime: Execute fusion
FusionKernelRuntime->>EnableOptionsGuard: Check isOptionEnabled(InferContiguity)
EnableOptionsGuard-->>FusionKernelRuntime: true (now enabled)
FusionKernelRuntime->>FusionKernelRuntime: inferOutputMetaTensor() with contiguity inference
Note over FusionKernelRuntime: Uses meta device tensors for ExprEval segments
FusionKernelRuntime-->>TestCase: Returns result with correct contiguity
TestCase-->>TestRunner: Test passes
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No files reviewed, no comments
wujingyue
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also address #5772 (comment) and #5772 (comment)? These extra enablements can be avoided by calling NVFuserTest::SetUp or preferred by moving all enablement to the constructor.
|
!test |
Sorry for missing it. Should be fixed now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No files reviewed, no comments
Thanks a lot! |
These tests are actually passing