Skip to content

Commit

Permalink
utest: test fork safety on OpenMP >= 5
Browse files Browse the repository at this point in the history
In addition to testing fork safety on non-OpenMP builds, test it when
omp_pause_resource_all() is available to release the locks.
  • Loading branch information
aitap committed Feb 19, 2025
1 parent f677f4f commit 806073c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions utest/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,14 @@ endif
#this does not work with OpenMP nor with native Windows or Android threads
# FIXME TBD if this works on OSX, SunOS, POWER and zarch
ifeq ($(OSNAME), $(filter $(OSNAME),Linux CYGWIN_NT))
ifneq ($(USE_OPENMP), 1)
OBJS += test_fork.o
ifeq ($(USE_OPENMP), 1)
ifeq ($(HAVE_OMP_PAUSE_RESOURCE_ALL), 1)
OBJS += test_fork.o
endif
OBJS += test_post_fork.o
else
OBJS += test_fork.o
endif
OBJS += test_post_fork.o
endif

ifeq ($(C_COMPILER), PGI)
Expand Down

0 comments on commit 806073c

Please sign in to comment.