-
Notifications
You must be signed in to change notification settings - Fork 0
ci: Run CI on all branches and pin CFD library version #15
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
Merged
Merged
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
56efe67
ci: Run CI on all branches and pin CFD library version
shaia 6685d5c
feat: Update Python bindings for CFD library v0.1.5
shaia 666c64e
fix: Add CFD build include directory for cfd_export.h
shaia dd27e7f
ci: Fix duplicate workflow runs on push+PR
shaia 5a46f68
fix: Link OpenMP for CFD library parallel backends
shaia 0626078
test: Skip GPU solvers when CUDA not available
shaia 66e23c4
ci: Use CFD fix branch to guard GPU solver registration
shaia 824b7e9
ci: Enable CUDA build on Linux with multi-arch support
shaia 8cda133
ci: Enable CUDA build on Windows
shaia 3b60f47
ci: Update CUDA architectures to Turing+ (75, 80, 86, 89, 90)
shaia 288d3f5
docs: Update migration plan to target CFD library v0.1.6
shaia 7d1aa89
ci: Build CPU-only wheels and target CFD v0.1.6
shaia 46c9bb1
ci: Build dual wheel variants (CPU and CUDA) for cfd-python
shaia 9539828
fix: Link modular CFD libraries for v0.1.6 compatibility
shaia f995bec
fix: Use pip instead of uv for wheel installation in tests
shaia 255174b
chore: Use CUDA 12.0.0 for better compatibility
shaia 95e7238
fix: Remove non-standard wheel filename renaming
shaia c6052e7
docs: Add CHANGELOG and update migration plan for v0.1.6
shaia 441f001
fix: Simplify CUDA toolkit installation in CI
shaia 263da63
Move pytest import to module level in test_boundary_conditions.py
shaia d63ab96
Install GCC before CUDA toolkit to fix installation errors
shaia 6cfd475
Update CHANGELOG with latest CI/build fixes
shaia 2a4c435
docs: Fix version references for consistency with v0.1.6
shaia 3269912
fix: Use network method for CUDA installation to avoid hangs
shaia f656648
fix: Use local method with override flag for CUDA installation
shaia 075ccc6
fix: Use NVIDIA package repository for CUDA installation
shaia ce625fe
fix: Install minimal CUDA packages to avoid broken dependencies
shaia 247ff53
fix: Install GCC 12 for CUDA 12.0 compatibility
shaia fded3e0
fix: Upgrade to CUDA 12.4 for modern compiler compatibility
shaia d195a08
test: Skip write_csv_timeseries tests pending CFD library fix
shaia 22420ec
fix: Disable uv cache in test job to prevent cache errors
shaia a49ca71
fix: Use apt for CUDA runtime in Linux test job
shaia File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| # Changelog | ||
|
|
||
| All notable changes to this project will be documented in this file. | ||
|
|
||
| The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), | ||
| and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
|
||
| ## [Unreleased] | ||
|
|
||
| ### Added | ||
| - Dual-variant wheel builds supporting both CPU-only and CUDA-enabled configurations | ||
| - Matrix build strategy in CI for separate CPU and CUDA wheel artifacts | ||
| - Support for CFD library v0.1.6 modular backend libraries | ||
|
|
||
| ### Changed | ||
| - Updated build system to link modular CFD libraries (cfd_api, cfd_core, cfd_scalar, cfd_simd, cfd_omp, cfd_cuda) | ||
| - Migrated to CUDA 12.0.0 from 12.6.2 for better stability and compatibility | ||
| - Switched from `uv pip` to standard `pip` for wheel installation in CI tests | ||
| - Updated CMakeLists.txt to use GNU linker groups on Linux for circular dependency resolution | ||
|
|
||
| ### Fixed | ||
| - CMake library detection for CFD v0.1.6 static builds | ||
| - Wheel installation compatibility with Python stable ABI (abi3) wheels | ||
| - Removed non-standard wheel filename modifications for PEP 427 compliance | ||
| - CUDA toolkit installation by installing GCC 11 before CUDA on Linux | ||
| - Simplified CUDA toolkit installation by removing sub-packages parameter | ||
| - Test code style: moved pytest imports to module level for consistency | ||
|
|
||
| ## [0.1.0] - 2025-12-26 | ||
|
|
||
| ### Added | ||
| - Initial Python bindings for CFD library v0.1.5 | ||
| - Core simulation API bindings (create, step, destroy) | ||
| - Solver registry and solver creation | ||
| - Grid management functions | ||
| - Boundary condition API (periodic, neumann, dirichlet, noslip, inlet, outlet) | ||
| - Backend selection for boundary conditions (scalar, SIMD, OpenMP, CUDA) | ||
| - Error handling API | ||
| - Basic test suite | ||
| - GitHub Actions CI/CD pipeline | ||
|
|
||
| ### Changed | ||
| - Updated to CFD library v0.1.5 API (context-bound registry, new type names) | ||
| - Migrated from bundled headers to system-installed CFD library | ||
|
|
||
| ### Technical Details | ||
| - Python 3.9+ support using stable ABI (abi3) | ||
| - Static linking of CFD library into extension module | ||
| - NumPy integration for array handling | ||
| - scikit-build-core for modern build system |
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
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -31,25 +31,63 @@ else() | |||||
| endif() | ||||||
| message(STATUS "CFD_ROOT_DIR: ${CFD_ROOT_DIR}") | ||||||
|
|
||||||
| # Source headers in lib/include, generated headers (cfd_export.h) in build/lib/include | ||||||
| set(CFD_INCLUDE_DIR "${CFD_ROOT_DIR}/lib/include") | ||||||
| set(CFD_BUILD_INCLUDE_DIR "${CFD_ROOT_DIR}/build/lib/include") | ||||||
| set(CFD_LIBRARY_DIRS | ||||||
| "${CFD_ROOT_DIR}/build/lib/Release" | ||||||
| "${CFD_ROOT_DIR}/build/lib" | ||||||
| ) | ||||||
|
|
||||||
| find_library(CFD_LIBRARY | ||||||
| NAMES cfd_library cfd_library_static | ||||||
| # For static builds (v0.1.6+), CFD library uses modular backend libraries | ||||||
|
||||||
| # For static builds (v0.1.6+), CFD library uses modular backend libraries | |
| # For static builds, the CFD library uses modular backend libraries |
Oops, something went wrong.
Oops, something went wrong.
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.
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.
Version mismatch: The PR title and description claim to pin CFD library to v0.1.5, but the workflow sets CFD_VERSION to "v0.1.6". The MIGRATION_PLAN.md also targets v0.1.6 with modular backend libraries, which is a different version than advertised. Either update the PR description to reflect v0.1.6, or change the CFD_VERSION to v0.1.5 to match the description.