Skip to content

Commit bba8487

Browse files
committed
Bump version.
1 parent d52717c commit bba8487

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "LoopVectorization"
22
uuid = "bdcacae8-1622-11e9-2a5c-532679323890"
33
authors = ["Chris Elrod <elrodc@gmail.com>"]
4-
version = "0.1.2"
4+
version = "0.1.3"
55

66
[deps]
77
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"

src/determinestrategy.jl

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,11 +162,9 @@ end
162162
function solve_tilesize(X, R)
163163
@inbounds any(iszero, (R[1],R[2],R[3])) && return -1,-1,Inf #solve_smalltilesize(X, R, Umax, Tmax)
164164
# @inbounds any(iszero, (R[1],R[2],R[3])) && return -1,-1,Inf #solve_smalltilesize(X, R, Umax, Tmax)
165-
# We use lagrange multiplier to finding floating point values for U and T
165+
# We use a lagrange multiplier to find floating point values for U and T
166166
# first solving for U via quadratic formula
167167
# X is vector of costs, and R is of register pressures
168-
# @show X
169-
# @show R
170168
RR = REGISTER_COUNT - R[3] - R[4]
171169
a = (R[1])^2*X[2] - (R[2])^2*R[1]*X[3]/RR
172170
b = 2*R[1]*R[2]*X[3]
@@ -205,7 +203,7 @@ function solve_tilesize(X, R)
205203
if RR > Uhigh*Thigh*R[1] + Uhigh*R[2]
206204
throw("Something went wrong when solving for Tfloat and Ufloat.")
207205
end
208-
min(U,RR), min(T,RR), tcost
206+
U, T, tcost
209207
end
210208
function solve_tilesize_constU(X, R, U)
211209
floor(Int, (REGISTER_COUNT - R[3] - R[4] - U*R[2]) / (U * R[1]))

0 commit comments

Comments
 (0)