Skip to content

Commit

Permalink
Loosen the type signatures.
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt committed Jan 29, 2020
1 parent 35c07a9 commit 9a80e50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/memory.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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[])
Expand Down

0 comments on commit 9a80e50

Please sign in to comment.