Skip to content

Conversation

@ax3l
Copy link
Member

@ax3l ax3l commented Feb 24, 2025

Unity builds combine all .cpp files into a single one (a single translation unit, TU). This is useful for performance optimization, computer science experiments, or differentiable programming (#824, #825).

ax3l added 3 commits February 24, 2025 13:39
Unity builds combine all `.cpp` files into a single one
(a single translation unit, TU). This is useful for
performance optimization, computer science experiments,
or differentiable programming.
@ax3l ax3l merged commit 61b13e4 into BLAST-ImpactX:development Feb 24, 2025
15 of 16 checks passed
@ax3l ax3l deleted the topic-unity-build branch February 24, 2025 23:47
EZoni added a commit to BLAST-WarpX/warpx that referenced this pull request Mar 24, 2025
Unity builds combine all `.cpp` files into a single one (a single
translation unit, TU). This is useful for performance optimization,
computer science experiments, or differentiable programming.

FYI: A CPU unity build of ImpactX is around 18sec on my laptop
(BLAST-ImpactX/impactx#861), for WarpX around
3:30min. In both cases, this refers to the `lib*` of ImpactX/WarpX part.

---------

Co-authored-by: Edoardo Zoni <[email protected]>
dpgrote pushed a commit to dpgrote/WarpX that referenced this pull request Apr 15, 2025
Unity builds combine all `.cpp` files into a single one (a single
translation unit, TU). This is useful for performance optimization,
computer science experiments, or differentiable programming.

FYI: A CPU unity build of ImpactX is around 18sec on my laptop
(BLAST-ImpactX/impactx#861), for WarpX around
3:30min. In both cases, this refers to the `lib*` of ImpactX/WarpX part.

---------

Co-authored-by: Edoardo Zoni <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants