[Kokkos] Add a COMPILER option to Makefile, which turns on streaming stores for Intel

This commit is contained in:
Tom Deakin 2017-04-05 22:23:27 +01:00
parent d7e38c1ca9
commit d7a93be739

View File

@ -3,6 +3,21 @@ default: kokkos-stream
include $(KOKKOS_PATH)/Makefile.kokkos 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 ifndef TARGET
define target_help define target_help
Set TARGET to change to offload device. Defaulting to CPU. Set TARGET to change to offload device. Defaulting to CPU.