arrayfire / arrayfire-python

Python bindings for ArrayFire: A general purpose GPU library.
https://arrayfire.com
BSD 3-Clause "New" or "Revised" License
417 stars 65 forks source link

arrayfire.Array is_device option. #173

Open sufkes opened 6 years ago

sufkes commented 6 years ago

What does the option 'is_device' do in an arrayfire.Array? I can't find an entry in the documentation and would like to understand.

pavanky commented 6 years ago

@sufkes This is for passing raw pointers that were created on a GPU device (using PyCUDA / PyOpenCL etc).

An example of how it can be used can be seen here: https://github.com/arrayfire/arrayfire-python/blob/master/arrayfire/interop.py#L114