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_outer_reduction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,13 @@

namespace nvfuser {

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

using namespace at::indexing;

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

using testing::Contains;
using testing::UnorderedElementsAre;
using PersistentBufferTest = NVFuserTest;

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

TEST_F(PersistentBufferTest, FusionPersistentBufferCalculation1_CUDA) {
Fusion fusion;
Expand Down
8 changes: 7 additions & 1 deletion tests/cpp/test_reduction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,13 @@ void validateNoParallelBroadcastExist(kir::Kernel* kernel) {

} // namespace

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

TEST_F(ReductionTest, GridAllreduce1) {
const int nx = 999;
Expand Down
8 changes: 7 additions & 1 deletion tests/cpp/test_reduction_pointwise.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,13 @@
#include <tests/cpp/validator.h>
namespace nvfuser {

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

// inner reduction + non-broadcast epilogue, can't be fused
// outer reduction + non-broadcast epilogue, can be fused
Expand Down
8 changes: 7 additions & 1 deletion tests/cpp/test_serial_gridreduce.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,13 @@

namespace nvfuser {

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

TEST_F(SerialGridReductionTest, Scheduling) {
for (bool serial : {true, false}) {
Expand Down
8 changes: 7 additions & 1 deletion tests/cpp/test_welford.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,13 @@

namespace nvfuser {

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

TEST_F(WelfordTest, SerialWelford) {
int x = 128, y = 64, z = 64;
Expand Down