-
Notifications
You must be signed in to change notification settings - Fork 1
/
make.sh
executable file
·19 lines (13 loc) · 1011 Bytes
/
make.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
SMM_ROOT=/home/tangjian/libxsmm
MKL_ROOT=/home/tangjian/compilers_and_libraries_2018.2.199
# make libxsmm
cd ${SMM_ROOT}
make CXX=g++ CC=gcc WARP=1
cd -
# make libxsmm
g++ sgemm.cc -I${SMM_ROOT}/include ${SMM_ROOT}/lib/libxsmm.a ${SMM_ROOT}/lib/libxsmmnoblas.a -ldl -lrt -lpthread -lm -lstdc++ -o xsmm_sgemm
g++ paddle_sgemm.cc -I${SMM_ROOT}/include ${SMM_ROOT}/lib/libxsmm.a ${SMM_ROOT}/lib/libxsmmnoblas.a -ldl -lrt -lpthread -lm -lstdc++ -o paddle_xsmm_sgemm
# make MKL version
g++ sgemm.cc -DMKL -DMKL_DIRECT_CALL_SEQ -I${MKL_ROOT}/include -Wl,--start-group ${MKL_ROOT}/lib/intel64/libmkl_intel_lp64.a ${MKL_ROOT}/lib/intel64/libmkl_core.a ${MKL_ROOT}/lib/intel64/libmkl_sequential.a -Wl,--end-group -ldl -lpthread -lstdc++ -o mkl_sgemm
g++ paddle_sgemm.cc -DMKL -I${MKL_ROOT}/include -Wl,--start-group ${MKL_ROOT}/lib/intel64/libmkl_intel_lp64.a ${MKL_ROOT}/lib/intel64/libmkl_core.a ${MKL_ROOT}/lib/intel64/libmkl_sequential.a -Wl,--end-group -ldl -lpthread -lstdc++ -o paddle_mkl_sgemm