-
Using set_row, I can write array B to a row of array A.
batch_func exists but it only can take 2 arrays. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
@BA8F0D39 Copy of whole Array Note that the program could also be slow because you are making about 100K round trips to the GPU just for three elements of data transfer which is very inefficient and costly in terms of performance. |
Beta Was this translation helpful? Give feedback.
-
http://arrayfire.org/arrayfire-rust/arrayfire/fn.set_row.html |
Beta Was this translation helpful? Give feedback.
-
@BA8F0D39 We have corrected that mutability in master already to reflect the same. This change will be available from next release. I hope to do this release by end of this week. So, kindly bare with us for the temporary inconvenience. |
Beta Was this translation helpful? Give feedback.
-
@9prady9 |
Beta Was this translation helpful? Give feedback.
-
The missing Hence, whatever slowness you are observing is not related to this |
Beta Was this translation helpful? Give feedback.
The missing
mut
qualifier is an issue at rust wrapper not reflecting how thelhs
parameter toset_row
is handled internally to ArrayFire. Therefore, it is fix at rust wrapper level to an already existing behavior I explained hereHence, whatever slowness you are observing is not related to this
missing mut
issue. Have you looked into what I have mentioned here ?