Merged
Conversation
ryanmrichard
previously approved these changes
Sep 12, 2025
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR refactors the generation of AO integrals to optionally use OpenMP for threading, controlled by the INTEGRALS_ENABLE_OPENMP CMake flag and OMP_NUM_THREADS environment variable.
- Replaces sequential shell iteration with parallelized shell combination processing
- Adds OpenMP support with thread-safe engine allocation (one engine per thread)
- Introduces CMake configuration for optional OpenMP dependency and CI testing
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| src/integrals/libint/libint.cpp | Refactors integral computation to use OpenMP threading with per-thread engines and flattened shell iteration |
| CMakeLists.txt | Adds INTEGRALS_ENABLE_OPENMP option and OpenMP dependency configuration |
| .github/workflows/pull_request.yaml | Adds CI job to test OpenMP-enabled builds |
| .github/enable_openmp.cmake | Configuration file to enable OpenMP for CI testing |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Contributor
|
🚀 [bumpr] Bumped! |
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.
Is this pull request associated with an issue(s)?
No.
Description
Refactors the generation of AO integrals to optional use OpenMP for threading. OpenMP is optionally included with the
INTEGRALS_ENABLE_OPENMPCMake flag and controlled withOMP_NUM_THREADS.