Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion tests/cpp/test_allocation_domain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,13 @@

namespace nvfuser {

using AllocationDomainTest = NVFuserTest;
class AllocationDomainTest : public NVFuserTest {
protected:
void SetUp() override {
NVFuserTest::SetUp();
EnableOptionsGuard::getCurOptions().set(EnableOption::IdModel, {"all"});
}
};

using ::testing::ElementsAre;

Expand Down
8 changes: 7 additions & 1 deletion tests/cpp/test_allocation_order_inference.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,13 @@ namespace nvfuser {

using testing::ElementsAre;

using AllocationOrderInferenceTest = NVFuserTest;
class AllocationOrderInferenceTest : public NVFuserTest {
protected:
void SetUp() override {
NVFuserTest::SetUp();
EnableOptionsGuard::getCurOptions().set(EnableOption::IdModel, {"all"});
}
};

std::vector<int64_t> getAllocationOrder(TensorView* tv) {
std::optional<std::vector<int64_t>> permutation =
Expand Down
8 changes: 7 additions & 1 deletion tests/cpp/test_inlining.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,13 @@

namespace nvfuser {

using InliningTest = NVFuserTest;
class InliningTest : public NVFuserTest {
protected:
void SetUp() override {
NVFuserTest::SetUp();
EnableOptionsGuard::getCurOptions().set(EnableOption::IdModel, {"all"});
}
};

TEST_F(InliningTest, InliningMismatchedDims1) {
Fusion fusion;
Expand Down
3 changes: 2 additions & 1 deletion tests/cpp/test_move_pad.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ using testing::UnorderedElementsAre;

class MovePadTest : public NVFuserTest {
protected:
MovePadTest() {
void SetUp() override {
DisableOptionsGuard::getCurOptions().set(DisableOption::ResizeScheduler);
EnableOptionsGuard::getCurOptions().set(EnableOption::IdModel, {"all"});
}
Comment on lines +23 to 26
Copy link
Contributor

Choose a reason for hiding this comment

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

syntax: missing NVFuserTest::SetUp() call at the beginning

Suggested change
void SetUp() override {
DisableOptionsGuard::getCurOptions().set(DisableOption::ResizeScheduler);
EnableOptionsGuard::getCurOptions().set(EnableOption::IdModel, {"all"});
}
void SetUp() override {
NVFuserTest::SetUp();
DisableOptionsGuard::getCurOptions().set(DisableOption::ResizeScheduler);
EnableOptionsGuard::getCurOptions().set(EnableOption::IdModel, {"all"});
}

};

Expand Down
8 changes: 7 additions & 1 deletion tests/cpp/test_move_repeat_forward.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,13 @@

namespace nvfuser {

using MoveRepeatForwardTest = NVFuserTest;
class MoveRepeatForwardTest : public NVFuserTest {
protected:
void SetUp() override {
NVFuserTest::SetUp();
EnableOptionsGuard::getCurOptions().set(EnableOption::IdModel, {"all"});
}
};

TEST_F(MoveRepeatForwardTest, Simple) {
auto fusion_ptr = std::make_unique<Fusion>();
Expand Down
8 changes: 7 additions & 1 deletion tests/cpp/test_move_split_cat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,13 @@ namespace nvfuser {

using testing::Contains;

using MoveSplitCatTest = NVFuserTest;
class MoveSplitCatTest : public NVFuserTest {
protected:
void SetUp() override {
NVFuserTest::SetUp();
EnableOptionsGuard::getCurOptions().set(EnableOption::IdModel, {"all"});
}
};

TEST_F(MoveSplitCatTest, Cancellable_SplitImmediatelyFollowedByCat) {
auto fusion = std::make_unique<Fusion>();
Expand Down
8 changes: 7 additions & 1 deletion tests/cpp/test_remove_bcast_squeeze.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,13 @@

namespace nvfuser {

using RemoveBcastSqueezeTest = NVFuserTest;
class RemoveBcastSqueezeTest : public NVFuserTest {
protected:
void SetUp() override {
NVFuserTest::SetUp();
EnableOptionsGuard::getCurOptions().set(EnableOption::IdModel, {"all"});
}
};

namespace {

Expand Down
8 changes: 7 additions & 1 deletion tests/cpp/test_replay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,13 @@ using testing::Optional;
using testing::Property;
using testing::SizeIs;

using ReplayTest = NVFuserTest;
class ReplayTest : public NVFuserTest {
protected:
void SetUp() override {
NVFuserTest::SetUp();
EnableOptionsGuard::getCurOptions().set(EnableOption::IdModel, {"all"});
}
};

TEST_F(ReplayTest, HorizontallyMergeReshapeAndPermute) {
auto fusion = std::make_unique<Fusion>();
Expand Down