Skip to content

Commit 4a27593

Browse files
committed
ignore test if flag is not enabled
1 parent 69d922f commit 4a27593

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/gpu/fuse_mlir.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1849,12 +1849,11 @@ TEST_CASE(dot_add_dot_abc)
18491849
auto device_name = migraphx::gpu::get_device_name();
18501850
bool is_navi =
18511851
migraphx::starts_with(device_name, "gfx11") or migraphx::starts_with(device_name, "gfx12");
1852-
if(is_navi){
1852+
// fusion should not happen if the device is navi or the fusion flag is disabled
1853+
if(is_navi or not migraphx::enabled(MIGRAPHX_ENABLE_MLIR_GEG_FUSION{}))
18531854
EXPECT(program_str.find("geg") == std::string::npos);
1854-
}
1855-
else {
1855+
else
18561856
EXPECT(program_str.find("geg") != std::string::npos);
1857-
}
18581857
}
18591858

18601859
TEST_CASE(dot_add_dot_cab)

0 commit comments

Comments
 (0)