arrayfire-python icon indicating copy to clipboard operation
arrayfire-python copied to clipboard

arrayfire.Array is_device option.

Open sufkes opened this issue 8 years ago • 1 comments

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.

sufkes avatar Jan 19 '18 14:01 sufkes

@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

pavanky avatar Jan 19 '18 21:01 pavanky