<?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 Thanks.
It works well. in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Permute-some-values/m-p/1056696#M52307</link>
    <description>&lt;P&gt;Thanks.&lt;/P&gt;

&lt;P&gt;It works well.&lt;/P&gt;</description>
    <pubDate>Wed, 21 Jan 2015 22:42:52 GMT</pubDate>
    <dc:creator>Jeremias_M_</dc:creator>
    <dc:date>2015-01-21T22:42:52Z</dc:date>
    <item>
      <title>Permute some values</title>
      <link>https://community.intel.com/t5/Software-Archive/Permute-some-values/m-p/1056694#M52305</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I'm trying to copy some values using one instruction between two registers(__m512i). I'm started using permutation, but the function _mm512_permutevar_epi32&lt;SPAN class="sig"&gt;(&lt;SPAN class="param_type"&gt;__m512i&lt;/SPAN&gt; &lt;SPAN class="param_name"&gt;idx&lt;/SPAN&gt;, &lt;SPAN class="param_type"&gt;__m512i&lt;/SPAN&gt; &lt;SPAN class="param_name"&gt;a&lt;/SPAN&gt;)&lt;/SPAN&gt; needs a complete new permutation (idx) for all elements and I need to keep some elements (99s in example).&lt;/P&gt;

&lt;P&gt;I need something like that:&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;__m512i a = {21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36};
__m512i idx = {-,-,-,-,0,1,2,3,4,5,6,7,8,9,10,11};
__m512i dst = {99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99};

dst = _m512_permutevar_epi32(idx,a); // {99,99,99,99,21,22,23,24,25,26,27,28,29,30,31,32};
&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;
	&lt;/P&gt;&lt;P&gt;If anyone could suggest a instruction in KNC that do this, I appreciate.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jan 2015 17:45:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Permute-some-values/m-p/1056694#M52305</guid>
      <dc:creator>Jeremias_M_</dc:creator>
      <dc:date>2015-01-21T17:45:36Z</dc:date>
    </item>
    <item>
      <title>Use the variation of the same</title>
      <link>https://community.intel.com/t5/Software-Archive/Permute-some-values/m-p/1056695#M52306</link>
      <description>&lt;P&gt;Use the variation of the same intrinsic that uses the write mask&lt;/P&gt;

&lt;DIV style="padding-bottom: 5px;"&gt;
	&lt;DIV style="padding: 5px 10px;"&gt;
		&lt;DIV&gt;
			&lt;DIV style="padding: 0px 0px 2px; text-indent: -60pt; margin-left: 60pt;"&gt;&lt;SPAN&gt;&lt;FONT color="#000066"&gt;__m512i&lt;/FONT&gt;&lt;/SPAN&gt; &lt;SPAN&gt;&lt;FONT color="#000000"&gt;_mm512_mask_permutexvar_epi32&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;FONT color="#666666"&gt; (&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;FONT color="#000066"&gt;__m512i&lt;/FONT&gt;&lt;/SPAN&gt; src&lt;SPAN&gt;&lt;FONT color="#000000"&gt;, &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;FONT color="#000066"&gt;__mmask16&lt;/FONT&gt;&lt;/SPAN&gt; k&lt;SPAN&gt;&lt;FONT color="#000000"&gt;, &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;FONT color="#000066"&gt;__m512i&lt;/FONT&gt;&lt;/SPAN&gt; idx&lt;SPAN&gt;&lt;FONT color="#000000"&gt;, &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;FONT color="#000066"&gt;__m512i&lt;/FONT&gt;&lt;/SPAN&gt; a&lt;SPAN&gt;&lt;FONT color="#666666"&gt;)&lt;/FONT&gt;&lt;/SPAN&gt;;&lt;/DIV&gt;

			&lt;DIV style="padding: 0px 0px 2px; text-indent: -60pt; margin-left: 60pt;"&gt;&amp;nbsp;&lt;/DIV&gt;

			&lt;DIV style="padding: 0px 0px 2px; text-indent: -60pt; margin-left: 60pt;"&gt;&amp;nbsp;&lt;/DIV&gt;

			&lt;DIV style="padding: 0px 0px 2px; text-indent: -60pt; margin-left: 60pt;"&gt;&lt;SPAN&gt;&lt;FONT color="#666666"&gt;Jim Dempsey&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
		&lt;/DIV&gt;
	&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 21 Jan 2015 21:40:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Permute-some-values/m-p/1056695#M52306</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2015-01-21T21:40:00Z</dc:date>
    </item>
    <item>
      <title>Thanks.
It works well.</title>
      <link>https://community.intel.com/t5/Software-Archive/Permute-some-values/m-p/1056696#M52307</link>
      <description>&lt;P&gt;Thanks.&lt;/P&gt;

&lt;P&gt;It works well.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jan 2015 22:42:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Permute-some-values/m-p/1056696#M52307</guid>
      <dc:creator>Jeremias_M_</dc:creator>
      <dc:date>2015-01-21T22:42:52Z</dc:date>
    </item>
  </channel>
</rss>

