Error in installing pytorch 1.1.0 with cuda 9.0 from source

username: Eleanor456
cooked: <p>[1208/4410] Building CXX object third_p…dir/src/FbgemmFloat16ConvertAvx512.cc.<br>
FAILED: third_party/fbgemm/CMakeFiles/fbgemm_avx512.dir/src/FbgemmFloat16ConvertAvx512.cc.o<br>
/opt/rh/devtoolset-4/root/usr/bin/c++  -DFBGEMM_STATIC -DTH_BLAS_MKL -I…/third_party/cpuinfo/include -I…/third_party/fbgemm/third_party/asmjit/src -I…/third_party/fbgemm/include -I…/third_party/fbgemm -I…/cmake/…/third_party/benchmark/include -isystem …/cmake/…/third_party/googletest/googlemock/include -isystem …/cmake/…/third_party/googletest/googletest/include -isystem …/third_party/protobuf/src -isystem /home/liuxiyang/anaconda3/envs/torch1_1/include -isystem …/third_party/gemmlowp -isystem …/third_party/neon2sse -isystem …/third_party/XNNPACK/include -Wno-deprecated -fvisibility-inlines-hidden -fopenmp -O3 -DNDEBUG -fPIC -fvisibility=hidden   -m64 -mavx2 -mfma -mavx512f -mavx512bw -mavx512dq -mavx512vl -masm=intel -std=c++11 -MD -MT third_party/fbgemm/CMakeFiles/fbgemm_avx512.dir/src/FbgemmFloat16ConvertAvx512.cc.o -MF third_party/fbgemm/CMakeFiles/fbgemm_avx512.dir/src/FbgemmFloat16ConvertAvx512.cc.o.d -o third_party/fbgemm/CMakeFiles/fbgemm_avx512.dir/src/FbgemmFloat16ConvertAvx512.cc.o -c …/third_party/fbgemm/src/FbgemmFloat16ConvertAvx512.cc<br>
/tmp/ccp0wFOC.s: Assembler messages:<br>
/tmp/ccp0wFOC.s:53: Error: operand size mismatch for <code>vbroadcastss' /tmp/ccp0wFOC.s:55: Error: operand size mismatch for </code>vbroadcastss’<br>
[1227/4410] Building CXX object third_p…avx2.dir/src/FbgemmI8DepthwiseAvx2.cc.<br>
ninja: build stopped: subcommand failed.<br>
Traceback (most recent call last):<br>
File “setup.py”, line 737, in <br>
build_deps()<br>
File “setup.py”, line 316, in build_deps<br>
cmake=cmake)<br>
File “/home/liuxiyang/peige/DFDC/pytorch/tools/build_pytorch_libs.py”, line 62, in build_caffe2<br>
cmake.build(my_env)<br>
File “/home/liuxiyang/peige/DFDC/pytorch/tools/setup_helpers/cmake.py”, line 339, in build<br>
self.run(build_args, my_env)<br>
File “/home/liuxiyang/peige/DFDC/pytorch/tools/setup_helpers/cmake.py”, line 141, in run<br>
check_call(command, cwd=self.build_dir, env=env)<br>
File “/home/liuxiyang/anaconda3/envs/torch1_1/lib/python3.6/subprocess.py”, line 311, in check_call<br>
raise CalledProcessError(retcode, cmd)<br>
subprocess.CalledProcessError: Command ‘[‘cmake’, ‘–build’, ‘.’, ‘–target’, ‘install’, ‘–config’, ‘Release’, ‘–’, ‘-j’, ‘20’]’ returned non-zero exit status 1.</p>
<p>What should I do to solve this problem? Thank you.</p>
<p>g++ version is 5.3.1<br>
cmake version is 3.14.0</p>

username: ptrblck
cooked: <p>Could you try to sync the submodules and rerun the installation?</p>
<pre><code class="lang-auto">git submodule sync &amp;&amp; git submodule update --init --recursive
</code></pre>

username: ganyk
cooked: <p>Hi, I met the same problem and have synced the submodules, but the problem still exists, are there any other solutions.</p>

username: ptrblck
cooked: <p>Could you try to uninstall all PyTorch installations, sync the submodules and rebuild?<br>
Also, if that doesn’t help, create a new (conda) environment and try to build PyTorch there.</p>
<p>If that still doesn’t help, could you please post the stack trace here?</p>

username: Eleanor456
cooked: <p>I updated my python to 3.7 and then used the following command to solve this problem.</p>
<p>git submodule sync &amp;&amp; git submodule update --init --recursive</p>
<p>------------------ Original ------------------</p>