mirror of https://github.com/google/gemma.cpp.git
Fix build issues when tests are enabled
This commit is contained in:
parent
730b6bfc94
commit
ea72575e56
|
|
@ -58,10 +58,10 @@ cc_test(
|
|||
)
|
||||
|
||||
cc_test(
|
||||
name = "matvec_test",
|
||||
name = "gemma_matvec_test",
|
||||
size = "small",
|
||||
timeout = "long",
|
||||
srcs = ["ops/matvec_test.cc"],
|
||||
srcs = ["ops/gemma_matvec_test.cc"],
|
||||
local_defines = ["HWY_IS_TEST"],
|
||||
# for test_suite.
|
||||
tags = ["hwy_ops_test"],
|
||||
|
|
|
|||
|
|
@ -154,7 +154,7 @@ set(GEMMA_TEST_FILES
|
|||
backprop/optimize_test.cc
|
||||
ops/ops_test.cc
|
||||
ops/matmul_test.cc
|
||||
ops/matvec_test.cc
|
||||
ops/gemma_matvec_test.cc
|
||||
evals/gemma_test.cc
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@
|
|||
|
||||
// clang-format off
|
||||
#undef HWY_TARGET_INCLUDE
|
||||
#define HWY_TARGET_INCLUDE "ops/matvec_test.cc" // NOLINT
|
||||
#define HWY_TARGET_INCLUDE "ops/gemma_matvec_test.cc" // NOLINT
|
||||
// clang-format on
|
||||
#include "hwy/foreach_target.h" // IWYU pragma: keep
|
||||
#include "hwy/highway.h"
|
||||
Loading…
Reference in New Issue