Finite-precision arithmetic computations face an inherent tradeo between accuracy and e ciency. The points in this tradeo space are determined, among other factors, by di erent data types but also evaluation orders. To put it simply, the shorter a precision's bit-length, the larger the roundo error will be, but the faster the program will run. Similarly, the fewer arithmetic operations the program performs, the faster it will run; however, the e ect on the roundo error is less clear-cut. Manually optimizing the e ciency of nite-precision programs while ensuring that results remain accurate enough is challenging. The unintuitive and discrete nature of nite-precision makes estimation of roundo errors di cult; furthermore the space of possible data types and evaluation orders is prohibitively large.We present the rst fully automated and sound technique and tool for optimizing the performance of oating-point and xedpoint arithmetic kernels. Our technique combines rewriting and mixed-precision tuning. Rewriting searches through di erent evaluation orders to nd one which minimizes the roundo error at no additional runtime cost. Mixed-precision tuning assigns di erent nite precisions to di erent variables and operations and thus provides ner-grained control than uniform precision. We show that when these two techniques are designed and applied together, they can provide higher performance improvements than each alone.
scite is a Brooklyn-based organization that helps researchers better discover and understand research articles through Smart Citations–citations that display the context of the citation and describe whether the article provides supporting or contrasting evidence. scite is used by students and researchers from around the world and is funded in part by the National Science Foundation and the National Institute on Drug Abuse of the National Institutes of Health.