Posit is a recently proposed alternative to the floating point representation (FP). It provides tapered accuracy. Given a fixed number of bits, the posit representation can provide better precision for some numbers compared to FP, which has generated significant interest in numerous domains. Being a representation with tapered accuracy, it can introduce high rounding errors for numbers outside the above golden zone. Programmers currently lack tools to detect and debug errors while programming with posits. This paper presents PositDebug, a compile-time instrumentation that performs shadow execution with high pre- cision values to detect various errors in computation using posits. To assist the programmer in debugging the reported error, PositDebug also provides directed acyclic graphs of instructions, which are likely responsible for the error. A contribution of this paper is the design of the metadata per memory location for shadow execution that enables productive debugging of errors with long-running programs. We have used PositDebug to detect and debug errors in various numerical applications written using posits. To demonstrate that these ideas are applicable even for FP programs, we have built a shadow execution framework for FP programs that is an order of magnitude faster than Herbgrind. 
                        more » 
                        « less   
                    
                            
                            A new numerical approach to the solution of PDEs with optimal accuracy on irregular domains and Cartesian meshes—part 2: numerical simulations and comparison with FEM
                        
                    - Award ID(s):
- 1935452
- PAR ID:
- 10292799
- Date Published:
- Journal Name:
- Archive of Applied Mechanics
- Volume:
- 90
- Issue:
- 12
- ISSN:
- 0939-1533
- Page Range / eLocation ID:
- 2649 to 2674
- Format(s):
- Medium: X
- Sponsoring Org:
- National Science Foundation
 An official website of the United States government
An official website of the United States government 
				
			 
					 
					
 
                                    