File: compile

package info (click to toggle)
python-escript 5.0-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 87,772 kB
  • ctags: 49,550
  • sloc: python: 585,488; cpp: 133,173; ansic: 18,675; xml: 3,283; sh: 690; makefile: 215
file content (13 lines) | stat: -rwxr-xr-x 573 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
# simple bash script to compile the MKL benchmark program on a 64-bit Linux system

#source /opt/mkl/10.2.3.029/tools/environment/mklvarsem64t.sh

export MKLROOT="/opt/intel/mkl"
export MKLPATH="${MKLROOT}/lib/intel64/"

nvcc -O3 -arch=sm_13 -c main.cu -I../../ -I $THRUST_PATH -I $MKLROOT/include
g++ -O3 mkl.c main.o -o bench -I $MKLROOT/include \
    -L/usr/local/cuda/lib64 -L$MKLPATH/libmkl_solver_lp64.a \
    -Wl,--start-group $MKLPATH/libmkl_intel_lp64.a $MKLPATH/libmkl_gnu_thread.a $MKLPATH/libmkl_core.a -Wl,--end-group \
    -fopenmp -lpthread -lcudart -lcuda