inducer / loopy

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

support aborting on cache miss #828

Open matthiasdiener opened 4 months ago

matthiasdiener commented 4 months ago

What do you think @inducer? This would not only make debugging cache misses easier, it could also be used to automate determinism tests (by setting LOOPY_ABORT_ON_CACHE_MISS to something trueish, and rerunning the test).

inducer commented 4 months ago

I'm not wildly opposed, but I feel that it's also easy to just hack a 1/0 into that code path when needed. And for automated determinism tests, there are probably simpler approaches than to ask the codegen cache.

Also, "abort on cache miss" sounds like it would include all caches, but this applies to only one of many caches in loopy.