Questions tagged [parallel-builds]

Parallel building harnesses the advantages of multi-core processors to speed up compilation and building, by compiling several files in parallel.

58 questions
95
votes
6 answers

How do I configure portable parallel builds in CMake?

Is it somehow possible to be able to have a parallel build no matter which build tool is used? Under Unix we can add make -jN where N are the number of threads, and under Windows I added to the CXX_FLAG "/MP" which is then used in Visual Studio to…
Gabriel
  • 8,990
  • 6
  • 57
  • 101
57
votes
6 answers

How can I do a parallel build in Visual Studio 2010?

How can I get VS 2010 to run more than one C++ compile process at a time? I mean building object modules in parallel; I'm not interested in building more than one project at a time (I know about Tools > Options > Build and Run < Maximum number of…
Ross Smith
  • 3,719
  • 1
  • 25
  • 22
42
votes
3 answers

Parallel make: set -j8 as the default option

I can set number of threads for the build process using -j argument. For example, I have 4 cores +4 virtual. When I write: make -j8 the speed increases 4 times. Is it possible to set that value as default? (For example, in Linux Gentoo, in config…
Max Frai
  • 61,946
  • 78
  • 197
  • 306
29
votes
6 answers

Using multiple cores/processors when compiling Java

I use a desktop with eight cores to build a Java application using Ant (through a javac target). Is there a way to speed up the compilation by using more than one thread or process? I know I can run several Ant tasks in parallel, but I don't think…
Xavier Nodet
  • 5,033
  • 2
  • 37
  • 48
19
votes
3 answers

cmake and parallel building with "make -jN"

I'm trying to setup a parallel CMake-based build for my source tree, but when I issue $ cmake . $ make -j2 I get: jobserver unavailable: using -j1. Add '+' to parent make rule as a warning. Does anyone have an idea if it is possible to fix it…
Roman Dmitrienko
  • 3,375
  • 3
  • 37
  • 48
17
votes
2 answers

How many Jenkins Executors can you have?

I'm running parallel tests with Jenkins. The way I have it set up is I have a build flow job that executes three other jobs, in parallel. The three other jobs are connected to separate Test XML files. When I initially started this I had a problem…
colin
  • 603
  • 1
  • 7
  • 21
16
votes
5 answers

From CMake setup 'make' to use '-j' option by default

I want my CMake project to be built by make -j N, whenever I call make from the terminal. I don't want to set -j option manually every time. For that, I set CMAKE_MAKE_PROGRAM variable to the specific command line. I use the ProcessorCount()…
JimBamFeng
  • 709
  • 1
  • 4
  • 20
12
votes
1 answer

How to do a parallel build in Visual Studio 2013?

According to this MSDN article: http://msdn.microsoft.com/en-us/library/cyz1h6zd.aspx one "can run multi-processor builds for C++ and C# projects." using the IDE. My solution contains only C# projects, but when I do "Build Solution" I can only see…
Ivan P.
  • 265
  • 1
  • 4
  • 8
9
votes
0 answers

How can I see maven's parallel build graph

Parallel builds in Maven 3 are a good thing. The process uses dependency graph to evaluate the order of builds, and the doc states the following: ... This goes by declared dependencies in the pom, and there is no good log of how this graph is…
Vic
  • 21,473
  • 11
  • 76
  • 97
8
votes
2 answers

How see all non threadsafe plugins in maven?

I have read about maven parallel build configuration in this. So how I can display all non thread safe plugins? Is there something like "plugin-not-safe-list" command in maven? REM something like that to display all p[lugins without @threadSafe …
Cherry
  • 31,309
  • 66
  • 224
  • 364
7
votes
2 answers

Run maven test in parallel without waiting for sibling module dependencies

I have a multi-module maven project in which the modules have quite a few dependencies between them. I have tried running my tests in parallel, but since the modules are not very well thought off and are highly dependent on each other, I basically…
Alex A
  • 173
  • 1
  • 12
6
votes
2 answers

"Serialize" Bamboo builds?

We are using Bamboo v3.1.1 as our continuous integration build server, and it works quite well - most of the time. One issue we're having is that we're doing a fair amount of database-oriented testing, e.g. the builds do some of their unit and…
marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
6
votes
3 answers

CMake ExternalProject_Add and parallel builds

With the following CMakeLists.txt build script: include( ExternalProject ) ExternalProject_Add( framework SOURCE_DIR ${framework_SOURCE} PREFIX framework_build INSTALL_DIR ${framework_DISTRIBUTION} ) …
Ben Crowhurst
  • 8,204
  • 6
  • 48
  • 78
5
votes
1 answer

MSBuild - race condition while trying to build project references

I'm facing a weird issue while trying to build using MSBuild. I'm using MSBuild to build a solution file with /m (parallel build) and BuildProjectReferences set to true. Suppose I have A.vcxproj and B.vcxproj in the .sln file with B having a project…
5
votes
0 answers

How to get seperate log files for each module while using maven -T option

My project structure is as follows : Main_Proj - pom.xml - Component1 - pom.xml - Component2 - pom.xml - Component3 - pom.xml I have three independent components . I am…
1
2 3 4