Error with XNNPACK

Mohammadreza_Nazari: <p>When trying to build pytorch 1.5 on centos 6.7, I get the following error from XNNPACK:</p>
<p>In file included from …/third_party/XNNPACK/include/xnnpack.h:15:0,<br>
from …/third_party/XNNPACK/src/xnnpack/params.h:15,<br>
from …/third_party/XNNPACK/src/xnnpack/raddextexp.h:11,<br>
from …/third_party/XNNPACK/src/f32-raddextexp/gen/avx2-p5-x80-acc5.c:15:<br>
…/third_party/pthreadpool/include/pthreadpool.h:183:2: warning: ‘pthreadpool_function_1d_t’ is deprecated [-Wdeprecated-declarations]<br>
pthreadpool_function_1d_t function,<br>
^~~~~~~~~~~~~~~~~~~~~~~~~<br>
…/third_party/pthreadpool/include/pthreadpool.h:189:2: warning: ‘pthreadpool_function_1d_tiled_t’ is deprecated [-Wdeprecated-declarations]<br>
pthreadpool_function_1d_tiled_t function,<br>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
…/third_party/pthreadpool/include/pthreadpool.h:196:2: warning: ‘pthreadpool_function_2d_t’ is deprecated [-Wdeprecated-declarations]<br>
pthreadpool_function_2d_t function,<br>
^~~~~~~~~~~~~~~~~~~~~~~~~<br>
…/third_party/pthreadpool/include/pthreadpool.h:203:2: warning: ‘pthreadpool_function_2d_tiled_t’ is deprecated [-Wdeprecated-declarations]<br>
pthreadpool_function_2d_tiled_t function,<br>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
…/third_party/pthreadpool/include/pthreadpool.h:212:2: warning: ‘pthreadpool_function_3d_tiled_t’ is deprecated [-Wdeprecated-declarations]<br>
pthreadpool_function_3d_tiled_t function,<br>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
…/third_party/pthreadpool/include/pthreadpool.h:223:2: warning: ‘pthreadpool_function_4d_tiled_t’ is deprecated [-Wdeprecated-declarations]<br>
pthreadpool_function_4d_tiled_t function,<br>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
/tmp/ccQoCO7m.s: Assembler messages:<br>
/tmp/ccQoCO7m.s:303: Error: suffix or operands invalid for <code>vpslld' /tmp/ccQoCO7m.s:307: Error: suffix or operands invalid for </code>vpslld’<br>
/tmp/ccQoCO7m.s:311: Error: suffix or operands invalid for <code>vpslld' /tmp/ccQoCO7m.s:314: Error: suffix or operands invalid for </code>vpslld’<br>
/tmp/ccQoCO7m.s:317: Error: suffix or operands invalid for <code>vpslld' /tmp/ccQoCO7m.s:320: Error: suffix or operands invalid for </code>vpslld’<br>
/tmp/ccQoCO7m.s:323: Error: suffix or operands invalid for <code>vpslld' /tmp/ccQoCO7m.s:326: Error: suffix or operands invalid for </code>vpslld’<br>
/tmp/ccQoCO7m.s:331: Error: suffix or operands invalid for <code>vpslld' /tmp/ccQoCO7m.s:336: Error: suffix or operands invalid for </code>vpslld’<br>
/tmp/ccQoCO7m.s:341: Error: suffix or operands invalid for <code>vpslld' /tmp/ccQoCO7m.s:345: Error: suffix or operands invalid for </code>vpslld’<br>
/tmp/ccQoCO7m.s:348: Error: suffix or operands invalid for <code>vpslld' /tmp/ccQoCO7m.s:353: Error: suffix or operands invalid for </code>vpslld’<br>
/tmp/ccQoCO7m.s:359: Error: suffix or operands invalid for <code>vpslld' /tmp/ccQoCO7m.s:391: Error: suffix or operands invalid for </code>vpslld’<br>
/tmp/ccQoCO7m.s:396: Error: suffix or operands invalid for <code>vpslld' /tmp/ccQoCO7m.s:400: Error: suffix or operands invalid for </code>vpslld’<br>
/tmp/ccQoCO7m.s:404: Error: suffix or operands invalid for <code>vpslld' /tmp/ccQoCO7m.s:405: Error: suffix or operands invalid for </code>vpslld’<br>
/tmp/ccQoCO7m.s:448: Error: suffix or operands invalid for <code>vpslld' /tmp/ccQoCO7m.s:451: Error: suffix or operands invalid for </code>vpslld’<br>
/tmp/ccQoCO7m.s:468: Error: suffix or operands invalid for <code>vpslld' /tmp/ccQoCO7m.s:516: Error: no such instruction: </code>vinserti128 $0x1,16(%rax),%ymm1,%ymm5’<br>
/tmp/ccQoCO7m.s:538: Error: suffix or operands invalid for <code>vpslld' /tmp/ccQoCO7m.s:541: Error: suffix or operands invalid for </code>vpslld’</p>
<p>I used gcc 7.4 for this build. Any ideas how to resolve this issue? Is there any way to disable this module, and if yes, what is the side effect on speed?</p>