AI for Simulation / Coding / Chips
This section discusses how to apply AI tools (primarily LLMs) to simulation, coding, and chip performance analysis. Focus is not on building large models, but "how to use AI in existing workflows" to improve efficiency and code quality.
1. AI + Simulation
In simulation workflows, AI can assist with model selection, parameter tuning, result interpretation, but must maintain physical constraints, numerical stability, and engineering verifiability as first principles.
-
1.1 Model & Parameter Selection
- Model recommendations based on prior physics and numerical analysis: recommending suitable turbulence models, multiphase models for given conditions.
- Parameter tuning: intelligent selection of timesteps, convergence criteria, preconditioner parameters.
- Condition classification: automatically judging problem types from input conditions, selecting corresponding solution strategies.
-
1.2 Result Interpretation
- Flow feature identification: automatically identifying shocks, separation zones, vortex structures.
- Anomaly detection: identifying unreasonable results, convergence anomalies.
- Trend analysis: extracting patterns from large case sets, assisting engineering decisions.
2. AI + Coding
Using LLMs and other tools to assist C++ / Fortran development, improving coding efficiency and code quality.
-
2.1 Code Generation & Completion
- Function implementation: generating base implementation code from interfaces and comments.
- Template code: generating templates for common patterns (iterators, factory patterns, etc.).
- Code completion: intelligent completion, context-aware code suggestions.
-
2.2 Code Refactoring & Optimization
- Refactoring suggestions: identifying code smells, providing refactoring solutions.
- Performance optimization: identifying bottlenecks, suggesting optimization directions.
- Code style: unifying code style, improving readability.
-
2.3 Testing & Verification
- Test case generation: automatically generating test cases from function interfaces.
- Boundary condition testing: identifying edge cases, generating targeted tests.
- Regression testing: learning from historical bugs, generating regression tests.
3. AI + Chips
Using AI for bottleneck identification, parameter search, scheduling strategy exploration, not replacing architecture design.
-
3.1 Performance Bottleneck Identification
- Automatically identifying bottlenecks from performance data: computation, communication, I/O.
- Root cause analysis: deep analysis of bottleneck causes.
- Optimization suggestions: providing optimization directions based on historical experience.
-
3.2 Parameter Search & Tuning
- Hyperparameter search: efficient search for optimal configurations in parameter space.
- Scheduling strategy optimization: automatic optimization of task scheduling and resource allocation.
4. My Practice
Currently focused on:
- Using LLMs to assist C++ code writing and refactoring, improving development efficiency.
- Using AI tools to assist simulation result analysis and problem diagnosis.
- Exploring AI applications in chip performance analysis and scheduling optimization.
- Establishing quality assurance processes for AI-assisted development, ensuring code correctness.
Specific AI application scenarios, usage experience, and effectiveness evaluation will be detailed in projects and technical notes. Emphasis: AI is a tool, not a replacement; physical constraints and engineering verifiability remain first principles.