cpu detection
Dmitry Kazakov
dimula73 at gmail.com
Mon Oct 29 08:45:53 UTC 2012
On Mon, Oct 29, 2012 at 12:28 PM, Boudewijn Rempt <boud at valdyas.org> wrote:
> I'm not sure whether there's already something suitably cross-platform in
> solid, but Rami Radi from Intel pointed me at
> http://libcpuid.sourceforge.net/documentation.html -- we could use that
> to make sure that binaries compiled with avx support don't crash on non-avx
> systems but use the fallback.
>
As far as I know Vc does its own check for the presence of a particular
instruction set on the runtime, so it won't crash at least. But as reported
by Sven its own fallbacks are slower than our integer implementation of the
routines.
I had an idea to perform a short set of benchmarks on a Krita start (or on
first start?) instead of inspecting a CPU and choose the most suitable
implementation, basing of these values. I guess, it should be the best
solution for the problem, since we can't test the performance of Krita on
all the possible CPUs.
But the optimized compilation of the Vc might be really a problem for usual
users. We (and distributions) need to think about it well.
--
Dmitry Kazakov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kimageshop/attachments/20121029/b13c93ca/attachment.html>
More information about the kimageshop
mailing list