Skip to content

Instantly share code, notes, and snippets.

@ChaiBapchya
Last active May 15, 2020 22:17
Show Gist options
  • Save ChaiBapchya/a849cfd566b8114e695454850b48077b to your computer and use it in GitHub Desktop.
Save ChaiBapchya/a849cfd566b8114e695454850b48077b to your computer and use it in GitHub Desktop.
OpPerf repro
set -e
echo "default or fix"
read type
if [ "$type" == "fix" ]; then
export CXXFLAGS="${CXXFLAGS} -DUSE_MKL -I/opt/intel/mkl/include"
elif [ "$type" == "default" ]; then
unset CXXFLAGS
else
echo "unrecognized type: ${type}"
exit
fi
rm -rf build/
mkdir build && cd build/
cmake -GNinja -DUSE_CUDA=OFF -DCMAKE_BUILD_TYPE=Release -DUSE_BLAS=mkl ..
ninja -j 90
cd ..
pip3 install -e python/.
python3 benchmark_intel_mkl.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment