Skip to content

Commit b413ba8

Browse files
committed
move fence earlier for vmapnt
1 parent eeaa0b2 commit b413ba8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/simdfunctionals/map.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,8 @@ function (m::VmapClosure{NonTemporal,F,D,N,A})(
182182
(offset, stop) = ThreadingUtilities.load(p, Int, offset)
183183

184184
_vmap_singlethread!(m.f, dest, start, stop, Val{NonTemporal}(), args)
185-
ThreadingUtilities._atomic_store!(p, ThreadingUtilities.SPIN)
186185
NonTemporal && Threads.atomic_fence()
186+
ThreadingUtilities._atomic_store!(p, ThreadingUtilities.SPIN)
187187
nothing
188188
end
189189

0 commit comments

Comments
 (0)