| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
…k ends. These back ends were incorrectly assuming a linear array. In the case of the cuda and opencl back end this was just for the cpu-fallback methods which are used when the total number of elements in the array is less than or equal to 4096.
Added an eval() to the input array on the CPU back end for the ireduce method to ensure that the array has been evaluated before reducing.
| Back | FazBrowse Home | New Git URL |
These back ends were incorrectly assuming a linear array when finding the max/min value and its index. This causes an issue with a sub-array.
Description
In the case of the cuda and opencl back end this was just for the cpu-fallback methods which are used when the total number of elements in the array is less than or equal to 4096. There was no issue with the oneapi back end because it does not have this fall-back method. The fix for the cuda and opencl back ends was to only use the fall-back method for linear arrays. This is to avoid doing a complex sub-array copy operation from device to host memory.
Changes to Users
af_imax_all / af_imin_all functions now works for sub-arrays
Checklist