Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

only fetch acts and compile it if not found in image #1649

Merged
merged 4 commits into from
Mar 24, 2025

Conversation

tomeichlersmith
Copy link
Member

@tomeichlersmith tomeichlersmith commented Mar 11, 2025

I am updating ldmx-sw, here are the details.

What are the issues that this addresses?

This does not have a corresponding issue here. I am following up with LDMX-Software/dev-build-context#115 while preparing for a v5 release of the ldmx/dev image.

Check List

  • I successfully compiled ldmx-sw with my developments. I test compiled with the newer image that has Acts locally. The CI will check that these developments work with the v4.2.2 image that does not have Acts.
  • I read, understood and follow the coding rules.
  • I ran my developments and the following shows that they are successful.

The CI checks that an image without Acts can still compile and run.
I can show that this works with the newer image candidate that has Acts built in.

tom@appa:~/code/ldmx/ldmx-sw$ just use ldmx/dev:5.0.0-rc1
denv config image ldmx/dev:5.0.0-rc1
tom@appa:~/code/ldmx/ldmx-sw$ just configure
git fetch --tags && git describe --tags | cut -f 1 -d '-' > VERSION
denv cmake -B build -S . -DADDITIONAL_WARNINGS=ON -DENABLE_CLANG_TIDY=ON 
[ INFO ]: Building all modules.
[ INFO ]: Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.83.0/BoostConfig.cmake (found version "1.83.0") found components: log 
[ INFO ]: Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.83.0/BoostConfig.cmake (found version "1.83.0") found components: system log filesystem thread chrono atomic regex 
[ INFO ]: Deduced git SHA: 06e0b4dcde035ef689ab83b104b0f5f89d212c49
[ INFO ]: Building ROOT dictionary LinkDef
Looking for libboost_python
[ INFO ]: Building the modules necessary for the reconstruction.
[ INFO ]: Found ONNX Runtime version 
[ INFO ]: Found Acts 36.0.0
[ INFO ]: Found Geant4 version 10.2.3
[ INFO ]: Building the modules necessary for the simulation.
[ INFO ]: Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.83.0/BoostConfig.cmake (found version "1.83.0") found components: log 
[ INFO ]: Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.83.0/BoostConfig.cmake (found suitable version "1.83.0", minimum required is "1.68") found components: iostreams 
[ INFO ]: Installing all field map files.
-- Configuring done (0.7s)
-- Generating done (0.5s)
-- Build files have been written to: /home/tom/code/ldmx/ldmx-sw/build

@tvami
Copy link
Member

tvami commented Mar 11, 2025

Isn't the solution to move those virtual destructors to be non virtual (even tho they are supposed to be virtual but given that ACTS didnt do them virtual...)?

@tomeichlersmith
Copy link
Member Author

That would be the solution, but that would involve editing Acts and I do not want to do that. There are also other warnings (turned errors) from Acts that are seen by the compiler that we are ignoring with the same SYSTEM strategy. I'm just localizing the SYSTEM include to be more specific.

include_directories(SYSTEM Tracking/acts/Core/include)

@tvami
Copy link
Member

tvami commented Mar 11, 2025

Yeah I agree that editing ACTS is beyond what we should do, but the earlier warning I saw in your original commit were about the inherited class which we have control over. It's true that I didnt look at the full list, so maybe there is some stuff that we have no control over... in that case going back to the SYSTEM approach is fine

if they aren't our message types, then they might be CMake stuff that we
should let CMake deal with. The most prominent example of this for me is
the ActsConfig.cmake module which prints out a bunch of stuff that can
be silenced by passing QUIET to find_package **if we don't modify the
ARGV ourselves**
@tomeichlersmith tomeichlersmith marked this pull request as ready for review March 19, 2025 19:13
@tomeichlersmith tomeichlersmith merged commit 0fa4e86 into trunk Mar 24, 2025
7 of 13 checks passed
@tomeichlersmith tomeichlersmith deleted the move-acts-to-image branch March 24, 2025 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants