Skip to content

Commit 78df552

Browse files
committed
tests : ifdef
1 parent d073e4f commit 78df552

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/test-backend-ops.cpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1726,6 +1726,7 @@ static bool test_backend(ggml_backend_t backend, test_mode mode, const char * op
17261726
test_cases.emplace_back(new test_pad());
17271727
test_cases.emplace_back(new test_leaky_relu());
17281728

1729+
#if 0
17291730
for (int hs : { 64, 80, 96, 112, 128, 256, }) {
17301731
for (int nh : { 32, }) {
17311732
for (int kv : { 512, 1024, 2048, 4096, }) {
@@ -1736,6 +1737,18 @@ static bool test_backend(ggml_backend_t backend, test_mode mode, const char * op
17361737
}
17371738
}
17381739
}
1740+
#else
1741+
for (int hs : { 128, }) {
1742+
for (int nh : { 32, }) {
1743+
for (int kv : { 512, 1024, }) {
1744+
for (int nb : { 1, 2, 4, 8, 512 }) {
1745+
test_cases.emplace_back(new test_attn (hs, nh, kv, nb));
1746+
test_cases.emplace_back(new test_flash_attn_ext(hs, nh, kv, nb));
1747+
}
1748+
}
1749+
}
1750+
}
1751+
#endif
17391752

17401753
#if !defined(__SANITIZE_THREAD__)
17411754
// FIXME: these tests use too much memory with thread sanitizer

0 commit comments

Comments
 (0)