mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-19 10:35:42 +00:00
587 B
587 B
Enable Unity build
VTK-m now partially supports unity builds in a subset its sources files which are known to take the longer time/memory to build. Particularly, this enables you to speedup compilation in VTK-m not memory intensive builds (HIP, CUDA) in a system with sufficient resources.
We use BATCH
unity builds type and the number of source files per batch can be
controlled by the canonical CMake variable: CMAKE_UNITY_BUILD_BATCH_SIZE
.
Unity builds requires CMake >= 3.16, if using a older version, unity build will be disabled a regular build will be performed.