@@ -779,10 +779,6 @@ function generic_matmatmul(tA, tB, A::AbstractVecOrMat{T}, B::AbstractMatrix{S})
779779end
780780
781781const tilebufsize = 10800 # Approximately 32k/3
782- # per-thread arrays of buffers resized by __init__ if needed
783- const Abuf = [Vector {UInt8} (undef, tilebufsize)]
784- const Bbuf = [Vector {UInt8} (undef, tilebufsize)]
785- const Cbuf = [Vector {UInt8} (undef, tilebufsize)]
786782
787783function generic_matmatmul! (C:: AbstractMatrix , tA, tB, A:: AbstractMatrix , B:: AbstractMatrix ,
788784 _add:: MulAddMul = MulAddMul ())
@@ -828,9 +824,8 @@ function _generic_matmatmul!(C::AbstractVecOrMat{R}, tA, tB, A::AbstractVecOrMat
828824 @inbounds begin
829825 if tile_size > 0
830826 sz = (tile_size, tile_size)
831- # FIXME : This code is completely invalid!!!
832- Atile = unsafe_wrap (Array, convert (Ptr{T}, pointer (Abuf[Threads. threadid ()])), sz)
833- Btile = unsafe_wrap (Array, convert (Ptr{S}, pointer (Bbuf[Threads. threadid ()])), sz)
827+ Atile = Array {T} (undef, sz)
828+ Btile = Array {S} (undef, sz)
834829
835830 z1 = zero (A[1 , 1 ]* B[1 , 1 ] + A[1 , 1 ]* B[1 , 1 ])
836831 z = convert (promote_type (typeof (z1), R), z1)
@@ -850,8 +845,7 @@ function _generic_matmatmul!(C::AbstractVecOrMat{R}, tA, tB, A::AbstractVecOrMat
850845 end
851846 end
852847 else
853- # FIXME : This code is completely invalid!!!
854- Ctile = unsafe_wrap (Array, convert (Ptr{R}, pointer (Cbuf[Threads. threadid ()])), sz)
848+ Ctile = Array {R} (undef, sz)
855849 for jb = 1 : tile_size: nB
856850 jlim = min (jb+ tile_size- 1 ,nB)
857851 jlen = jlim- jb+ 1
0 commit comments