Skip to content

Commit

Permalink
Remove print statement, and fix bug in no-dep-chain breakup.
Browse files Browse the repository at this point in the history
  • Loading branch information
chriselrod committed Jan 17, 2020
1 parent 5b09fe9 commit 4f061f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/determinestrategy.jl
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,10 @@ function unroll_no_reductions(ls, order, vectorized, Wshift, size_T)
end
end
# heuristic guess
@show compute_rt, load_rt
# @show compute_rt, load_rt
# roundpow2(min(4, round(Int, (compute_rt + load_rt + 1) / compute_rt)))
rt = max(compute_rt, load_rt)
roundpow2( min( 4, round(Int, 16 / rt) ) )
max(1, roundpow2( min( 4, round(Int, 16 / rt) ) ))
end
function determine_unroll_factor(
ls::LoopSet, order::Vector{Symbol}, unrolled::Symbol, vectorized::Symbol = first(order)
Expand Down
3 changes: 1 addition & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1008,14 +1008,13 @@ end
a = rand(T, M); B = rand(T, M, N); c = rand(T, N); c′ = c';
d1 = @. a + B * c′;
d2 = @avx @. a + B * c′;

@test d1 d2

@. d1 = a + B * c′;
@avx @. d2 = a + B * c′;
@test d1 d2

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

Expand Down

2 comments on commit 4f061f8

@chriselrod
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register()

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request updated: JuliaRegistries/General/8093

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if Julia TagBot is installed, or can be done manually through the github interface, or via:

git tag -a v0.3.8 -m "<description of version>" 4f061f8efa95faa5b69976aca6cb964af2b7c06e
git push origin v0.3.8

Please sign in to comment.