USE_OFFLOAD_ARCH=1 to force smoke to use --offload-arch=
@@ -57,9 +57,13 @@ endif
ifeq ($(TARGET),)
ifeq ($(OMP_HOST),)
+ ifeq ($(USE_OFFLOAD_ARCH),1)
+ TARGET = --offload-arch=$(AOMP_GPU)
+ else
TARGET = -fopenmp-targets=$(AOMP_GPUTARGET) -Xopenmp-target=$(AOMP_GPUTARGET) -march=$(AOMP_GPU)
endif
endif
+endif
# OFFLOAD_DEBUG is used by this test harnass to turn on HOST and/or DEVICE level debug
ifeq ($(OFFLOAD_DEBUG),1)
@@ -89,12 +93,16 @@ ifeq ($(OFFLOAD_DEBUG),5)
endif
ifeq ($(OMP_FLAGS),)
+ ifeq ($(USE_OFFLOAD_ARCH),1)
+ OMP_FLAGS = -fopenmp $(TARGET)
+ else
ifeq ($(OMP_HOST),)
OMP_FLAGS = -target $(AOMP_CPUTARGET) -fopenmp $(TARGET)
else
OMP_FLAGS = -target $(AOMP_CPUTARGET) -fopenmp
endif
endif
+endif
OMP_FLAGS += $(EXTRA_OMP_FLAGS)
ifeq ($(VERBOSE),1)
