Demonstrating mathematical integrity under GPU parallelization and reduced precision.
| Category | Count |
|---|---|
| Python files | 4 |
| CUDA/C++ files | 2 |
| Header files | 2 |
| Documentation files | 4 |
| Jupyter notebooks | 1 |
| Configuration files | 4 |
| Total files | 17 |
# Run CPU benchmark
cd src/cpu
python benchmark.py
# Interactive analysis
cd notebooks
jupyter notebook 01_cpu_benchmark.ipynb
cd src/cpu
python benchmark.py
cd notebooks
jupyter notebook 01_cpu_benchmark.ipynb
mkdir build && cd build
cmake ..
make
nvprof ./build/example
SymplecticIntegrator/
βββ .github/
β βββ copilot-instructions.md # Project guidelines
βββ include/
β βββ henon_heiles.h # System definitions
β βββ integrators.h # GPU/CPU API
βββ src/
β βββ cpu/
β β βββ __init__.py
β β βββ integrators.py # β Main CPU code
β β βββ analysis.py # Energy analysis
β β βββ henon_heiles.py # Utilities
β β βββ benchmark.py # β Run this first!
β βββ gpu/
β βββ integrators.cu # GPU kernels
β βββ example.cpp # Example usage
βββ notebooks/
β βββ 01_cpu_benchmark.ipynb # Interactive analysis
βββ tests/
β βββ CMakeLists.txt
βββ data/ # Output directory
βββ build/ # Build output
βββ QUICKSTART.md # First-steps guide
βββ README.md # Full documentation
βββ ARCHITECTURE.md # Design deep-dive
βββ CMakeLists.txt # CUDA build system
βββ requirements.txt # Python deps
βββ .gitignore
βββ TODO.md # This file
Elevator pitch:
βI implemented a GPU-accelerated symplectic integrator for Hamiltonian systems. This demonstrates three key capabilities: (1) understanding of structure-preserving algorithms from mechanics, (2) ability to map mathematical problems to GPU parallelism, and (3) focus on correctness over mere performance.β
Key talking points:
Future enhancements welcome:
What youβre ready to do right now:
python src/cpu/benchmark.pyjupyter notebook notebooks/01_cpu_benchmark.ipynbsrc/cpu/integrators.py for clean algorithm implementationsmkdir build && cd build && cmake .. && makeWhat this demonstrates:
Get started: Run python src/cpu/benchmark.py and check data/energy_drift_comparison.png
The energy plot is your βwowβ momentβwatch how symplectic stays stable while Euler explodes. Thatβs the whole story.