CEMeNT-PSAAP / MCDC

MC/DC: Monte Carlo Dynamic Code
https://mcdc.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
20 stars 20 forks source link

`cache` issues #163

Open jpmorgan98 opened 6 months ago

jpmorgan98 commented 6 months ago

Unknown behaviors and bugs of new cache feature

ilhamv commented 6 months ago

After running in Numba mode and getting the compilation cached, we sometimes want to run in pure Python mode again (e.g., to do Python profiling, to compare Python and Numba error messages, etc). Currently, it seems that cached compilation will be used even if we run in Python mode. Is it possible to bypass or ignore the cached compilation in pure Python mode? @jpmorgan98

jpmorgan98 commented 6 months ago

This is very odd behavior. Like even if it's in Python mode it will run as if in Numba? My only thought is to delete the cache folder all together. It should be in /__pycache__ in your execution directory

ilhamv commented 6 months ago

It is found that, since we only put the cache decorator in the loop.py, if we make changes in kernel.py, the cache will not recompile.