-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (24 loc) · 1.11 KB
/
Copy pathMakefile
File metadata and controls
30 lines (24 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
default:
icc -Wall -pedantic -fopenmp -O3 -o itestGEMM naivegemm.c
# icc -Wall -pedantic -fopenmp -O3 -o itestjacobi jacobi.c
icx -Wall -pedantic -fiopenmp -fopenmp -O3 -o itestjacobi jacobi.c
debug:
icc -Wall -pedantic -fopenmp -g -o testGEMM naivegemm.c
icc -Wall -pedantic -fopenmp -g -o testjacobi jacobi.c
gcc:
gcc -Wall -pedantic -fopenmp -O3 -o testGEMM naivegemm.c
gcc -Wall -pedantic -fopenmp -O3 -o testjacobi jacobi.c
timingTest:
icx -Wall -pedantic -fiopenmp -fopenmp -O3 -o itestjacobiCPU jacobiCPU.c
icx -Wall -pedantic -fiopenmp -fopenmp -O3 -o itestjacobiGPU0 jacobiGPUBase.c
icx -Wall -pedantic -fiopenmp -fopenmp -O3 -o itestjacobiGPU1 jacobiGPUMap.c
icx -Wall -pedantic -fiopenmp -fopenmp -O3 -o itestjacobiGPU2 jacobiGPUSC.c
cat times.txt >> oldtimings.txt
./itestjacobiCPU 1000 1000 > times.txt
./itestjacobiGPU0 1000 1000 >> times.txt
./itestjacobiGPU1 1000 1000 >> times.txt
./itestjacobiGPU2 1000 1000 >> times.txt
clean:
rm itestjacobiCPU itestjacobiGPU0 itestjacobiGPU1 itestjacobiGPU2 \
itestjacobi itestGEMM testGEMM testjacobi
# Experiment with differences between gcc and icc