From 3de4b495fb176eba9a0eb517a4ce05903cb67acb Mon Sep 17 00:00:00 2001 From: Juan Gomez Luna Date: Wed, 16 Jun 2021 19:46:05 +0200 Subject: PrIM -- first commit --- NW/baselines/cpu/Makefile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 NW/baselines/cpu/Makefile (limited to 'NW/baselines/cpu/Makefile') diff --git a/NW/baselines/cpu/Makefile b/NW/baselines/cpu/Makefile new file mode 100644 index 0000000..f49dd2f --- /dev/null +++ b/NW/baselines/cpu/Makefile @@ -0,0 +1,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 -- cgit v1.2.3