blob: f49dd2f26fb6ee41bcc19aacda4314587c14df40 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# C compiler
CC = g++
ICC = icc
CC_FLAGS = -g -O3 -fopenmp
OFFLOAD_CC_FLAGS = -offload-option,mic,compiler,"-no-opt-prefetch"
all: needle needle_offload
needle:
$(CC) $(CC_FLAGS) needle.cpp -o needle
needle_offload:
$(ICC) $(CC_FLAGS) $(OFFLOAD_CC_FLAGS) -DOMP_OFFLOAD needle.cpp -o needle_offload
clean:
rm -f needle needle_offload
|