diff --git a/driver/others/blas_server.c b/driver/others/blas_server.c index 765511d8c7..b9a7674c17 100644 --- a/driver/others/blas_server.c +++ b/driver/others/blas_server.c @@ -1076,6 +1076,8 @@ fprintf(STDERR, "Server[%2ld] Calculation started. Mode = 0x%03x M = %3ld N=%3l main_status[cpu] = MAIN_RUNNING1; #endif +if (buffer == NULL) blas_thread_buffer[cpu] = blas_memory_alloc(2); + //For target LOONGSON3R5, applying an offset to the buffer is essential //for minimizing cache conflicts and optimizing performance. #if defined(ARCH_LOONGARCH64) && !defined(NO_AFFINITY)