Add help messages to RAJA Makefile
This commit is contained in:
parent
bbdd5b9fcb
commit
3be4ebc1a2
22
RAJA.make
22
RAJA.make
@ -1,6 +1,12 @@
|
|||||||
|
|
||||||
ifndef TARGET
|
ifndef TARGET
|
||||||
$(info No target defined. Specify CPU or GPU. Defaulting to CPU)
|
define target_help
|
||||||
|
Set TARGET to change to offload device. Defaulting to CPU.
|
||||||
|
Available targets are:
|
||||||
|
CPU (default)
|
||||||
|
GPU
|
||||||
|
endef
|
||||||
|
$(info $(target_help))
|
||||||
TARGET=CPU
|
TARGET=CPU
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@ -9,7 +15,12 @@ COMP=$(CXX)
|
|||||||
CXXFLAGS = -O3 -std=c++11 -DRAJA_TARGET_CPU
|
CXXFLAGS = -O3 -std=c++11 -DRAJA_TARGET_CPU
|
||||||
|
|
||||||
ifndef COMPILER
|
ifndef COMPILER
|
||||||
$(info No COMPILER defined. Specify COMPILER for correct OpenMP flag.)
|
define compiler_help
|
||||||
|
Set COMPILER to ensure correct OpenMP flags are set.
|
||||||
|
Available compilers are:
|
||||||
|
INTEL GNU CRAY
|
||||||
|
endef
|
||||||
|
$(info $(compiler_help))
|
||||||
endif
|
endif
|
||||||
ifeq ($(COMPILER), INTEL)
|
ifeq ($(COMPILER), INTEL)
|
||||||
COMP = icpc
|
COMP = icpc
|
||||||
@ -26,7 +37,12 @@ else ifeq ($(TARGET), GPU)
|
|||||||
COMP = nvcc
|
COMP = nvcc
|
||||||
|
|
||||||
ifndef ARCH
|
ifndef ARCH
|
||||||
$(error No ARCH defined. Specify target GPU architecture (e.g. ARCH=sm_35))
|
define arch_help
|
||||||
|
Set ARCH to ensure correct GPU architecture.
|
||||||
|
Example:
|
||||||
|
ARCH=sm_35
|
||||||
|
endef
|
||||||
|
$(error $(arch_help))
|
||||||
endif
|
endif
|
||||||
CXXFLAGS = --expt-extended-lambda -O3 -std=c++11 -x cu -Xcompiler -fopenmp -arch $(ARCH)
|
CXXFLAGS = --expt-extended-lambda -O3 -std=c++11 -x cu -Xcompiler -fopenmp -arch $(ARCH)
|
||||||
endif
|
endif
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user