@cuda.jitdecorated function at module scope within the tests (e.g in
numba/cuda/tests/cudapy/test_cooperative_groups.py) seems to result in something (possibly the loaded module) getting freed (and therefore damaged) by the time any test using it actually runs - as a workaround I have to make sure I eagerly compile only inside test functions. Is this surprising, or something I should have expected?
egrep -r "^[@]?[n]?jit" numba/tests