Skip to content

Commit 8263fd7

Browse files
authored
Update llama_v3.cpp (ggml-org#393)
Fixing C2065 compiler error. Missed '3' on 3 separate identifiers (kB > kB3, MB > MB3)
1 parent bfdc596 commit 8263fd7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

otherarch/llama_v3.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1315,8 +1315,8 @@ static void llama_v3_model_load_internal(
13151315
ggml_cuda_set_scratch_size(vram_scratch);
13161316
if (n_gpu_layers > 0) {
13171317
LLAMA_V3_LOG_INFO("%s: allocating batch_size x (%zd kB + n_ctx x %zd B) = %zd MB VRAM for the scratch buffer\n",
1318-
__func__, vram_scratch_base / kB, vram_scratch_per_context,
1319-
(vram_scratch + MB - 1) / MB); // round up
1318+
__func__, vram_scratch_base / kB3, vram_scratch_per_context,
1319+
(vram_scratch + MB3 - 1) / MB3); // round up
13201320
}
13211321
}
13221322
#endif // GGML_USE_CUBLAS

0 commit comments

Comments
 (0)