summaryrefslogtreecommitdiff
path: root/ggml-cuda.cu
diff options
context:
space:
mode:
authorHaohui Mai <ricetons@gmail.com>2023-11-23 13:56:53 -0800
committerGitHub <noreply@github.com>2023-11-23 22:56:53 +0100
commit55978ce09b69d3987d17d08d92d8cc27193e0773 (patch)
tree8541f81145ed4cfdeed3ef7bbb4226ebe1995ac8 /ggml-cuda.cu
parent6b0a7420d03b9d13cb0e9439a01ce8476d8bf093 (diff)
Fix incorrect format strings and uninitialized variables. (#4133)
* Fix incorrect format strings and uninitialized variables. * Address comments * Add the missing include statement
Diffstat (limited to 'ggml-cuda.cu')
-rw-r--r--ggml-cuda.cu3
1 files changed, 2 insertions, 1 deletions
diff --git a/ggml-cuda.cu b/ggml-cuda.cu
index 50e03de5..f0db7ae3 100644
--- a/ggml-cuda.cu
+++ b/ggml-cuda.cu
@@ -1,4 +1,5 @@
#include <algorithm>
+#include <cinttypes>
#include <cstddef>
#include <cstdint>
#include <limits>
@@ -8057,7 +8058,7 @@ bool ggml_cuda_compute_forward(struct ggml_compute_params * params, struct ggml_
if (tensor->op == GGML_OP_MUL_MAT) {
if (tensor->src[0]->ne[3] != tensor->src[1]->ne[3]) {
#ifndef NDEBUG
- fprintf(stderr, "%s: cannot compute %s: src0->ne[3] = %d, src1->ne[3] = %d - fallback to CPU\n", __func__, tensor->name, tensor->src[0]->ne[3], tensor->src[1]->ne[3]);
+ fprintf(stderr, "%s: cannot compute %s: src0->ne[3] = " PRId64 ", src1->ne[3] = " PRId64 " - fallback to CPU\n", __func__, tensor->name, tensor->src[0]->ne[3], tensor->src[1]->ne[3]);
#endif
return false;
}