@@ -876,8 +876,8 @@ static std::vector<cmd_params_instance> get_cmd_params_instances(const cmd_param
876
876
struct test {
877
877
static const std::string build_commit;
878
878
static const int build_number;
879
- static const std::string cpu_info;
880
- static const std::string gpu_info;
879
+ const std::string cpu_info;
880
+ const std::string gpu_info;
881
881
std::string model_filename;
882
882
std::string model_type;
883
883
uint64_t model_size;
@@ -903,7 +903,10 @@ struct test {
903
903
std::string test_time;
904
904
std::vector<uint64_t > samples_ns;
905
905
906
- test (const cmd_params_instance & inst, const llama_model * lmodel, const llama_context * ctx) {
906
+ test (const cmd_params_instance & inst, const llama_model * lmodel, const llama_context * ctx) :
907
+ cpu_info (get_cpu_info()),
908
+ gpu_info (get_gpu_info()) {
909
+
907
910
model_filename = inst.model ;
908
911
char buf[128 ];
909
912
llama_model_desc (lmodel, buf, sizeof (buf));
@@ -1058,8 +1061,6 @@ struct test {
1058
1061
1059
1062
const std::string test::build_commit = LLAMA_COMMIT;
1060
1063
const int test::build_number = LLAMA_BUILD_NUMBER;
1061
- const std::string test::cpu_info = get_cpu_info();
1062
- const std::string test::gpu_info = get_gpu_info();
1063
1064
1064
1065
struct printer {
1065
1066
virtual ~printer () {}
0 commit comments