File tree 3 files changed +9
-1
lines changed
3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,10 @@ ifeq ($(TARGET), C910V)
55
55
TARGET_FLAGS = -march=rv64gcv0p7_zfh_xtheadc -mabi=lp64d
56
56
endif
57
57
58
+ ifeq ($(USE_OPENMP), 1)
59
+ EXFLAGS += -fopenmp
60
+ endif
61
+
58
62
all: getarch_2nd
59
63
./getarch_2nd 0 >> $(TARGET_MAKE)
60
64
./getarch_2nd 1 >> $(TARGET_CONF)
Original file line number Diff line number Diff line change @@ -1941,6 +1941,10 @@ printf("ELF_VERSION=2\n");
1941
1941
printf ("MAKEFLAGS += -j %d\n" , get_num_cores ());
1942
1942
#endif
1943
1943
1944
+ #if defined(_OPENMP )
1945
+ printf ("OPENMP_VERSION = %d\n" , _OPENMP );
1946
+ #endif
1947
+
1944
1948
break ;
1945
1949
1946
1950
case '1' : /* For config.h */
Original file line number Diff line number Diff line change 26
26
# this does not work with OpenMP nor with native Windows or Android threads
27
27
# FIXME TBD if this works on OSX, SunOS, POWER and zarch
28
28
ifeq ($(OSNAME ) , $(filter $(OSNAME ) ,Linux CYGWIN_NT) )
29
- ifneq ($(USE_OPENMP ) , 1)
29
+ ifeq ($(shell test x" $( USE_OPENMP ) " -ne x1 -o $( OPENMP_VERSION ) -ge 201811 && echo 1 ) , 1)
30
30
OBJS += test_fork.o
31
31
endif
32
32
OBJS += test_post_fork.o
You can’t perform that action at this time.
0 commit comments