cucapra / calyx-evaluation

4 stars 3 forks source link

[Polybench FP] Stencil ADI #9

Open rachitnigam opened 3 years ago

rachitnigam commented 3 years ago

Example PR for porting a polybench benchmark to use a fixed point implementation. It uses the m4 preprocessor to define constants and types in the file. This allows us to write one implementation that works for both bit types and fix types.

Steps

rachitnigam commented 3 years ago

This benchmark tries to compute 1/20 in one of the first statements and therefore does not work with C++ simulation (immediately gets a divide by zero error).