Computer Engineering & Science ›› 2025, Vol. 47 ›› Issue (1): 18-26.
• High Performance Computing • Previous Articles Next Articles
SHEN Jie,LONG Biao,HUANG Chun,TANG Tao,PENG Lin
Received:
Revised:
Online:
Published:
Abstract: Exponential and logarithmic functions are important transcendental functions in floating-point computation, widely used in various application fields. Modern processors exhibit a trend of increasing vector register width with each generation. To further enhance the utilization of vector units by upper-layer applications, researching optimization methods for vector exponential and logarithmic functions holds significant scientific value and practical importance. Addressing the performance bottlenecks of existing vector function implementations, this paper has designed and implemented optimization methods for exponential and logarithmic functions tailored for vector units. These methods include vector lookup table optimization based on hardware acceleration instructions, branch optimization, and precision-performance trade-off optimization. Experiments on simulators demonstrate that the optimized vector exponential and logarithmic functions meet industry-standard high precision and outperform the current best open-source implementations, achieving a speedup ratio of over 1.44. Real-world application tests further show that applications can achieve efficient vectorization with the support of the optimized vector functions, resulting in an average performance improvement of 2.53 times compared to the original scalar implementations.
Key words: exponential functions, logarithm functions, vectorization, table-lookup optimization, hardware acceleration instructions
SHEN Jie, LONG Biao, HUANG Chun, TANG Tao, PENG Lin. Optimization of exponential and logarithm functions for vector units[J]. Computer Engineering & Science, 2025, 47(1): 18-26.
0 / / Recommend
Add to citation manager EndNote|Ris|BibTeX
URL: http://joces.nudt.edu.cn/EN/
http://joces.nudt.edu.cn/EN/Y2025/V47/I1/18