Browse Source

Start 4 times less check jobs in mpi subdirectory, to avoid too much overload

Samuel Thibault 5 years ago
parent
commit
657e83ae5d
1 changed files with 12 additions and 0 deletions
  1. 12 0
      mpi/Makefile.am

+ 12 - 0
mpi/Makefile.am

@@ -26,3 +26,15 @@ versinclude_HEADERS = 					\
 	include/starpu_mpi.h				\
 	include/starpu_mpi_lb.h				\
 	include/fstarpu_mpi_mod.f90
+
+check-recursive:
+	RET=0 ; \
+	NJOBS=`printf %s "$(MAKEFLAGS)" | sed -ne 's/.*-j \?\([0-9]\+\).*/\1/p'` ; \
+	JOBS="" ; \
+	if [ -n "$$NJOBS" ] ; then \
+		JOBS="-j$$(($$NJOBS / 4))" ; \
+	fi ; \
+	for i in $(SUBDIRS) ; do \
+		$(MAKE) check -C $$i MAKEFLAGS="$(MAKEFLAGS) $$JOBS" || RET=1; \
+	done ; \
+	exit $$RET