Skip to content

Commit 7b26ccb

Browse files
committed
Fix for Julia 1.0.
1 parent a2ce880 commit 7b26ccb

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/graphs.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# lv(x) = Expr(:(.), :LoopVectorization, QuoteNode(x))
2-
lv(x) = GlobalRef(LoopVectorization, x)
2+
@static if VERSION < v"1.3.0"
3+
lv(x) = Expr(:(.), :LoopVectorization, QuoteNode(x))
4+
else
5+
lv(x) = GlobalRef(LoopVectorization, x)
6+
end
37

48
isdense(::Type{<:DenseArray}) = true
59

test/runtests.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -323,9 +323,7 @@ end
323323
@testset "broadcast" begin
324324
M, N = 37, 47
325325
# M = 77;
326-
# for T ∈ (Float32, Float64)
327-
for T (Float64, Float32)
328-
# let T = Float64
326+
for T (Float32, Float64)
329327
a = rand(T, M); B = rand(T, M, N); c = rand(T, N); c′ = c';
330328

331329
d1 = @. a + B * c′;

0 commit comments

Comments
 (0)