From 9a80e50ddde4db37094db56928bb51ced25ce4f6 Mon Sep 17 00:00:00 2001 From: Tim Besard Date: Wed, 29 Jan 2020 08:15:16 +0100 Subject: [PATCH] Loosen the type signatures. --- src/memory.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/memory.jl b/src/memory.jl index a16e175bb9..7ed3b28659 100644 --- a/src/memory.jl +++ b/src/memory.jl @@ -348,13 +348,13 @@ total_memory() = Mem.info()[2] @enum_without_prefix CUmemorytype CU_ -function memory_type(x::CuPtr) +function memory_type(x) dat = Ref{CUmemorytype}() cuPointerGetAttribute(dat, CU_POINTER_ATTRIBUTE_MEMORY_TYPE, x) return CUmemorytype(dat[]) end -function is_managed(x::CuPtr) +function is_managed(x) dat = Ref{UInt32}() cuPointerGetAttribute(dat, CU_POINTER_ATTRIBUTE_IS_MANAGED, x) return convert(Bool, dat[])