Skip to content

Commit ac50d46

Browse files
committed
opencl: add some tests to cover the path
1 parent 057e67c commit ac50d46

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
@@ -6354,6 +6354,19 @@ static std::vector<std::unique_ptr<test_case>> make_test_cases_eval() {
63546354
}
63556355
}
63566356

6357+
#if 0
6358+
{
6359+
// Test paths in OpenCL
6360+
std::vector<int> ns = {32, 64, 128, 256, 512, 1024, 4096};
6361+
std::vector<int> ks = {896, 1536, 4096};
6362+
for (auto n : ns) {
6363+
for (auto k : ks) {
6364+
test_cases.emplace_back(new test_mul_mat(GGML_TYPE_Q8_0, GGML_TYPE_F32, 1024, n, k, {1, 1}, {1, 1}));
6365+
}
6366+
}
6367+
}
6368+
#endif
6369+
63576370
#if 1
63586371
for (ggml_type type_a : base_types) {
63596372
for (ggml_type type_b : {GGML_TYPE_F32, GGML_TYPE_F16}) {

0 commit comments

Comments
 (0)