# Check the PCIe device status -> expected: 'Processing accelerators: DEEPX...'
lspci | grep acc

# Check the PCIe generation and the number of lane for your NPU
# DX-M1 delivers the best performance on PCIe Gen3 (8GT/s), x4 lane
# Expected for Raspberry Pi 5 -> LnkSta: Speed 8GT/s, Width x1 (downgraded)
sudo lspci -vvv | grep -iA 33 accelerators | grep "LnkSta"

# Check NPU kernel driver status -> expected: dxrt_driver, dx_dma
lsmod | grep dxrt

# Check NPU device files -> expected: '/dev/dxrt0'
ls /dev/dxrt*

# Check NPU daemon status -> expected: dxrt.service - DX-RT Service is active (running) state
systemctl status dxrt.service

# Check the DX-RT and other version info -> expected: DXRT v3.3.2, FW v2.5.6
dxrt-cli -s

# Perform a quick validation by inferencing a model -> expected: 'FPS: higher than 90'
wget https://sdk.deepx.ai/modelzoo/dxnn/2_4_0/yolo26-n_640x640.dxnn
run_model -m yolo26-n_640x640.dxnn -t 3 | grep FPS
