From 4defc0a5502e02a7cb53238257ea929b8154c90e Mon Sep 17 00:00:00 2001 From: Tim Besard Date: Thu, 16 Feb 2017 15:51:30 +0100 Subject: [PATCH] Fix deprecated type declaration syntax. Ref JuliaLang/julia#20418 --- src/arrays.jl | 2 +- src/stream.jl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/arrays.jl b/src/arrays.jl index ba2436f..7dcae34 100644 --- a/src/arrays.jl +++ b/src/arrays.jl @@ -3,7 +3,7 @@ ############################### # Abstract CUDA array types -abstract AbstractCudaArray{T,N} +@compat abstract type AbstractCudaArray{T,N} end @compat const AbstractCudaVector{T} = AbstractCudaArray{T,1} @compat const AbstractCudaMatrix{T} = AbstractCudaArray{T,2} diff --git a/src/stream.jl b/src/stream.jl index 90ecbe2..145cf9e 100644 --- a/src/stream.jl +++ b/src/stream.jl @@ -4,7 +4,7 @@ # is that one Julia process can feed multiple devices, with the jobs # running asynchronously. -abstract AbstractStream +@compat abstract type AbstractStream end type Stream <: AbstractStream inner::CuStream