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

Commit

Permalink
Use new type declaration syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt committed Feb 13, 2017
1 parent bc429ac commit b535223
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/device/array.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export

## construction

immutable CuDeviceArray{T,N} <: AbstractArray{T,N}
struct CuDeviceArray{T,N} <: AbstractArray{T,N}
shape::NTuple{N,Int}
ptr::Ptr{T}

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

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

Expand Down
2 changes: 1 addition & 1 deletion test/execution.jl
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ end
d_b = CuArray(b)
d_c = similar(d_a)

@eval immutable ExecGhost end
@eval struct ExecGhost end

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

0 comments on commit b535223

Please sign in to comment.