-
Notifications
You must be signed in to change notification settings - Fork 79
Fix EnableOptionsGuard usage in test_multidevice_lower_communication. #4641
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Minor renaming |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -65,7 +65,6 @@ class LowerGatherTest | |
| public testing::WithParamInterface<std::tuple<InOutMesh, bool>> {}; | ||
|
|
||
| TEST_P(LowerGatherTest, ) { | ||
| EnableOptionsGuard opt_guard; | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not necessary because NVFuserTest owns an EnableOptionsGuard already. |
||
| const auto& [meshes, enable_host_ir_lowering] = GetParam(); | ||
| const auto& [in_mesh, out_mesh] = meshes; | ||
|
|
||
|
|
@@ -138,7 +137,6 @@ class LowerScatterTest | |
| public testing::WithParamInterface<std::tuple<InOutMesh, bool>> {}; | ||
|
|
||
| TEST_P(LowerScatterTest, ) { | ||
| EnableOptionsGuard opt_guard; | ||
| const auto& [meshes, enable_host_ir_lowering] = GetParam(); | ||
| const auto& [in_mesh, out_mesh] = meshes; | ||
|
|
||
|
|
@@ -189,7 +187,6 @@ class LowerSendRecvTest | |
| public testing::WithParamInterface<std::tuple<InOutMesh, bool>> {}; | ||
|
|
||
| TEST_P(LowerSendRecvTest, ) { | ||
| EnableOptionsGuard opt_guard; | ||
| const auto& [meshes, enable_host_ir_lowering] = GetParam(); | ||
| const auto& [in_mesh, out_mesh] = meshes; | ||
|
|
||
|
|
@@ -255,7 +252,6 @@ void LowerCollectiveTest::SetUp() { | |
| // available. Therefore, we call it after the isBackendAvailable check. | ||
| communicator_->setDefaultBackend(backend_type); | ||
|
|
||
| EnableOptionsGuard enable_options_guard; | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| if (enable_host_ir_lowering) { | ||
| EnableOptionsGuard::getCurOptions().set(EnableOption::HostIrLowering); | ||
| } | ||
|
|
@@ -778,7 +774,8 @@ INSTANTIATE_TEST_SUITE_P( | |
| LowerCollectiveTest, | ||
| ::testing::Combine( | ||
| testing::Values(CommunicatorBackend::kNccl, CommunicatorBackend::kUcc), | ||
| testing::Bool()), | ||
| // Can't do testing::Bool() yet due to #4230 | ||
| testing::Values(false)), | ||
| ([](const testing::TestParamInfo<std::tuple<CommunicatorBackend, bool>>& | ||
| info) -> std::string { | ||
| const auto& [backend_type, enable_host_ir_lowering] = info.param; | ||
|
|
||
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.
Minor renaming