[Openmp-commits] [openmp] r227447 - adding the jobs variable for parallel build

Andrey Churbanov Andrey.Churbanov at intel.com
Thu Jan 29 07:37:15 PST 2015


Author: achurbanov
Date: Thu Jan 29 09:37:15 2015
New Revision: 227447

URL: http://llvm.org/viewvc/llvm-project?rev=227447&view=rev
Log:
adding the jobs variable for parallel build

Modified:
    openmp/trunk/runtime/Makefile
    openmp/trunk/runtime/README.txt
    openmp/trunk/runtime/tools/common.inc
    openmp/trunk/runtime/tools/src/common-rules.mk

Modified: openmp/trunk/runtime/Makefile
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/Makefile?rev=227447&r1=227446&r2=227447&view=diff
==============================================================================
--- openmp/trunk/runtime/Makefile (original)
+++ openmp/trunk/runtime/Makefile Thu Jan 29 09:37:15 2015
@@ -18,12 +18,12 @@ default: omp
 all: omp stubs
 
 omp: info mkdir
-	@echo $(omp_root)/tools/build.pl $(build_args) --arch=$(arch) --mode=$(mode) lib inc common
-	$(omp_root)/tools/build.pl $(build_args) --arch=$(arch) --mode=$(mode) lib inc common
+	@echo $(omp_root)/tools/build.pl $(build_args) --arch=$(arch) --mode=$(mode) lib inc common -- -j$(jobs)
+	$(omp_root)/tools/build.pl $(build_args) --arch=$(arch) --mode=$(mode) lib inc common -- -j$(jobs)
 
 stubs: mkdir
-	@echo $(omp_root)/tools/build.pl $(build_args) --arch=$(arch) --mode=$(mode) --stubs lib inc common 
-	$(omp_root)/tools/build.pl $(build_args) --arch=$(arch) --mode=$(mode) --stubs lib inc common
+	@echo $(omp_root)/tools/build.pl $(build_args) --arch=$(arch) --mode=$(mode) --stubs lib inc common -- -j$(jobs)
+	$(omp_root)/tools/build.pl $(build_args) --arch=$(arch) --mode=$(mode) --stubs lib inc common -- -j$(jobs)
 
 .PHONY: clean info
 
@@ -45,4 +45,5 @@ endif
 	@echo compiler=$(compiler)	
 	@echo mic=$(mic)
 	@echo mode=$(mode)
+	@echo jobs=$(jobs)
 

Modified: openmp/trunk/runtime/README.txt
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/README.txt?rev=227447&r1=227446&r2=227447&view=diff
==============================================================================
--- openmp/trunk/runtime/README.txt (original)
+++ openmp/trunk/runtime/README.txt Thu Jan 29 09:37:15 2015
@@ -65,6 +65,10 @@ compiler:    Which compiler to use for t
 
 mode:        Library mode: default is "release".  Also supports "debug".
 
+jobs:        The number of parallel jobs for the underlying call to make.
+         This value is sent as the parameter to the -j flag for make.
+         This value defaults to "1", but can be set to any positive integer.
+
 To use any of the options above, simple add <option_name>=<value>.  For 
 example, if you want to build with gcc instead of icc, type:
 

Modified: openmp/trunk/runtime/tools/common.inc
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/tools/common.inc?rev=227447&r1=227446&r2=227447&view=diff
==============================================================================
--- openmp/trunk/runtime/tools/common.inc (original)
+++ openmp/trunk/runtime/tools/common.inc Thu Jan 29 09:37:15 2015
@@ -101,6 +101,9 @@ See the Tools tab at http://software.int
     endif
 endif
 
+# number of parallel build jobs
+jobs?=1
+
 export BUILD_COMPILER := $(compiler)
 
 

Modified: openmp/trunk/runtime/tools/src/common-rules.mk
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/tools/src/common-rules.mk?rev=227447&r1=227446&r2=227447&view=diff
==============================================================================
--- openmp/trunk/runtime/tools/src/common-rules.mk (original)
+++ openmp/trunk/runtime/tools/src/common-rules.mk Thu Jan 29 09:37:15 2015
@@ -158,6 +158,10 @@ expand-vars = $(perl) $(tools_dir)expand
             endif
         endif
 
+ifneq "$(pdb_file)" ""
+$(pdb_file) : $(lib_file)
+endif
+
 %.dbg : %$(dll) .rebuild
 	$(target)
         ifeq "$(arch)" "mic"





More information about the Openmp-commits mailing list