Untitled

 avatar
unknown
makefile
2 years ago
610 B
4
Indexable
INTEL_COMPILER := icc
SOURCE_FOLDER := ./src

COMPILER_FLAGS := -O3 -diag-disable=10441 -parallel
PARARELL_FLAGS := -qopenmp
REPORT_FLAGS := -qopt-report=5 -qopt-report-phase=par

.PHONY: build
build:
	$(INTEL_COMPILER) $(COMPILER_FLAGS) $(PARARELL_FLAGS) $(REPORT_FLAGS) $(SOURCE_FOLDER)/ex1.c -o $(SOURCE_FOLDER)/ex1_out
	$(INTEL_COMPILER) $(COMPILER_FLAGS) $(PARARELL_FLAGS) $(REPORT_FLAGS) $(SOURCE_FOLDER)/ex2.c -o $(SOURCE_FOLDER)/ex2_out

run: build
	echo ---EX1 OUTPUT---
	$(SOURCE_FOLDER)/ex1_out
	echo ---EX2 OUTPUT--- >> ex_2_report_times.txt
	$(SOURCE_FOLDER)/ex2_out 1000 >> ex_2_report_times.txt
Editor is loading...
Leave a Comment