Add Intel GT OMP offloading support for icpc
This commit is contained in:
parent
09458ef866
commit
98b0939669
@ -16,7 +16,7 @@ ifndef TARGET
|
|||||||
define target_help
|
define target_help
|
||||||
Set TARGET to change device (defaulting to CPU).
|
Set TARGET to change device (defaulting to CPU).
|
||||||
Available targets are:
|
Available targets are:
|
||||||
CPU NVIDIA AMD
|
CPU NVIDIA AMD INTEL_GT
|
||||||
|
|
||||||
endef
|
endef
|
||||||
$(info $(target_help))
|
$(info $(target_help))
|
||||||
@ -36,7 +36,7 @@ CXX = $(COMPILER_$(COMPILER))
|
|||||||
|
|
||||||
FLAGS_GNU = -O3 -std=c++11 -march=native
|
FLAGS_GNU = -O3 -std=c++11 -march=native
|
||||||
FLAGS_GNU_PPC = -O3 -std=c++11 -mcpu=native
|
FLAGS_GNU_PPC = -O3 -std=c++11 -mcpu=native
|
||||||
FLAGS_INTEL = -O3 -std=c++11 -xHOST -qopt-streaming-stores=always
|
FLAGS_INTEL = -O3 -std=c++11
|
||||||
FLAGS_CRAY = -O3 -std=c++11
|
FLAGS_CRAY = -O3 -std=c++11
|
||||||
FLAGS_CLANG = -O3 -std=c++11
|
FLAGS_CLANG = -O3 -std=c++11
|
||||||
FLAGS_XL = -O5 -qarch=auto -qtune=auto -std=c++11
|
FLAGS_XL = -O5 -qarch=auto -qtune=auto -std=c++11
|
||||||
@ -61,6 +61,9 @@ OMP_CLANG_NVIDIA = -DOMP_TARGET_GPU -fopenmp=libomp -fopenmp-targets=nvptx64-nvi
|
|||||||
OMP_GNU_NVIDIA = -DOMP_TARGET_GPU -fopenmp -foffload=nvptx-none
|
OMP_GNU_NVIDIA = -DOMP_TARGET_GPU -fopenmp -foffload=nvptx-none
|
||||||
OMP_GNU_AMD = -DOMP_TARGET_GPU -fopenmp -foffload=amdgcn-amdhsa
|
OMP_GNU_AMD = -DOMP_TARGET_GPU -fopenmp -foffload=amdgcn-amdhsa
|
||||||
|
|
||||||
|
OMP_INTEL_CPU = -xHOST -qopt-streaming-stores=always
|
||||||
|
OMP_INTEL_INTEL_GT = -DOMP_TARGET_GPU -qnextgen -fiopenmp -fopenmp-targets=spir64
|
||||||
|
|
||||||
ifndef OMP_$(COMPILER)_$(TARGET)
|
ifndef OMP_$(COMPILER)_$(TARGET)
|
||||||
$(error Targeting $(TARGET) with $(COMPILER) not supported)
|
$(error Targeting $(TARGET) with $(COMPILER) not supported)
|
||||||
endif
|
endif
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user