Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR introduces a new ci_clang container environment to test compilation with the Clang compiler, which has shown performance benefits in GitHub workflow testing. The changes configure Spack to build a comprehensive stack using Clang instead of GCC.
Key Changes:
- Added new
ci_clangspack environment configured to build with Clang compiler and enable inter-procedural optimization (IPO) - Configured MPI to use mpich without Fortran support to better accommodate Clang compilation
- Enabled mixed-toolchain compiler discovery in Docker builds to support both Clang and GCC compilers
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| spack-environment/packages.yaml | Adds MPI configuration requiring mpich 4.2.1 without Fortran support to accommodate Clang builds |
| spack-environment/ci_clang/spack.yaml | New spack environment configuration that requires Clang compiler, enables IPO where available, and includes comprehensive package list for CI testing |
| containers/debian/Dockerfile | Adds --mixed-toolchain flag to compiler discovery to support mixed Clang/GCC toolchain usage |
| .gitlab-ci.yml | Adds ci_clang to the nightly build matrix for the eic environment |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
ac6a952 to
a84edb8
Compare
wdconinc
commented
Jul 3, 2026
Comment on lines
395
to
399
| ENV: | ||
| - ci | ||
| - ci_clang | ||
| - ci_without_acts | ||
| - cvmfs |
Comment on lines
394
to
400
| - BUILD_IMAGE: eic_ | ||
| ENV: | ||
| - ci | ||
| - ci_clang | ||
| - ci_without_acts | ||
| - cvmfs | ||
| - xl |
Comment on lines
+1
to
+14
| spack: | ||
| include: | ||
| - ../concretizer.yaml | ||
| - ../config.yaml | ||
| - ../packages.yaml | ||
| - ../packages_root_without_opengl.yaml | ||
| - ../view.yaml | ||
| packages: | ||
| all: | ||
| require: | ||
| - '%clang' | ||
| - any_of: [build_system=cmake, '@:'] | ||
| - any_of: [build_type=Release, '@:'] | ||
| specs: |
Comment on lines
+8
to
+11
| packages: | ||
| geant4: | ||
| require: | ||
| - ~opengl |
| mpich: | ||
| require: | ||
| - '@4.2.1:' | ||
| - -fortran |
Comment on lines
394
to
400
| - BUILD_IMAGE: eic_ | ||
| ENV: | ||
| - ci | ||
| - ci_clang | ||
| - ci_without_acts | ||
| - cvmfs | ||
| - xl |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Briefly, what does this PR introduce?
Needs:
Tests in GitHub workflows of epic and EICrecon indicate faster and smaller code when compiled with clang instead of gcc. This PR prepares a stack to run some tests with.
What kind of change does this PR introduce?