[Kokkos] Add a COMPILER option to Makefile, which turns on streaming stores for Intel
This commit is contained in:
parent
d7e38c1ca9
commit
d7a93be739
15
Kokkos.make
15
Kokkos.make
@ -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.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user