]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
bench : fix memcpy bench size
authorGeorgi Gerganov <redacted>
Thu, 16 Nov 2023 08:59:32 +0000 (10:59 +0200)
committerGeorgi Gerganov <redacted>
Thu, 16 Nov 2023 08:59:32 +0000 (10:59 +0200)
whisper.cpp

index acedee0d08cd5ef0180adfb07339a5fc2dadcfec..e2197ff262c993ae7ac14ed393e1d116242fe45f 100644 (file)
@@ -6073,7 +6073,7 @@ WHISPER_API const char * whisper_bench_memcpy_str(int n_threads) {
     size_t arr  = n_threads > 0 ? 1024llu : n_threads; // trick to avoid compiler optimizations
 
     // 1GB array
-    const size_t size = arr*1e9;
+    const size_t size = arr*1e6;
 
     // single-thread
     {