Demonstrating mathematical integrity under GPU parallelization and reduced precision.
CMakeLists.txt - CUDA/C++ build configurationrequirements.txt - Python dependencies.gitignore - Git exclusion rules.github/copilot-instructions.md - Project guidelinessrc/cpu/| File | Lines | Purpose |
|โโ|โโ-|โโโ|
| __init__.py | 20 | Module initialization |
| integrators.py | 350 | Euler, RK4, Symplectic integrators |
| henon_heiles.py | 50 | System utilities & definitions |
| analysis.py | 200 | Energy analysis & visualization |
| benchmark.py | 150 | Benchmark driver & runner |
Total Python: ~770 lines of well-documented code
src/gpu/| File | Lines | Purpose |
|โโ|โโ-|โโโ|
| integrators.cu | 300 | GPU kernels for all methods |
| example.cpp | 200 | Example GPU program |
Total CUDA: ~500 lines
include/| File | Lines | Purpose |
|โโ|โโ-|โโโ|
| henon_heiles.h | 30 | System math (dual CPU/GPU) |
| integrators.h | 40 | Kernel declarations |
Total Headers: ~70 lines
notebooks/01_cpu_benchmark.ipynb - Interactive energy analysistests/CMakeLists.txt - Test build configurationdata/| Metric | Value |
|---|---|
| Total Files | 18 |
| Total Directories | 8 |
| Lines of Code (Python) | ~770 |
| Lines of Code (CUDA/C++) | ~570 |
| Lines of Documentation | ~3500 |
| Documentation Files | 5 |
| Build Systems | 2 (CMake, Python) |
| CPU Integrators | 3 (Euler, RK4, Symplectic) |
| GPU Kernels | 3 (Euler, RK4, Symplectic) |
| Analysis Tools | 4+ (energy, phase space, etc.) |
# Run benchmark
python src/cpu/benchmark.py
# Interactive analysis
jupyter notebook notebooks/01_cpu_benchmark.ipynb
# Study code
cat src/cpu/integrators.py
mkdir build && cd build
cmake ..
make
./example
User Request
โ
QUICKSTART.md (start here)
โ
src/cpu/benchmark.py (run this)
โ
data/energy_drift_comparison.png (see results)
โ
README.md (understand why)
โ
src/cpu/integrators.py (study code)
โ
ARCHITECTURE.md (deep dive)
โ
src/gpu/integrators.cu (GPU version)
โ
CMakeLists.txt โ build โ ./example (run GPU)
| Component | Size |
|---|---|
| Source code | ~40 KB |
| Documentation | ~150 KB |
| Jupyter notebooks | ~30 KB |
| Total | ~220 KB |
Everything fits on a USB drive ๐
Right now:
QUICKSTART.mdpython src/cpu/benchmark.pydata/energy_drift_comparison.pngNext 30 minutes:
README.mdsrc/cpu/integrators.pyNext few hours:
ARCHITECTURE.mdComplete and ready to showcase! ๐
This project demonstrates:
Perfect for interviews with NVIDIA, OpenAI, Deepmind, and other AI/compute companies.