<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Quote:iliyapolak wrote: in Intel® ISA Extensions</title>
    <link>https://community.intel.com/t5/Intel-ISA-Extensions/Disabling-AVX/m-p/961876#M4394</link>
    <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;iliyapolak wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;@iliyapolak: offtopic ... again&amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;

&lt;P&gt;Why do you think so?&lt;/P&gt;

&lt;P&gt;Are not you trying to&amp;nbsp;disable&amp;nbsp;AVX&amp;nbsp;code path execution in&amp;nbsp;that exe?&lt;/P&gt;

&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;I have an exe (we don't care what produced it). It has AVX code path and SSE4 code path and it's not supposed to run any AVX code when it's not supported&amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Because i'm trying to make sure that my exe works perfectly on a SSE4 machine even if there is an AVX code path into it. If i alter the exe, there is nothing to test. I need to deploy the same binary for 2 generation of machines.&lt;/P&gt;

&lt;P&gt;SDE was exactly what i was looking for actually.&lt;/P&gt;</description>
    <pubDate>Thu, 27 Mar 2014 13:38:00 GMT</pubDate>
    <dc:creator>emmanuel_attia</dc:creator>
    <dc:date>2014-03-27T13:38:00Z</dc:date>
    <item>
      <title>Disabling AVX</title>
      <link>https://community.intel.com/t5/Intel-ISA-Extensions/Disabling-AVX/m-p/961862#M4380</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;Is there a way (under Windows 7) to disable the support of AVX.&lt;BR /&gt;
	I wan't to make sure that on a pre-SB machine I don't get "Illegal Instruction exception".&lt;BR /&gt;
	Currently I have to use another machine and it's a bit annoying.&lt;BR /&gt;
	&lt;BR /&gt;
	I don't use the /QaXXX flags because the code is already taking very long to compile (so it's taken care of manually) and I want it to work on Microsoft compiler too (even if performances would be degraded of course ;) ).&lt;/P&gt;

&lt;P&gt;So if there is some global flag to change to disable it (even if i need to reboot the computer), the information would be more than welcomed.&lt;/P&gt;

&lt;P&gt;Thanks in advance !&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2014 17:36:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-ISA-Extensions/Disabling-AVX/m-p/961862#M4380</guid>
      <dc:creator>emmanuel_attia</dc:creator>
      <dc:date>2014-03-26T17:36:32Z</dc:date>
    </item>
    <item>
      <title>If you want your .exe to run</title>
      <link>https://community.intel.com/t5/Intel-ISA-Extensions/Disabling-AVX/m-p/961863#M4381</link>
      <description>&lt;P&gt;If you want your .exe to run on an earlier architecture than the one you build on, and don't need AVX, you should simply build with an appropriate value for /arch, e.g. /arch:SSE4.1 &amp;nbsp;Microsoft gives you only the option /arch:SSE2 (default for X64 and also, for Intel, for 32-bit mode), even though all CPUs made in the last 10 years would support /arch:SSE3.&lt;/P&gt;

&lt;P&gt;Running on Windows 7 without the AVX service pack doesn't guarantee to show problems with AVX instructions.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2014 18:41:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-ISA-Extensions/Disabling-AVX/m-p/961863#M4381</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2014-03-26T18:41:35Z</dc:date>
    </item>
    <item>
      <title>VS 2013 supports AVX  with</title>
      <link>https://community.intel.com/t5/Intel-ISA-Extensions/Disabling-AVX/m-p/961864#M4382</link>
      <description>&lt;P&gt;VS 2013 supports AVX &amp;nbsp;with /arch:AVX &amp;nbsp;option.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2014 19:58:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-ISA-Extensions/Disabling-AVX/m-p/961864#M4382</guid>
      <dc:creator>Bernard</dc:creator>
      <dc:date>2014-03-26T19:58:03Z</dc:date>
    </item>
    <item>
      <title>Hi guys,</title>
      <link>https://community.intel.com/t5/Intel-ISA-Extensions/Disabling-AVX/m-p/961865#M4383</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;

&lt;P&gt;So i think i was not clear.&lt;/P&gt;

&lt;P&gt;I have an exe (we don't care what produced it). It has AVX code path and SSE4 code path and it's not supposed to run any AVX code when it's not supported.&lt;BR /&gt;
	I want to fully test my exe on my Ivy bridge, so I need to find a way to disable AVX (in the OS ? in the BIOS ?) so I'm sure in the SSE4 code path, there is only SSE4 code as expected.&lt;/P&gt;

&lt;P&gt;Off-topic answers make all this thread confusing and reduce the probability that I eventually get an answer, if you don't understand the point of what I am doing, no one is forcing you to answer.&lt;/P&gt;

&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2014 20:06:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-ISA-Extensions/Disabling-AVX/m-p/961865#M4383</guid>
      <dc:creator>emmanuel_attia</dc:creator>
      <dc:date>2014-03-26T20:06:00Z</dc:date>
    </item>
    <item>
      <title>Quote:iliyapolak wrote:</title>
      <link>https://community.intel.com/t5/Intel-ISA-Extensions/Disabling-AVX/m-p/961866#M4384</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;iliyapolak wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;VS 2013 supports AVX &amp;nbsp;with /arch:AVX &amp;nbsp;option.&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;As does VS2012. &amp;nbsp;I meant the only non-AVX option would be SSE2.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2014 20:27:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-ISA-Extensions/Disabling-AVX/m-p/961866#M4384</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2014-03-26T20:27:24Z</dc:date>
    </item>
    <item>
      <title>I don't believe that it is</title>
      <link>https://community.intel.com/t5/Intel-ISA-Extensions/Disabling-AVX/m-p/961867#M4385</link>
      <description>&lt;P&gt;I don't believe that it is possible to disable AVX support in the processor.&amp;nbsp;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;To test your non-AVX code path on a machine that supports AVX, you will need to patch the run-time checks so that AVX *appears* to be unsupported.&amp;nbsp;&amp;nbsp; Based on earlier experience with patching binaries, I think there is a good chance that all of the checks for AVX support will be identical code fragments, so it should be possible to build a script to patch your binary.&amp;nbsp;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;This has been done before with checks for "Genuine Intel" in the string returned by the CPUID instruction, so it should be possible.&amp;nbsp; All you need to do is reverse the sense of the conditional branch instruction following the CPUID check for AVX support, which should be a simple overwrite of some bits with no change to the file size.&amp;nbsp;&amp;nbsp; The project may or may not be easy, depending on whether the compiler inserts the check once or many times, and whether the checks are identical in every occurrence.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2014 23:29:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-ISA-Extensions/Disabling-AVX/m-p/961867#M4385</guid>
      <dc:creator>McCalpinJohn</dc:creator>
      <dc:date>2014-03-26T23:29:18Z</dc:date>
    </item>
    <item>
      <title>I already have what you</title>
      <link>https://community.intel.com/t5/Intel-ISA-Extensions/Disabling-AVX/m-p/961868#M4386</link>
      <description>&lt;P&gt;I already have what you describe (i use an env variable next to my cpuid wrapper)&lt;BR /&gt;
	Actually what i want exactly is to make sure that there is no AVX at all in the "non AVX" code path.&lt;BR /&gt;
	Some poor optimisation or symbol conflicts can lead to these issue and i need to track them.&lt;/P&gt;

&lt;P&gt;In the meantime, i will use an "old" Xeon without AVX to make sure this hybrid binary works like a charm on a simple SSE4.2 machine :)&lt;BR /&gt;
	&lt;BR /&gt;
	Thanks for the answer&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2014 23:38:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-ISA-Extensions/Disabling-AVX/m-p/961868#M4386</guid>
      <dc:creator>emmanuel_attia</dc:creator>
      <dc:date>2014-03-26T23:38:00Z</dc:date>
    </item>
    <item>
      <title>Apparently the right way is</title>
      <link>https://community.intel.com/t5/Intel-ISA-Extensions/Disabling-AVX/m-p/961869#M4387</link>
      <description>&lt;P&gt;Apparently the right way is to launch as admin:&lt;/P&gt;

&lt;P&gt;bcdedit /set xsavedisable 1&lt;BR /&gt;
	&lt;BR /&gt;
	Then reboot of course&lt;BR /&gt;
	&lt;BR /&gt;
	I hope this thread will help ...&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2014 03:31:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-ISA-Extensions/Disabling-AVX/m-p/961869#M4387</guid>
      <dc:creator>emmanuel_attia</dc:creator>
      <dc:date>2014-03-27T03:31:00Z</dc:date>
    </item>
    <item>
      <title>Quote:Tim Prince wrote:</title>
      <link>https://community.intel.com/t5/Intel-ISA-Extensions/Disabling-AVX/m-p/961870#M4388</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Tim Prince wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Quote:&lt;/STRONG&gt;&lt;/P&gt;

