Skip to content

Commit 964ae0d

Browse files
committed
Fix choosing unroll factor in absense of load.
1 parent bfe6bce commit 964ae0d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/determinestrategy.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,8 @@ function unroll_no_reductions(ls, order, vectorized)
230230
max(1, VectorizationBase.nextpow2( min( 4, round(Int, 8 / compute_rt) ) ))
231231
elseif iszero(compute_rt)
232232
4
233+
elseif iszero(load_rt)
234+
iszero(store_rt) ? 4 : max(1, min(4, round(Int, 2compute_rt / store_rt)))
233235
else
234236
max(1, min(4, round(Int, 2compute_rt / load_rt)))
235237
end

0 commit comments

Comments
 (0)