Blame view

openacc/Makefile 365 Bytes
5a17f58ad   kmazouzi   add jacobi for op...
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
  
  CC=gcc
  
  CFLAGS=-O3   -std=c99 -Wall
  LDFLAG= -lm
  
  OMPFLAG=-fopenmp -D_OMP
  
  PGCC=pgcc
  PGCFLAGS=-acc -ta=nvidia -Minfo
  
  
  NAME=jacobi
  
  default: seq omp
  
  seq:
  	$(CC) $(CFLAGS) $(NAME).c -o $(NAME).seq.exe $(LDFLAG)
  
  omp:
  	$(CC) $(CFLAGS) $(OMPFLAG) $(NAME).c -o $(NAME).omp.exe $(LDFLAG)
  
  
  gpu:
  	$(PGCC) $(PGCFLAGS) $(NAME).c  -o $(NAME).pgi.exe
  
  clean: 
  	rm -f  *.exe