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

Commit

Permalink
Fix deprecated typealias syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt committed Feb 13, 2017
1 parent 7ecba4f commit 17d2ea9
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/context.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export
LMEM_RESIZE_TO_MAX = 0x10)
Base.@deprecate_binding BLOCKING_SYNC SCHED_BLOCKING_SYNC

typealias CuContext_t Ptr{Void}
const CuContext_t = Ptr{Void}


## construction and destruction
Expand Down
2 changes: 1 addition & 1 deletion src/devices.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export
list_devices


typealias CuDevice_t Cint
const CuDevice_t = Cint

"Return the number of available CUDA devices"
function devcount()
Expand Down
2 changes: 1 addition & 1 deletion src/events.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
export CuEvent, record, synchronize, elapsed, @elapsed


typealias CuEvent_t Ptr{Void}
const CuEvent_t = Ptr{Void}

type CuEvent
handle::CuEvent_t
Expand Down
2 changes: 1 addition & 1 deletion src/execution.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ CuDim3{T <: Integer}(g::Tuple{T, T, T}) = CuDim3(g[1], g[2], g[3])

# Type alias for conveniently specifying the dimensions
# (e.g. `(len, 2)` instead of `CuDim3((len, 2))`)
typealias CuDim Union{Integer,
const CuDim = Union{Integer,
Tuple{Integer},
Tuple{Integer, Integer},
Tuple{Integer, Integer, Integer}}
Expand Down
2 changes: 1 addition & 1 deletion src/module.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export
include("module/jit.jl")


typealias CuModule_t Ptr{Void}
const CuModule_t = Ptr{Void}

type CuModule
handle::CuModule_t
Expand Down
2 changes: 1 addition & 1 deletion src/module/function.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export
CuFunction


typealias CuFunction_t Ptr{Void}
const CuFunction_t = Ptr{Void}

immutable CuFunction
handle::CuFunction_t
Expand Down
2 changes: 1 addition & 1 deletion src/module/linker.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export
addData, addFile


typealias CuLinkState_t Ptr{Void}
const CuLinkState_t = Ptr{Void}

type CuLink
handle::CuLinkState_t
Expand Down
2 changes: 1 addition & 1 deletion src/stream.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export
CuStream, CuDefaultStream, synchronize


typealias CuStream_t Ptr{Void}
const CuStream_t = Ptr{Void}

type CuStream
handle::CuStream_t
Expand Down
2 changes: 1 addition & 1 deletion test/core.jl
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ CUDAdrv.trace(prefix=" ")
end
)

typealias CuDevice_t Cint
const CuDevice_t = Cint
try
CUDAdrv.@apicall(:cuDeviceGet, (Ptr{CuDevice_t}, Cint), Ref{CuDevice_t}(), devcount())
catch e
Expand Down

0 comments on commit 17d2ea9

Please sign in to comment.