Skip to content

Commit 4f061f8

Browse files
committed
Remove print statement, and fix bug in no-dep-chain breakup.
1 parent 5b09fe9 commit 4f061f8

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/determinestrategy.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,10 @@ function unroll_no_reductions(ls, order, vectorized, Wshift, size_T)
131131
end
132132
end
133133
# heuristic guess
134-
@show compute_rt, load_rt
134+
# @show compute_rt, load_rt
135135
# roundpow2(min(4, round(Int, (compute_rt + load_rt + 1) / compute_rt)))
136136
rt = max(compute_rt, load_rt)
137-
roundpow2( min( 4, round(Int, 16 / rt) ) )
137+
max(1, roundpow2( min( 4, round(Int, 16 / rt) ) ))
138138
end
139139
function determine_unroll_factor(
140140
ls::LoopSet, order::Vector{Symbol}, unrolled::Symbol, vectorized::Symbol = first(order)

test/runtests.jl

+1-2
Original file line numberDiff line numberDiff line change
@@ -1008,14 +1008,13 @@ end
10081008
a = rand(T, M); B = rand(T, M, N); c = rand(T, N); c′ = c';
10091009
d1 = @. a + B * c′;
10101010
d2 = @avx @. a + B * c′;
1011-
10121011
@test d1 d2
1012+
10131013
@. d1 = a + B * c′;
10141014
@avx @. d2 = a + B * c′;
10151015
@test d1 d2
10161016

10171017
d3 = a .+ B * c;
1018-
# no method matching _similar_for(::UnitRange{Int64}, ::Type{Any}, ::Product)
10191018
d4 = @avx a .+ B *ˡ c;
10201019
@test d3 d4
10211020

0 commit comments

Comments
 (0)