diff options
author | Kawrakow <iwankawrakow@gmail.com> | 2025-06-27 17:44:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-27 17:44:36 +0200 |
commit | bce7697d64dc09d52dec468b7ed69c768967b8b6 (patch) | |
tree | c06cc97928d0da75644cb8f4f735983f220fee58 | |
parent | 31bd3185f2cad78fddb776f6875177b638a41339 (diff) |
Remove what appears to be unnecessary asserts in ggml_cuda_cpy (#560)
Co-authored-by: Iwan Kawrakow <iwan.kawrakow@gmail.com>
-rw-r--r-- | ggml/src/ggml-cuda/cpy.cu | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ggml/src/ggml-cuda/cpy.cu b/ggml/src/ggml-cuda/cpy.cu index 3b87cbad..312e0c09 100644 --- a/ggml/src/ggml-cuda/cpy.cu +++ b/ggml/src/ggml-cuda/cpy.cu @@ -570,8 +570,12 @@ void ggml_cuda_cpy(ggml_backend_cuda_context & ctx, const ggml_tensor * src0, gg const int64_t ne = ggml_nelements(src0); GGML_ASSERT(ne == ggml_nelements(src1)); - GGML_ASSERT(ggml_nbytes(src0) <= INT_MAX); - GGML_ASSERT(ggml_nbytes(src1) <= INT_MAX); + //if (ggml_nbytes(src0) > INT_MAX) { + // printf("%s: %s has %zu bytes\n", __func__, src0->name, ggml_nbytes(src0)); + //} + // These asserts appear to be unnecessary. Why were they added? + //GGML_ASSERT(ggml_nbytes(src0) <= INT_MAX); + //GGML_ASSERT(ggml_nbytes(src1) <= INT_MAX); const int64_t ne00 = src0->ne[0]; const int64_t ne01 = src0->ne[1]; |