diff --git a/src/context.jl b/src/context.jl index 8b01508..506ed79 100644 --- a/src/context.jl +++ b/src/context.jl @@ -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 diff --git a/src/devices.jl b/src/devices.jl index 4e650ec..1e84bdd 100644 --- a/src/devices.jl +++ b/src/devices.jl @@ -6,7 +6,7 @@ export list_devices -typealias CuDevice_t Cint +const CuDevice_t = Cint "Return the number of available CUDA devices" function devcount() diff --git a/src/events.jl b/src/events.jl index 10cc3cf..f07ea0e 100644 --- a/src/events.jl +++ b/src/events.jl @@ -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 diff --git a/src/execution.jl b/src/execution.jl index 8ab2d63..e171fc6 100644 --- a/src/execution.jl +++ b/src/execution.jl @@ -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}} diff --git a/src/module.jl b/src/module.jl index 6adef12..431853b 100644 --- a/src/module.jl +++ b/src/module.jl @@ -6,7 +6,7 @@ export include("module/jit.jl") -typealias CuModule_t Ptr{Void} +const CuModule_t = Ptr{Void} type CuModule handle::CuModule_t diff --git a/src/module/function.jl b/src/module/function.jl index b85a6fa..50399e3 100644 --- a/src/module/function.jl +++ b/src/module/function.jl @@ -4,7 +4,7 @@ export CuFunction -typealias CuFunction_t Ptr{Void} +const CuFunction_t = Ptr{Void} immutable CuFunction handle::CuFunction_t diff --git a/src/module/linker.jl b/src/module/linker.jl index cd51c89..2f9a0d1 100644 --- a/src/module/linker.jl +++ b/src/module/linker.jl @@ -5,7 +5,7 @@ export addData, addFile -typealias CuLinkState_t Ptr{Void} +const CuLinkState_t = Ptr{Void} type CuLink handle::CuLinkState_t diff --git a/src/stream.jl b/src/stream.jl index 56095a9..8d21015 100644 --- a/src/stream.jl +++ b/src/stream.jl @@ -4,7 +4,7 @@ export CuStream, CuDefaultStream, synchronize -typealias CuStream_t Ptr{Void} +const CuStream_t = Ptr{Void} type CuStream handle::CuStream_t diff --git a/test/core.jl b/test/core.jl index a25a406..62977ce 100644 --- a/test/core.jl +++ b/test/core.jl @@ -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