Skip to content

Commit ccc9e6d

Browse files
committed
use Float64 in array length estimate for stride_penalty as well.
1 parent 1a89a43 commit ccc9e6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/determinestrategy.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ function stride_penalty(ls::LoopSet, op::Operation, order::Vector{Symbol}, loopf
519519
opstrides[1] = 1.0
520520
end
521521
# loops = map(s -> getloop(ls, s), loopdeps)
522-
l = length(getloop(ls, first(loopdeps)))
522+
l = Float64(length(getloop(ls, first(loopdeps))))
523523
for i 2:length(loopdeps)
524524
looplength = length(getloop(ls, loopdeps[i-1]))
525525
opstrides[i] = opstrides[i-1] * looplength

0 commit comments

Comments
 (0)