CEMeNT-PSAAP / MCDC

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

Need to compile Numba-CPU first to be able to compile Numba-GPU per #229 #236

Closed ilhamv closed 3 weeks ago

ilhamv commented 2 months ago

This behavior shows up per #229, which factored local arrays and objects out to a dedicated local.py file to avoid problematic circular imports for future development

ilhamv commented 2 months ago

Some finding that may be useful to debug: If we start clean (no CPU/GPU cache at all), python input.py --mode=numba --target=gpu will fail (the error message seems to be the one for Numba-CPU), but the __ptxcache__ is still generated. If we then do python input.py --mode=numba, it compiles and runs as usual. If after that, we proceed with python input.py --mode=numba --target=gpu, which will use the existing __ptxcache__, it runs alright.

ilhamv commented 3 weeks ago

This is addressed per #241