You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The struct af_index_t is not yet present in the ArrayFire wrapper. The use of C-style unions has confused our efforts to add this. Right now we are exploring shucking data back and forth between the CPU and GPU to emulate this functionality but this not as fast as using methods/structs which keep data on the GPU.
The text was updated successfully, but these errors were encountered:
That is precisely the reason we provided helper API to create and manage the af_index_t structure without having to deal with it at the wrapper level. Please look at the below functions at http://arrayfire.org/docs/group__index__func__index.htm defined in af/index.h header.
It looks like you can use af_seq objects but not af_index_t which allows you to index with array objects. Is that correct? Can you give me an example of what operation you are trying to do?
Well, if it is always going to be sequences, yeah, no need to touch af_index_t structure. But to write a generic wrapper than can handle af_array for indexing, the wrapper has to handle af_index_t struct.
The struct af_index_t is not yet present in the ArrayFire wrapper. The use of C-style unions has confused our efforts to add this. Right now we are exploring shucking data back and forth between the CPU and GPU to emulate this functionality but this not as fast as using methods/structs which keep data on the GPU.
The text was updated successfully, but these errors were encountered: