fix: last HD→HD_val

This commit is contained in:
2026-05-28 06:32:55 +00:00
parent e940786fd5
commit 73d1e38129

View File

@@ -100,7 +100,7 @@ int test_kernel(const char* name, int HD_val, int sk, float scale,
float cos = cosine_sim(ho_gpu, ho_ref, B*H*HD_val);
int pass = cos > 0.999f;
printf(" %s hd=%d s_k=%d: cos %.6f %s\n", name, HD, sk, cos, pass ? "✅" : "❌");
printf(" %s hd=%d s_k=%d: cos %.6f %s\n", name, HD_val, sk, cos, pass ? "✅" : "❌");
if (!pass) {
printf(" GPU[:4] = %.6f %.6f %.6f %.6f\n", ho_gpu[0], ho_gpu[1], ho_gpu[2], ho_gpu[3]);