Distributed GPU compute mesh for marine sensor fusion. Splits workloads between a workstation RTX 4050 and a Jetson Orin Nano edge device using a constraint-aware scheduler and a lightweight binary protocol (MEP).
| Contribution | Description |
|---|---|
| Fused GPU sensor pipeline | NMEA parse → Kalman predict/update → sonar waterfall in a single GPU pipeline. Zero CPU-GPU round trips. |
| Adaptive precision controller | Switches FP32/FP16/TF32 at runtime based on thermal headroom, power budget, and position accuracy requirements. |
| Marine Edge Protocol (MEP) | 16-byte binary header. Designed for LAN edge latency. Supports GPU kernel offload, PTX deployment, zero-copy hints, and constraint alerts. |
| Constraint-aware scheduler | Multi-objective scoring: thermal, memory, load, latency, precision capability, deadline proximity. Routes FP16 work to Jetson, FP32/TF32 to workstation. |
| GPU navigation constraint propagation | Each thread checks one safety constraint in parallel via shared memory. Returns worst violation with severity classification. |
| Node | GPU | CUDA SM | Memory | Role |
|---|---|---|---|---|
eileen (workstation) |
RTX 4050 Ada Lovelace | SM 8.9 | ~7.5 GB | Training, heavy compute, FP32/TF32 |
jetsonclaw1 (edge) |
Jetson Orin Nano 8 GB | SM 8.7 | 8 GB unified | Real-time inference, sensor fusion, FP16 |
This repository was last hardened on the production-round3-2026-07-10 branch.
The host used for that pass had no CUDA toolkit, no nvcc, and no GPU,
so only the genuinely CPU-testable portions could be verified.
| Claim | Status | Notes |
|---|---|---|
| MEP 16-byte binary header | ✅ Verified | static_assert(sizeof(MEPHeader) == 16) enforced at compile time; serialisation, validation, and send/recv framing covered by tests/test_mep_bridge.cpp |
| Constraint-aware scheduler logic | ✅ Verified | Thermal, memory, load, FP16, and PTX scoring tested in tests/test_mep_bridge.cpp |
| CUDA kernel behaviour (NMEA parse, Kalman, sonar waterfall, constraint check) | 🔮 Requires GPU | Needs nvcc + CUDA 12.6 + actual RTX 4050 / Jetson Orin hardware |
| GPU scheduling / runtime precision switching | 🔮 Requires GPU | Depends on kernel behaviour above |
| Benchmark numbers in the table below | 🔮 Requires GPU | Currently placeholders (TBD) until run on real hardware |
Run the CPU-only tests with plain g++ (no CUDA needed):
g++ -std=c++17 -I include -I src tests/test_mep_bridge.cpp src/mep_bridge.cpp -o tests/test_mep_bridge
./tests/test_mep_bridge- CUDA Toolkit 12.6 at
/usr/local/cuda-12.6 - CMake ≥ 3.20
- C++17-capable host compiler (GCC 11+ recommended)
- For Jetson cross-compile:
aarch64-linux-gnu-g++
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make -j$(nproc)mkdir build-jetson && cd build-jetson
cmake .. -DCMAKE_BUILD_TYPE=Release -DCROSS_COMPILE_JETSON=ON
make -j$(nproc)# Workstation
nvcc -arch=sm_89 -O3 --use_fast_math -I include \
-o marine_fusion src/marine_sensor_fusion.cu
# Jetson cross-compile
nvcc -arch=sm_87 --compiler-bindir=/usr/bin/aarch64-linux-gnu-g++ \
-O3 --use_fast_math -I include \
-o marine_fusion_j src/marine_sensor_fusion.cu| Target | Description |
|---|---|
marine_fusion |
Static library — CUDA kernels |
mep_bridge_test |
MEP protocol + scheduler smoke test |
bench_nmea |
NMEA parse throughput benchmark |
┌─────────────────────────────────────────────────────┐
│ Sensor inputs (NMEA sentences, sonar pings) │
└───────────────────────┬─────────────────────────────┘
│
┌─────────────▼────────────┐
│ MEPBridge + Scheduler │ (LAN, port 7847)
│ Constraint-aware route │
└──────┬──────────┬────────┘
│ │
┌────────────▼──┐ ┌────▼──────────────┐
│ eileen │ │ jetsonclaw1 │
│ RTX 4050 │ │ Jetson Orin Nano │
│ SM 8.9 │ │ SM 8.7 │
│ │ │ │
│ parse_nmea │ │ kalman_update │
│ kalman_predict│ │ sonar_waterfall │
│ (FP32/TF32) │ │ check_constraints │
└───────────────┘ │ (FP16) │
└────────────────────┘
parse_nmea_batch— one thread per sentence, stride-based addressing, checksum + field extractionkalman_predict_batch— EKF prediction with FP16 covariance, FP32 dynamicssonar_waterfall— warp-cooperative ping processing, TVG correction in shared memorycheck_nav_constraints— one thread per constraint per state, parallel violation detection
Run on workstation (RTX 4050 Ada, SM 8.9, CUDA 12.6)
| Benchmark | GPU kernel | GPU end-to-end | CPU | Speedup (kernel) |
|---|---|---|---|---|
| NMEA parse (100K sentences) | TBD | TBD | TBD | TBD |
| Kalman predict (100K states) | TBD | TBD | TBD | TBD |
| Sonar waterfall (1K pings) | TBD | TBD | TBD | TBD |
Run benchmarks:
cd build
./bench_nmea 100000marine-gpu-edge/
├── include/
│ └── marine_types.h # All shared types + CUDA_CHECK macros
├── src/
│ ├── marine_sensor_fusion.cu # CUDA kernels + host wrappers
│ ├── mep_bridge.h # MEPBridge + ConstraintScheduler declarations
│ └── mep_bridge.cpp # MEP protocol implementation
├── benchmarks/
│ └── bench_nmea.cu # NMEA parse throughput benchmark
├── tests/
│ └── test_mep_bridge.cpp # CPU-only unit tests for MEP bridge + scheduler
├── .github/workflows/
│ └── mep_bridge.yml # CI for the CPU-only bridge tests
├── docs/
│ ├── ARCHITECTURE.md
│ └── API.md
├── CMakeLists.txt
└── README.md
Part of the SuperInstance / Cocapn edge stack. Siblings with a real overlap:
- nexus-edge-runtime —
has its own
perception/fusion.pysensor-fusion module; this project is the GPU-accelerated counterpart to that CPU-side fusion logic. - open-mythos-edge — a PyTorch transformer targeting the same Jetson Orin (SM 8.7) hardware this edge node serves.
- edge-equipment-catalog — profiles the Jetson Orin Nano / AGX Orin that appear in the hardware table above.
- Edge-Native — the Jetson-side bytecode/firmware layer for the same device family.
MIT — see source file headers.