Parallel optimization of edge detection algorithm for geological images under CUDA

Han ZHANG,Yu-rong QIAN,Hai-yao HOU
DOI: https://doi.org/10.16208/j.issn1000-7024.2019.03.017
2019-01-01
Abstract:To improve the computational speed of the Prewitt algorithm for edge detection of geological images, the computationally intensive and data-intensive features of the algorithm were combined.From the aspect of kernel function calculation, a method of optimizing thread divergence based on adjusting thread block coordinates and adopting local variables was proposed to optimize instruction latency.From the aspect of CPU-GPU data transmission overhead, a method based on CUDA stream to optimize data transmission overhead was proposed.Testing results show that, when setting the thread block size to 32*32, using independent local variables instead of indexed memory access, and using CUDA workflow block calculations, the acceleration ratio for geological images larger than 6168*6168 can be increased by more than 120 times.This parallel optimization scheme is easy to implement and can be applied in the field of large-scale geological image edge detection.
What problem does this paper attempt to address?