Last active
May 15, 2020 22:17
-
-
Save ChaiBapchya/a849cfd566b8114e695454850b48077b to your computer and use it in GitHub Desktop.
OpPerf repro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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