dnnl_aarch64 icon indicating copy to clipboard operation
dnnl_aarch64 copied to clipboard

Build with recent versions of Python3

Open kawakami-k opened this issue 4 years ago • 0 comments

Recent versions of Python, for example 3.9.0, seem to get an error during the building of XED incorporated by dnnl_aarch64. Fortunately, the latest version of the original XED can be built with Python 3.9.0 in the AArch64 environment, so we can use it. In this case, the build instructions are as follows.

git clone https://github.com/fujitsu/dnnl_aarch64.git
cd dnnl_aarch64/
git submodule update --init  --recursive
cd third_party/xbyak_translator_aarch64/translator/third_party/
rm -rf mbuild xed
git clone https://github.com/intelxed/xed.git
git clone https://github.com/intelxed/mbuild.git
cd ../../../
mkdir build_xed_aarch64
cd build_xed_aarch64
../xbyak_translator_aarch64/translator/third_party/xed/mfile.py --shared examples install
cd kits/
ln -sf xed-install-base-* xed
cd ../../../
mkdir build_aarch64
cd build_aarch64/
cmake ..
make -j40

Some warning messages, such as

cc1plus: warning: /home/kawakami/tmp/dnnl_aarch64/build_aarch64/src/CMakeFiles/mkldnn.dir/cmake_pch.hxx.gch: had text segment at different address
cc1plus: warning: unrecognized command line option '-Wno-unused-private-field'

, are outputed. but they should do no real harm.

kawakami-k avatar Nov 11 '20 05:11 kawakami-k