search for: llvm_parallel_link_jobs

Displaying 20 results from an estimated 35 matches for "llvm_parallel_link_jobs".

2020 Apr 02
2
LLD issue on a massively parallel build machine
...om, > > Then what ratio do you think it’s minimal? > > > > It really depends on your configuration, but I usually try to have at > least 2 GB > of memory per core. However, I usually do Release builds, so Debug builds > might > need more. If you aren't using LLVM_PARALLEL_LINK_JOBS it's pretty easy > to > run out of memory once ninja starts linking the tools and unittests. > > -Tom For Debug (or RelWithDebInfo) I usually figure on around 5GB per thread to avoid swapping. Compiling is never an issue, it's the linking phase that uses memory. LLVM_PARALLE...
2020 Apr 04
2
LLD issue on a massively parallel build machine
On Thu, Apr 2, 2020 at 11:35 AM Itaru Kitayama via llvm-dev < llvm-dev at lists.llvm.org> wrote: > Setting LLVM_PARALLEL_LINK_JOBS > did not help a week or two weeks ago’s lld. > > But recent commits to lld might reflect the variable correctly. > FYI: the variable has nothing to do with lld itself (not commits to lld would change the behavior of this flag), as far as I know this is purely instructing ninja to limi...
2018 Sep 20
6
CMake build of LLVM/clang with -DCMAKE_BUILD_TYPE=Release does not create release versions?
Unfortunately, from personal experience, LLVM_PARALLEL_LINK_JOBS appears to have no effect for Visual Studio builds, AND some of the tools linked can take up several GB of RAM, so you'll end up with paging issues. I ended up getting a RAM upgrade in order to sensibly build it (note, I think builds with debug information take more memory than those that don...
2019 Sep 19
4
LLVM building problem
Dear all, I'm using a Virtual Machine with Ubuntu 18.04 at VIrtualBox and I'm trying to build the LLVM project from https://github.com/llvm/llvm-project.git. This VM has 6 cores (from an intel core i-7 8th gen), 11GB of RAM and 300GB of storage (from a 1TB HDD) at a laptop, this is the model: MSI GS63 Stealth 8RE. Then, I'm doing exactly that this tutorial says to build LLVM:
2016 Feb 25
4
Building with LLVM_PARALLEL_XXX_JOBS
...uot;cmake" build-system and >> wanted to speedup my build. >> >> In my build-script I use... >> >> CMAKE_JOBS="1" >> ##CMAKE_JOBS=$(($(getconf _NPROCESSORS_ONLN)+1)) >> JOBS_CMAKE_OPTS="-DLLVM_PARALLEL_COMPILE_JOBS=$CMAKE_JOBS >> -DLLVM_PARALLEL_LINK_JOBS=$CMAKE_JOBS" >> >> [1] says in "LLVM-specific variables" section... >> >> *** LLVM_PARALLEL_COMPILE_JOBS:STRING >> >> Define the maximum number of concurrent compilation jobs. >> >> *** LLVM_PARALLEL_LINK_JOBS:STRING >> >> D...
2017 Feb 23
5
System hangs during last stages of LLVM build | Tips on speeding it up ?
Hello, My system hangs every time during last stages of building LLVM ( starting at 95% in a CMake build ) using CMake or Ninja, sometime close to the linking of llvm-dysmutil. Could you please suggest tips that could speed up the compilation ? Thank You, Sanjay -------------- next part -------------- An HTML attachment was scrubbed... URL:
2020 Feb 02
3
lld out of memory
Hi, I am seeing an LLVM build failure with recent LLD on x86 like: [...] lib/libLLVMCodeGen.a lib/libLLVMBitWriter.a lib/libLLVMScalarOpts.a lib/libLLVMAgg ressiveInstCombine.a lib/libLLVMInstCombine.a lib/libLLVMTransformUtils.a lib/libLLVMDebugInfoDWARF.a lib/lib LLVMMCDisassembler.a lib/libLLVMExecutionEngine.a lib/libLLVMTarget.a lib/libLLVMAnalysis.a lib/libLLVMProfil eData.a
2019 Nov 26
5
debug build busts memory
The linking state of a Debug build seems to require a humongous amount of memory. My poor little linux machine with 16G of ram swaps its brains out. Waiting for it to finish (if it ever does) is like the old days when you submitted your deck of cards and waited until the next day to see the results. To debug a new backend, is there a way to just get the debug info for the Target/Foo
2016 Feb 25
1
Building with LLVM_PARALLEL_XXX_JOBS
...rep -i 'jobs|ninja' llvm-build/CMakeCache.txt //Program used to build from build.ninja files. CMAKE_MAKE_PROGRAM:FILEPATH=/opt/cmake/bin/ninja //Define the maximum number of concurrent compilation jobs. LLVM_PARALLEL_COMPILE_JOBS:STRING=3 //Define the maximum number of concurrent link jobs. LLVM_PARALLEL_LINK_JOBS:STRING=1 CMAKE_GENERATOR:INTERNAL=Ninja $ LC_ALL=C ls -alt logs/3.8.0rc3_clang-3-8-0-rc3_cmake-3-4-3_ninja-1-6-0/ total 360 drwxr-xr-x 2 wearefam wearefam 4096 Feb 25 19:58 . drwxr-xr-x 6 wearefam wearefam 4096 Feb 25 19:58 .. -rw-r--r-- 1 wearefam wearefam 130196 Feb 25 19:54 install-log_llvm...
2020 Aug 08
2
Switching to Ninja
You can set the LLVM_PARALLEL_LINK_JOBS CMake variable to restrict the number of link jobs. On Sat, Aug 8, 2020 at 3:00 PM Neil Nelson via llvm-dev < llvm-dev at lists.llvm.org> wrote: > https://ninja-build.org/manual.html > > ninja -h prints help output. Many of Ninja’s flags intentionally match > those of Make; e.g...
2016 Sep 17
5
(Thin)LTO llvm build
...debug info it consumes 0.6GB with 8 threads, 0.9GB with 16 threads, and 1.4GB with 32 threads. > With full debug info, we still have room for improvement, right now it consumes 2.3GB with 8 threads, 3.5GB with 16 threads, and 6.5GB with 32 threads. > > So I believe that configuring with -DDLLVM_PARALLEL_LINK_JOBS=1 should be enough without other constrains, but your mileage may vary. Sure, I'll try that to not introduce too many variables into the configure changes, though I have to ask if using lld would make it possible to have a common -Wl that works across platforms, being able to ignore if it'...
2016 Mar 01
2
Building with LLVM_PARALLEL_XXX_JOBS
...>> //Program used to build from build.ninja files. >> CMAKE_MAKE_PROGRAM:FILEPATH=/opt/cmake/bin/ninja >> //Define the maximum number of concurrent compilation jobs. >> LLVM_PARALLEL_COMPILE_JOBS:STRING=3 >> //Define the maximum number of concurrent link jobs. >> LLVM_PARALLEL_LINK_JOBS:STRING=1 >> CMAKE_GENERATOR:INTERNAL=Ninja >> >> $ LC_ALL=C ls -alt logs/3.8.0rc3_clang-3-8-0-rc3_cmake-3-4-3_ninja-1-6-0/ >> total 360 >> drwxr-xr-x 2 wearefam wearefam 4096 Feb 25 19:58 . >> drwxr-xr-x 6 wearefam wearefam 4096 Feb 25 19:58 .. >> -rw-...
2016 Feb 25
0
Building with LLVM_PARALLEL_XXX_JOBS
...configure and make" to "cmake" build-system and > wanted to speedup my build. > > In my build-script I use... > > CMAKE_JOBS="1" > ##CMAKE_JOBS=$(($(getconf _NPROCESSORS_ONLN)+1)) > JOBS_CMAKE_OPTS="-DLLVM_PARALLEL_COMPILE_JOBS=$CMAKE_JOBS > -DLLVM_PARALLEL_LINK_JOBS=$CMAKE_JOBS" > > [1] says in "LLVM-specific variables" section... > > *** LLVM_PARALLEL_COMPILE_JOBS:STRING > > Define the maximum number of concurrent compilation jobs. > > *** LLVM_PARALLEL_LINK_JOBS:STRING > > Define the maximum number of concurr...
2020 Aug 08
2
Switching to Ninja
> On Aug 8, 2020, at 3:32 PM, Dmitry Mikushin via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > Cool, thanks! > > вс, 9 авг. 2020 г. в 00:27, Petr Hosek <phosek at chromium.org <mailto:phosek at chromium.org>>: > You can set the LLVM_PARALLEL_LINK_JOBS CMake variable to restrict the number of link jobs. IMO, a more thorough solution would be switching to LLD (the gold linker might work few years ago, but now even gold will take me nearly 16GB of RAM), usually LLD won’t take you more than 4GB -Min > > On Sat, Aug 8, 2020 at 3:00 PM Neil Ne...
2016 Jul 21
3
[llvm-toolchain v3.8.1] LTO: Linking clang hangs with ld.gold and LLVMgold.so plugin
Hi, unfortunately, my build somehow hangs when linking clang binary and my system is in an unusable state. My toolchain is clang-3.8, gold-1.11 and LLVMgold.so from binutils v2.26.1 (both selfmade) and LTO-flag is enabled. My buildsystem uses cmake-3.6.0 and ninja-1.7.1 (both prebuilt). I have 52 last steps left in my 3rd build. My Linux-kernel is v3.13.0-92 from official Ubuntu repositories.
2016 Feb 25
0
Building with LLVM_PARALLEL_XXX_JOBS
...>>> wanted to speedup my build. >>> >>> In my build-script I use... >>> >>> CMAKE_JOBS="1" >>> ##CMAKE_JOBS=$(($(getconf _NPROCESSORS_ONLN)+1)) >>> JOBS_CMAKE_OPTS="-DLLVM_PARALLEL_COMPILE_JOBS=$CMAKE_JOBS >>> -DLLVM_PARALLEL_LINK_JOBS=$CMAKE_JOBS" >>> >>> [1] says in "LLVM-specific variables" section... >>> >>> *** LLVM_PARALLEL_COMPILE_JOBS:STRING >>> >>> Define the maximum number of concurrent compilation jobs. >>> >>> *** LLVM_PARALLEL_LINK...
2016 Sep 27
4
(Thin)LTO llvm build
On Tue, Sep 27, 2016 at 6:53 AM, Mehdi Amini <mehdi.amini at apple.com> wrote: > > > > On Sep 27, 2016, at 2:18 AM, Carsten Mattner <carstenmattner at gmail.com> > wrote: > > > >> On Mon, Sep 26, 2016 at 11:02 PM, Teresa Johnson <tejohnson at google.com> > wrote: > >> I'll either need to get a reproducer from you and/or try to repro
2016 Mar 01
2
Building with LLVM_PARALLEL_XXX_JOBS
...inja files. > >>> CMAKE_MAKE_PROGRAM:FILEPATH=/opt/cmake/bin/ninja > >>> //Define the maximum number of concurrent compilation jobs. > >>> LLVM_PARALLEL_COMPILE_JOBS:STRING=3 > >>> //Define the maximum number of concurrent link jobs. > >>> LLVM_PARALLEL_LINK_JOBS:STRING=1 > >>> CMAKE_GENERATOR:INTERNAL=Ninja > >>> > >>> $ LC_ALL=C ls -alt > logs/3.8.0rc3_clang-3-8-0-rc3_cmake-3-4-3_ninja-1-6-0/ > >>> total 360 > >>> drwxr-xr-x 2 wearefam wearefam 4096 Feb 25 19:58 . > >>> drwxr-xr-...
2016 Jul 23
2
[llvm-toolchain v3.8.1] LTO: Linking clang hangs with ld.gold and LLVMgold.so plugin
...> > > > - EOT - > > Hi, > > in the meantime I tried with Linux v4.4.y LTS and 2GiB swap-space. > So I have 4 GiB RAM and 2GiB SWAP in total 6GiB. > > Paul Rouschal recommended to reduce parallel-compile-jobs from 2 to 1... > > LLVM_PARALLEL_COMPILE_JOBS=1 > LLVM_PARALLEL_LINK_JOBS=1 > > ...but that did not help. > > My Ubuntu/precise hangs and looking at top shows MEM/SWAP to be eaten. > > Anyone has experiences how much RAM or SWAP I need when building a > LTO-optimized llvm-toolchain with Clang, GNU/gold and LLVMgold-Plugin? > > My build-script i...
2016 Feb 25
2
Building with LLVM_PARALLEL_XXX_JOBS
Hi, I switched from "configure and make" to "cmake" build-system and wanted to speedup my build. In my build-script I use... CMAKE_JOBS="1" ##CMAKE_JOBS=$(($(getconf _NPROCESSORS_ONLN)+1)) JOBS_CMAKE_OPTS="-DLLVM_PARALLEL_COMPILE_JOBS=$CMAKE_JOBS -DLLVM_PARALLEL_LINK_JOBS=$CMAKE_JOBS" [1] says in "LLVM-specific variables" section... *** LLVM_PARALLEL_COMPILE_JOBS:STRING Define the maximum number of concurrent compilation jobs. *** LLVM_PARALLEL_LINK_JOBS:STRING Define the maximum number of concurrent link jobs. ...whereas my configure-log says.....