r/computervision • • 7d ago

Showcase Real-world inference benchmarks: Linux CUDA EP vs Windows DirectML on mobile GTX 1650 Ti (i5-10300H)

Lobo-to-lobo comparison on the same serviced laptop hardware (Intel i5-10300H + discrete mobile GTX 1650 Ti with GDDR6). Bypassing heavy Python dependencies via a lightweight native C-API pipeline.

The Pipeline:

  1. Frame capture to RAM (NV12 format).
  2. Localized detection: YOLOX-nano (640x640) inside a targeted 3x3 control zone. Pure FP32 to ensure bounding box geometry stability.
  3. Feature extraction: 256x256 ROI crop processed for 44 distinct texture/geometry metrics.
  4. Classification: Downstream CPU-bound LightGBM classifier evaluating extracted features.

Key Technical Outcomes (Part 6): Windows 11 + DirectML backend: Hitting a stable 106–111 FPS (~5.0 ms inference latency). Standard DX12 compute shader translation introduces slight frame-pacing variance (t_max up to 11 ms). Linux + Native NVIDIA CUDA EP backend: Delivering a constant 114–116 FPS (~4.1 ms inference latency) with a strictly bounded t_max limit. Shifting from DirectML to the native CUDA driver layer reduces raw execution overhead on the Turing architecture. Preprocessing overhead: Isolated at 1.5–2.2 ms inside OS threads, remaining consistent across both environments.

https://medium.com/@olesha-ai/bypassing-the-avx2-tax-part-6-same-hp-on-linux-cuda-wins-again-db4c95673a2a

Best regards.

olesha-ai

2 Upvotes

0 comments sorted by