&lt;BLOCKQUOTE&gt;&lt;EM&gt;iliyapolak&lt;/EM&gt; wrote:

	&lt;P&gt;VS 2013 supports AVX &amp;nbsp;with /arch:AVX &amp;nbsp;option.&lt;/P&gt;

	&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;As does VS2012. &amp;nbsp;I meant the only non-AVX option would be SSE2.&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;I misunderstood your post:)&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2014 07:12:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-ISA-Extensions/Disabling-AVX/m-p/961870#M4388</guid>
      <dc:creator>Bernard</dc:creator>
      <dc:date>2014-03-27T07:12:06Z</dc:date>
    </item>
    <item>
      <title>For patching you can use IDA</title>
      <link>https://community.intel.com/t5/Intel-ISA-Extensions/Disabling-AVX/m-p/961871#M4389</link>
      <description>&lt;P&gt;For patching you can use IDA freeware version which will recompile the patched exe.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2014 07:30:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-ISA-Extensions/Disabling-AVX/m-p/961871#M4389</guid>
      <dc:creator>Bernard</dc:creator>
      <dc:date>2014-03-27T07:30:25Z</dc:date>
    </item>
    <item>
      <title>Beside reversing conditional</title>
      <link>https://community.intel.com/t5/Intel-ISA-Extensions/Disabling-AVX/m-p/961872#M4390</link>
      <description>&lt;P&gt;Beside reversing conditional statement you can also&amp;nbsp;insert unconditional jump to non AVX code target.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2014 07:52:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-ISA-Extensions/Disabling-AVX/m-p/961872#M4390</guid>
      <dc:creator>Bernard</dc:creator>
      <dc:date>2014-03-27T07:52:13Z</dc:date>
    </item>
    <item>
      <title>I think you could use SDE</title>
      <link>https://community.intel.com/t5/Intel-ISA-Extensions/Disabling-AVX/m-p/961873#M4391</link>
      <description>&lt;P&gt;I think you could use SDE (http://software.intel.com/en-us/articles/intel-software-development-emulator) to lower capabilities of your CPU. I haven't tried it though.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2014 08:08:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-ISA-Extensions/Disabling-AVX/m-p/961873#M4391</guid>
      <dc:creator>andysem</dc:creator>
      <dc:date>2014-03-27T08:08:02Z</dc:date>
    </item>
    <item>
      <title>@iliyapolak: offtopic ...</title>
      <link>https://community.intel.com/t5/Intel-ISA-Extensions/Disabling-AVX/m-p/961874#M4392</link>
      <description>&lt;P&gt;@iliyapolak: offtopic ... again&lt;/P&gt;

&lt;P&gt;@andysem: Good idea, I will give it a try&lt;BR /&gt;
	In the future it might be a much better and finer solution than bcdedit that, in my understanding, would disable every AVX instruction set.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2014 13:30:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-ISA-Extensions/Disabling-AVX/m-p/961874#M4392</guid>
      <dc:creator>emmanuel_attia</dc:creator>
      <dc:date>2014-03-27T13:30:00Z</dc:date>
    </item>
    <item>
      <title>&gt;&gt;&gt;@iliyapolak: offtopic ...</title>
      <link>https://community.intel.com/t5/Intel-ISA-Extensions/Disabling-AVX/m-p/961875#M4393</link>
      <description>&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;@iliyapolak: offtopic ... again&amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;

&lt;P&gt;Why do you think so?&lt;/P&gt;

&lt;P&gt;Are not you trying to&amp;nbsp;disable&amp;nbsp;AVX&amp;nbsp;code path execution in&amp;nbsp;that exe?&lt;/P&gt;

&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;I have an exe (we don't care what produced it). It has AVX code path and SSE4 code path and it's not supposed to run any AVX code when it's not supported&amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2014 13:35:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-ISA-Extensions/Disabling-AVX/m-p/961875#M4393</guid>
      <dc:creator>Bernard</dc:creator>
      <dc:date>2014-03-27T13:35:39Z</dc:date>
    </item>
    <item>
      <title>Quote:iliyapolak wrote:</title>
      <link>https://community.intel.com/t5/Intel-ISA-Extensions/Disabling-AVX/m-p/961876#M4394</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;iliyapolak wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;@iliyapolak: offtopic ... again&amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;

&lt;P&gt;Why do you think so?&lt;/P&gt;

&lt;P&gt;Are not you trying to&amp;nbsp;disable&amp;nbsp;AVX&amp;nbsp;code path execution in&amp;nbsp;that exe?&lt;/P&gt;

&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;I have an exe (we don't care what produced it). It has AVX code path and SSE4 code path and it's not supposed to run any AVX code when it's not supported&amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Because i'm trying to make sure that my exe works perfectly on a SSE4 machine even if there is an AVX code path into it. If i alter the exe, there is nothing to test. I need to deploy the same binary for 2 generation of machines.&lt;/P&gt;

&lt;P&gt;SDE was exactly what i was looking for actually.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2014 13:38:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-ISA-Extensions/Disabling-AVX/m-p/961876#M4394</guid>
      <dc:creator>emmanuel_attia</dc:creator>
      <dc:date>2014-03-27T13:38:00Z</dc:date>
    </item>
    <item>
      <title>@emmanuel</title>
      <link>https://community.intel.com/t5/Intel-ISA-Extensions/Disabling-AVX/m-p/961877#M4395</link>
      <description>&lt;P&gt;@emmanuel&lt;/P&gt;

&lt;P&gt;Next time please express your intention more clearly.Btw , I thought that patching or reversing some cmp jmp instruction will suite your needs.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2014 17:15:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-ISA-Extensions/Disabling-AVX/m-p/961877#M4395</guid>
      <dc:creator>Bernard</dc:creator>
      <dc:date>2014-03-27T17:15:04Z</dc:date>
    </item>
    <item>
      <title>I'm sorry if i wasn't clear.</title>
      <link>https://community.intel.com/t5/Intel-ISA-Extensions/Disabling-AVX/m-p/961878#M4396</link>
      <description>&lt;P&gt;I'm sorry if i wasn't clear.&lt;BR /&gt;
	Thank you for spending time answering anyway.&lt;/P&gt;

&lt;P&gt;Kind regards&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2014 17:31:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-ISA-Extensions/Disabling-AVX/m-p/961878#M4396</guid>
      <dc:creator>emmanuel_attia</dc:creator>
      <dc:date>2014-03-27T17:31:09Z</dc:date>
    </item>
    <item>
      <title>It's ok.
You are welcome.</title>
      <link>https://community.intel.com/t5/Intel-ISA-Extensions/Disabling-AVX/m-p/961879#M4397</link>
      <description>&lt;P&gt;It's ok.&lt;/P&gt;

&lt;P&gt;You are welcome.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Mar 2014 10:21:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-ISA-Extensions/Disabling-AVX/m-p/961879#M4397</guid>
      <dc:creator>Bernard</dc:creator>
      <dc:date>2014-03-28T10:21:38Z</dc:date>
    </item>
    <item>
      <title>It is interesting to see how</title>
      <link>https://community.intel.com/t5/Intel-ISA-Extensions/Disabling-AVX/m-p/961880#M4398</link>
      <description>&lt;P&gt;It is interesting to see how easily you've got misunderstood and I see you expressed what you ask crystal-clear even in the begining.&amp;nbsp;&amp;nbsp;I needed exact same thing and desperately read all replies. Is so uncommon what you (and I) need???&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2019 00:36:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-ISA-Extensions/Disabling-AVX/m-p/961880#M4398</guid>
      <dc:creator>Muharrem_G_</dc:creator>
      <dc:date>2019-01-23T00:36:41Z</dc:date>
    </item>
    <item>
      <title>Emmanuel, Muharrem,</title>
      <link>https://community.intel.com/t5/Intel-ISA-Extensions/Disabling-AVX/m-p/961881#M4399</link>
      <description>&lt;P&gt;Emmanuel, Muharrem,&lt;/P&gt;&lt;P&gt;Both of you are clear on your requests. You not only wish to generate non-AVX code, but you also need to verify that the generated code together with any 3rd party object codes, libraries, DLLs/.so,&amp;nbsp;do not contain non-conforming code, and do so on a machine that supports AVX code.&lt;/P&gt;&lt;P&gt;One way to do this would be through use of an emulator. See: &lt;A href="https://sourceforge.net/projects/ia32/" target="_blank"&gt;https://sourceforge.net/projects/ia32/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You may need to tweak the emulator to permit your test to run.&lt;/P&gt;&lt;P&gt;Also note, that this may not test all code paths through the application, which may be difficult to do.&lt;/P&gt;&lt;P&gt;A second alternative is to modify a Linker, possibly by modifying: &lt;A href="https://android.googlesource.com/platform/bionic/+/android-4.2_r1/linker/linker.cpp" target="_blank"&gt;https://android.googlesource.com/platform/bionic/+/android-4.2_r1/linker/linker.cpp&lt;/A&gt;&lt;/P&gt;&lt;P&gt;To perform a pseudo link, whilst verifying no instructions beyond those desired. The modified linker would not be able to scan code that is not in object form (e.g. self modifying code). However, the modified linker will examine all object code as opposed to the emulator only testing code that is executed under the test conditions.&lt;/P&gt;&lt;P&gt;Jim Dempsey&lt;/P&gt;</description>
      <pubDate>Sat, 26 Jan 2019 16:02:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-ISA-Extensions/Disabling-AVX/m-p/961881#M4399</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2019-01-26T16:02:58Z</dc:date>
    </item>
  </channel>
</rss>

