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 9cea077 commit 2a48a39Copy full SHA for 2a48a39
arrayfire/array.py
@@ -563,6 +563,7 @@ def device_ptr(self):
563
Note
564
----
565
- This can be used to integrate with custom C code and / or PyCUDA or PyOpenCL.
566
+ - Implies `af.device.lock_array()`. The device pointer of `a` is not freed by memory manager until `unlock_device_ptr()` is called.
567
- No other arrays will share the same device pointer.
568
- A copy of the memory is done if multiple arrays share the same memory or the array is not the owner of the memory.
569
- In case of a copy the return value points to the newly allocated memory which is now exclusively owned by the array.
0 commit comments