Field-Robotics-Lab / nps_uw_multibeam_sonar

Multibeam sonar plugin with NVIDIA Cuda library
Apache License 2.0
35 stars 20 forks source link

Half-precision implementation #1

Open woensug-choi opened 3 years ago

woensug-choi commented 3 years ago

Since the final data of the sonar calculation is typical int values, if carefully adopted, the half-precision calculation could boost the refresh rate of the sonar image. This is a note for later retry.

Issues on Half-precision CUDA calculation implementation

Benchmark results

512 Beams Refresh
Rate [Hz]
Total
Time [s]
Core Sum Corr FFT
Full Calculation
60 m Range
114 Rays
0.5 Hz 1.7 s 0.3 1.26 0.05 0.03
Ray Reduced
60 m Range
11 Rays
3.0 Hz 0.27 s 0.02 0.16 0.05 0.03
Ray/Range Reduced
10 m Range
11 Rays
10 Hz 0.06 s 0.00 0.04 0.01 0.00