Skip to content
This repository was archived by the owner on May 27, 2021. It is now read-only.

Commit b535223

Browse files
committedFeb 13, 2017
Use new type declaration syntax.
Ref JuliaLang/julia#20418
1 parent bc429ac commit b535223

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎src/device/array.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export
66

77
## construction
88

9-
immutable CuDeviceArray{T,N} <: AbstractArray{T,N}
9+
struct CuDeviceArray{T,N} <: AbstractArray{T,N}
1010
shape::NTuple{N,Int}
1111
ptr::Ptr{T}
1212

@@ -54,7 +54,7 @@ Base.show{T,N}(io::IO, a::CuDeviceArray{T,N}) =
5454

5555
# TODO: remove this hack as soon as immutables with heap references (such as BoundsError)
5656
# can be stack-allocated
57-
immutable CuBoundsError <: Exception end
57+
struct CuBoundsError <: Exception end
5858
@inline Base.throw_boundserror{T,N}(A::CuDeviceArray{T,N}, I) =
5959
(Base.@_noinline_meta; throw(CuBoundsError()))
6060

‎test/execution.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ end
162162
d_b = CuArray(b)
163163
d_c = similar(d_a)
164164

165-
@eval immutable ExecGhost end
165+
@eval struct ExecGhost end
166166

167167
@eval function exec_pass_ghost(ghost, a, b, c)
168168
i = (blockIdx().x-1) * blockDim().x + threadIdx().x

0 commit comments

Comments
 (0)
This repository has been archived.