This thread is interesting. I was wondering if anyone has ever seen speedups of 2x or better with PDL_AUTOPTHREAD_TARG > 2? I find it tends to max out at around 1.5-1.7x whatever I set.
I know about overhead etc. but kind of feel for some of the basic stuff (e.g. A=B*C for large arrays with big chunks) I should see 4x for PDL_AUTOPTHREAD_TARG=4 and never do) The various numbers in the tests reported by Ed show <2x. Nice getting faster than C! Karl > On 4 Oct 2021, at 1:05 am, Ed . <ej...@hotmail.com> wrote: > > Thank you for the independent measurement! > > From: Luis Mochan <mailto:moc...@icf.unam.mx> > Sent: 03 October 2021 15:03 > To: pdl-de...@lists.sourceforge.net <mailto:pdl-de...@lists.sourceforge.net>; > perldl <mailto:pdl-general@lists.sourceforge.net> > Subject: Re: [Pdl-devel] benchmarks > > > Now I have run the C benchmark and Ed's. My results are: > > | Program | # iterations | time (s) | speed (K/s) | factor | > |--------------+--------------+----------+-------------+--------| > | ansi c | 150e6 | 133 | 1127.8195 | 1. | > | perl | 1.5e6 | 56 | 26.785714 | 42.1 | > | my pdl | 15e6 | 67 | 223.88060 | 5.0 | > | Ed's pdl | 15e6 | 16 | 937.5 | 1.2 | > | Ed's 4 cores | 15e6 | 11 | 1363.6364 | 0.8 | > > So, as Ed wrote, just by stting and environment variable, > perl+pdl+pp_def can be made faster than c. > > > > > On Sat, Oct 02, 2021 at 07:03:50PM -0500, Luis Mochan wrote: > > I made my own version of the ray-tracing program (as I tried to > > understand it). I didn't use pp_def, only Perl and ordinary PDL. I used > > ... > > -- > > o > W. Luis Mochán, | tel:(52)(777)329-1734 /<(*) > Instituto de Ciencias Físicas, UNAM | fax:(52)(777)317-5388 `>/ /\ > Av. Universidad s/n CP 62210 | (*)/\/ \ > Cuernavaca, Morelos, México | moc...@fis.unam.mx > <mailto:moc...@fis.unam.mx> /\_/\__/ > GPG: 791EB9EB, C949 3F81 6D9B 1191 9A16 C2DF 5F0A C52B 791E B9EB > > > _______________________________________________ > pdl-devel mailing list > pdl-de...@lists.sourceforge.net <mailto:pdl-de...@lists.sourceforge.net> > https://lists.sourceforge.net/lists/listinfo/pdl-devel > <https://lists.sourceforge.net/lists/listinfo/pdl-devel> > > _______________________________________________ > pdl-devel mailing list > pdl-de...@lists.sourceforge.net <mailto:pdl-de...@lists.sourceforge.net> > https://lists.sourceforge.net/lists/listinfo/pdl-devel > <https://lists.sourceforge.net/lists/listinfo/pdl-devel>
_______________________________________________ pdl-general mailing list pdl-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pdl-general