From d7a93be73972b627b68370487838501e09f31ba4 Mon Sep 17 00:00:00 2001 From: Tom Deakin Date: Wed, 5 Apr 2017 22:23:27 +0100 Subject: [PATCH] [Kokkos] Add a COMPILER option to Makefile, which turns on streaming stores for Intel --- Kokkos.make | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Kokkos.make b/Kokkos.make index 4bba1c8..1c6207d 100644 --- a/Kokkos.make +++ b/Kokkos.make @@ -3,6 +3,21 @@ default: kokkos-stream include $(KOKKOS_PATH)/Makefile.kokkos +ifndef COMPILER +define compiler_help +Set COMPILER to change flags (defaulting to GNU). +Available compilers are: + GNU INTEL + +endef +$(info $(compiler_help)) +COMPILER=GNU +endif + +COMPILER_GNU = g++ +COMPILER_INTEL = icpc -qopt-streaming-stores=always +CXX = $(COMPILER_$(COMPILER)) + ifndef TARGET define target_help Set TARGET to change to offload device. Defaulting to CPU.