瀏覽代碼

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

Samuel Thibault 5 年之前
父節點
當前提交
657e83ae5d
共有 1 個文件被更改,包括 12 次插入0 次删除
  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