inducer / loopy

A code generator for array-based code on CPUs and GPUs
http://mathema.tician.de/software/loopy
MIT License
576 stars 70 forks source link

Add a flag to disallow floating point reordering #700

Open inducer opened 1 year ago

inducer commented 1 year ago

Context: https://github.com/inducer/loopy/pull/698#issuecomment-1306451565

IMO, this should only apply to code generation, not transforms. Transforms can receive permission to ignore FP reordering individually.

Another aspect is that reductions do not even have a defined FP evaluation order (but we could conceivably force one).

isuruf commented 1 year ago

https://github.com/inducer/loopy/pull/698 introduced the flag. It is probably incomplete.