add -O2 to helloAcceptance
added test case test/smoke/flang-sollve-bug1
to reflect flang -O0 has issue with omp_is_initial_device
error: hello.f90:7:1: in function __nv_MAIN__TARGET_F1L6_1_ void (i64*): unsupported call to variadic function omp_is_initial_device
@@ -58,7 +58,7 @@ INSTALLED_GPU = $(shell $(AOMP)/bin/mygpu -d gfx900) # Default AOMP_GPU is gfx9
AOMP_GPU ?= $(INSTALLED_GPU)
endif
ifeq ($(TARGETS),)
-TARGETS =-fopenmp -fopenmp-targets=amdgcn-amd-amdhsa -Xopenmp-target=amdgcn-amd-amdhsa -march=$(AOMP_GPU)
+TARGETS =-fopenmp -fopenmp-targets=amdgcn-amd-amdhsa -Xopenmp-target=amdgcn-amd-amdhsa -march=$(AOMP_GPU) -O2
endif
FORT =$(AOMP)/bin/flang
