You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have introduced adjust_thread_buffers() function, similar to OpenMP, for initializing global thread buffers instead of the existing local buffers initialized in blas_thread_server.
In blas_thread_init, memory is allocated for blas_cpu_number threads using the adjust_thread_buffers interface. However, when calling interfaces like gemm, memory allocation is still performed in the main thread:
buffer = (XFLOAT *)blas_memory_alloc(0);
This would lead to an additional buffer being allocated, deviating from the logic of the code before the modification.
The text was updated successfully, but these errors were encountered:
PR #4577
In
blas_thread_init
, memory is allocated forblas_cpu_number
threads using theadjust_thread_buffers
interface. However, when calling interfaces like gemm, memory allocation is still performed in the main thread:This would lead to an additional buffer being allocated, deviating from the logic of the code before the modification.
The text was updated successfully, but these errors were encountered: