<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Vectorization support]]></title><description><![CDATA[<p dir="auto">Does mingw compiler that comes prepacked with qt offline installer  support vectorization well?<br />
What compiler flags should i enable to get maximal speeds on i7-5930k cpu , Haswell E ?<br />
No other cpu models will run the application.<br />
Currently using <code>QMAKE_CXXFLAGS_RELASE *= -O3</code> optimization flag<br />
Most intense parts of code run under <code>#pragma omp parralel for</code></p>
]]></description><link>https://forum.qt.io/topic/115235/vectorization-support</link><generator>RSS for Node</generator><lastBuildDate>Tue, 18 Aug 2026 14:40:49 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/115235.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 26 May 2020 19:01:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Vectorization support on Tue, 26 May 2020 23:32:52 GMT]]></title><description><![CDATA[<pre><code>CONFIG+= -O3 -ffast-math -march=native
</code></pre>
<p dir="auto">With above open mp for loop function average runtime from 37.8s to 41.2.</p>
<p dir="auto">For some reason <code>-O3 -march=native</code> without -<code>ffast-math</code> works better.</p>
<p dir="auto">Is there any way to imorove performance further with compiler?<br />
I don't care if it compiles a week.</p>
]]></description><link>https://forum.qt.io/post/597097</link><guid isPermaLink="true">https://forum.qt.io/post/597097</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Tue, 26 May 2020 23:32:52 GMT</pubDate></item><item><title><![CDATA[Reply to Vectorization support on Tue, 26 May 2020 22:26:25 GMT]]></title><description><![CDATA[<p dir="auto">These flags work under gcc, so they should work under mingw as well.</p>
<pre><code>-ffast-math
-ftree_vectorize (default on -O3)
-march=native
</code></pre>
<p dir="auto">However, the compiler can only do so much. When it comes to optimisation, it's paramount to well structured code that <em>can</em> be optimised and <em>can</em> be vectorised. Especially branching in for loops is a major point that creates bottle necks and might disrupt vectorisation. Without having a look at your code it's difficult to give further advice.</p>
]]></description><link>https://forum.qt.io/post/597094</link><guid isPermaLink="true">https://forum.qt.io/post/597094</guid><dc:creator><![CDATA[ThePhysicist]]></dc:creator><pubDate>Tue, 26 May 2020 22:26:25 GMT</pubDate></item></channel></rss>