Skip to content

Commit

Permalink
Fix builds for DNNL on Linux ARM
Browse files Browse the repository at this point in the history
  • Loading branch information
saudet committed Aug 11, 2024
1 parent ca95556 commit e5291b7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dnnl/cppbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ case $PLATFORM in
strip ../lib/libtbb.so.*
cd ../oneDNN-$MKLDNN_VERSION
fi
sedinplace 's/constexpr GRF getBase/GRF getBase/g' src/gpu/jit/ngen/ngen_core.hpp
sedinplace 's/constexpr int32_t getDisp/int32_t getDisp/g' src/gpu/jit/ngen/ngen_core.hpp
sedinplace '/immintrin.h/d' src/gpu/jit/ngen/ngen_utils.hpp
# sedinplace 's/constexpr GRF getBase/GRF getBase/g' src/gpu/jit/ngen/ngen_core.hpp
# sedinplace 's/constexpr int32_t getDisp/int32_t getDisp/g' src/gpu/jit/ngen/ngen_core.hpp
# sedinplace '/immintrin.h/d' src/gpu/jit/ngen/ngen_utils.hpp
"$CMAKE" -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_SYSTEM_PROCESSOR=AARCH64 -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$INSTALL_PATH -DCMAKE_INSTALL_LIBDIR="lib" -DCMAKE_CXX_FLAGS='-Wl,-rpath,$ORIGIN/' -DARCH_OPT_FLAGS='-Wno-error' -DDNNL_BUILD_EXAMPLES=OFF -DDNNL_BUILD_TESTS=OFF -DDNNL_CPU_RUNTIME=$DNNL_CPU_RUNTIME -DTBBROOT=$INSTALL_PATH -DDNNL_GPU_RUNTIME=$DNNL_GPU_RUNTIME -DONEDNN_BUILD_GRAPH=OFF .
make -j $MAKEJ
make install/strip
Expand Down

0 comments on commit e5291b7

Please sign in to comment.