-
Notifications
You must be signed in to change notification settings - Fork 1
OpenMP Threading #145
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
OpenMP Threading #145
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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>
|
🚀 [bumpr] Bumped! |
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.