Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • VTK-m VTK-m
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 206
    • Issues 206
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 35
    • Merge requests 35
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • VTKVTK
  • VTK-mVTK-m
  • Merge requests
  • !2600

CMAKE: add unity builds support

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Vicente Bolea requested to merge vbolea/vtk-m:add-unity-builds into master Oct 11, 2021
  • Overview 31
  • Commits 1
  • Pipelines 20
  • Changes 4

Very experimental, it only works with with recent CMAKES, older CMAKE will just ignore this.

It allows grouping instantiations files through the cmake variable -DCMAKE_UNITY_BUILD_BATCH_SIZE=X setting default batch size to 1, since this is the safest choice.

Here is a benchmark exploring the performance using different batch sizes:

https://gitlab.kitware.com/vbolea/vtkm-benchmarks/-/tree/master/10-12-21_instantiations

Edited Nov 08, 2021 by Vicente Bolea
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: add-unity-builds