Skip to content

Commit 946ecec

Browse files
committed
revert test-backend-ops changes
1 parent 3ceb97d commit 946ecec

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

tests/test-backend-ops.cpp

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4345,21 +4345,6 @@ static std::vector<std::unique_ptr<test_case>> make_test_cases_perf() {
43454345
}
43464346
}
43474347

4348-
#if 0
4349-
for (int bs : {1, 64}) {
4350-
for (ggml_type type_a : {GGML_TYPE_Q4_0}) {
4351-
for (ggml_type type_b : {GGML_TYPE_F32}) {
4352-
int n_experts = 256;
4353-
int n_used = 8;
4354-
int n_embd = 7168;
4355-
int n_ff = 2048;
4356-
test_cases.emplace_back(new test_mul_mat_id(type_a, type_b, n_experts, n_used, true, n_embd, bs, n_ff));
4357-
//test_cases.emplace_back(new test_mul_mat(type_a, type_b, n_embd, bs, n_ff, {1, 1}, {1, 1}));
4358-
}
4359-
}
4360-
}
4361-
#endif
4362-
43634348
for (int K : {3, 5}) {
43644349
for (int IC : {256, 2560}) {
43654350
for (int IW_IH : {32, 64, 256}) {
@@ -4493,7 +4478,7 @@ int main(int argc, char ** argv) {
44934478
auto ggml_backend_set_n_threads_fn = (ggml_backend_set_n_threads_t) ggml_backend_reg_get_proc_address(reg, "ggml_backend_set_n_threads");
44944479
if (ggml_backend_set_n_threads_fn) {
44954480
// TODO: better value for n_threads
4496-
ggml_backend_set_n_threads_fn(backend, std::thread::hardware_concurrency() / 2);
4481+
ggml_backend_set_n_threads_fn(backend, std::thread::hardware_concurrency());
44974482
}
44984483

44994484
printf(" Device description: %s\n", ggml_backend_dev_description(dev));

0 commit comments

Comments
 (0)