From 8fee86a23230231dc2de5143c1c6b5c46dc6576a Mon Sep 17 00:00:00 2001 From: James Price Date: Fri, 24 Feb 2017 13:17:12 +0000 Subject: [PATCH] Add compiler help to OpenCL.make --- OpenCL.make | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/OpenCL.make b/OpenCL.make index f43ebfa..244398a 100644 --- a/OpenCL.make +++ b/OpenCL.make @@ -1,15 +1,22 @@ ifndef COMPILER -$(info Define a compiler to set common defaults, i.e make COMPILER=GNU) +define compiler_help +Set COMPILER to ensure correct flags are set. +Available compilers are: + GNU CLANG INTEL CRAY +endef +$(info $(compiler_help)) endif COMPILER_ = $(CXX) COMPILER_GNU = g++ +COMPILER_CLANG = clang++ COMPILER_INTEL = icpc COMPILER_CRAY = CC FLAGS_ = -O3 -std=c++11 FLAGS_GNU = -O3 -std=c++11 +FLAGS_CLANG = -O3 -std=c++11 FLAGS_INTEL = -O3 -std=c++11 FLAGS_CRAY = -O3 -hstd=c++11 CXXFLAGS=$(FLAGS_$(COMPILER))