We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3605167 commit fc23949Copy full SHA for fc23949
src/array.jl
@@ -210,12 +210,15 @@ end
210
## unsafe_wrap
211
212
"""
213
+ # simple case, wrapping a CuArray around an existing GPU pointer
214
unsafe_wrap(CuArray, ptr::CuPtr{T}, dims; own=false, ctx=context())
215
- # requires
216
+ # wraps a CPU array object around a unified GPU array
217
unsafe_wrap(Array, a::CuArray)
218
- # requires HMM
219
+ # wraps a GPU array object around a CPU array.
220
+ # if your system supports HMM, this is a fast operation.
221
+ # in other cases, it has to use page locking, which can be slow.
222
unsafe_wrap(CuArray, ptr::ptr{T}, dims)
223
unsafe_wrap(CuArray, a::Array)
224
0 commit comments