Standard D, Mir D benchmarks against Numpy (BLAS)
Pavel Shkadzko
p.shkadzko at gmail.com
Sun Mar 15 11:49:54 UTC 2020
On Saturday, 14 March 2020 at 09:34:55 UTC, 9il wrote:
> On Saturday, 14 March 2020 at 08:01:33 UTC, Jacob Carlborg
> wrote:
>> On 2020-03-12 13:59, Pavel Shkadzko wrote:
>>> [...]
>>
>> Have you tried to compile with LTO (Link Time Optimization)
>> and PGO (Profile Guided Optimization) enabled? You should also
>> link with the versions of Phobos and druntime that has been
>> compiled with LTO.
>
> The problem is that Numpy uses its own version of OpenBLAS,
> that is multithread including Level 1 BLAS operations like L2
> norm and dot product, while D code is a single thread.
My version of NumPy is installed with anaconda and it looks like
anaconda numpy package comes with mkl libraries.
I have updated the benchmarks with respect to single/multi thread.
More information about the Digitalmars-d
mailing list