Closed sanikolov closed 2 years ago
I believe the issue here is that the dimensions of the two arrays are 1. If more dimensions are provided then performance ought to be much better
Closing issue because arrayfire (any decent GPU software really) performs better for large sizes, e.g. 200K element arrays rather than the small 1000 element arrays I've provided in the script.
OS=windows 10 dotnet = net5.0 CPU = i5-4590 GPU = GE Force GTX 1050 Ti, plus the latest NVDIA CUDA runtime and drivers
See the attached F# script. Usage:
dotnet fsi /optimize+ /r:ArrayFire.dll /r:MathNet.Numerics.dll compare_algos.fsx
ResultsI would have expected a GPU algo to outperform the CPU equivalent. See at least 2 references regarding this expectation:
To reproduce rename the attached
compare_algos.txt
file tocompare_algos.fsx
and run it as shown above. It won't hurt to download the Math.Numerics.dll from nuget first. This performance issue is probably not related to the .NET bindings. If so please move it to the arrayfire repo.compare_algos.txt