GPU Floating-Point Paranoia
暂无分享,去创建一个
Up until the late eighties, each computer vendor was left to develop their own conventions for floating-point computation as they saw fit. As a result, programmers needed to familiarize themselves with the peculiarities of each system in order to write effective software and evaluate numerical error. In 1987, a standard was established for floating-point computation to alleviate this problem, and CPU vendors now design to this standard [IEEE 1987]. Today there is an interest in the use of graphics processing units, or GPUs, for non-graphics applications such as scientific computing. GPUs have floating-point representations similar to, and sometimes matching, the IEEE standard. However, we have found that GPUs do not adhere to IEEE standards for floating-point operations, nor do they give the information necessary to establish bounds on error for these operations. Another complication is that this behavior seems to be in a constant state of flux due to the dependence on the hardware, drivers, and compilers of a rapidly changing industry. Our goal is to determine the error bounds on floating-point operation results for quickly evolving graphics systems. We have created a tool to measure the error for four basic floating-point operations: addition, subtraction, multiplication and division.
[1] Guido D. Salvucci,et al. Ieee standard for binary floating-point arithmetic , 1985 .
[2] Ansi Ieee,et al. IEEE Standard for Binary Floating Point Arithmetic , 1985 .
[3] Norm L. Schryer,et al. A Test of a Computer's Floating-Point Arithmetic Unit , 1981 .