<div class="gmail_quote">On Mon, Oct 29, 2012 at 12:28 PM, Boudewijn Rempt <span dir="ltr"><<a href="mailto:boud@valdyas.org" target="_blank">boud@valdyas.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I'm not sure whether there's already something suitably cross-platform in solid, but Rami Radi from Intel pointed me at <a href="http://libcpuid.sourceforge.net/documentation.html" target="_blank">http://libcpuid.sourceforge.net/documentation.html</a> -- we could use that to make sure that binaries compiled with avx support don't crash on non-avx systems but use the fallback.<br clear="all">
</blockquote></div><br>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.<br>
<br>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.<br>
<br>But the optimized compilation of the Vc might be really a problem for usual users. We (and distributions) need to think about it well.<br><br>-- <br>Dmitry Kazakov<br>