Giter Club home page Giter Club logo

Comments (3)

fLindahl avatar fLindahl commented on August 29, 2024 1

Actually, removing the --parallel seems to increase the build speed for me. This might be relevant to anyone else that is having the same issues...

from fips.

floooh avatar floooh commented on August 29, 2024

Hmm, by default fips should do parallel builds by running cmake --parallel N where N is the number of parallel jobs.

To check, first run fips list settings, this should have a line "jobs", for instance on my MBP this shows 6 (default) and on my Windows machine it shows 10 (default). The default value is derived from the number of CPU cores (detected via python's multiprocessing.cpu_count() plus 2.

Then when running fips build you should see the cmake command line scroll by, which should show the --parallel argument, for instance on my Mac:

cmake --build . --parallel 6 --config Debug --

...so the first thing to check if this autodetected core count is somewhat correct. If not, you can override manually:

fips set jobs 32

When building the sokol-samples project (on the Windows command line, with the VStudio toolchain) I see activity on all cores (but the cores are not saturated, I guess it's mostly IO bound), this project contains many small targets though, I'm not sure how well Visual Studio can parallelize within a single target.

from fips.

fLindahl avatar fLindahl commented on August 29, 2024

It's executing with --parallel 10, and the settings also tells me it's supposed to run 10 jobs.

=== building: vulkan-win64-vscode-debug
cmake --build . --parallel 10 --config Debug --

trying to build manually, it seems like the problem is somewhere in cmake, so this might not be the right forum for this... I'll close this for now.

Thanks anyways!

from fips.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.