Stefan Helmert

Results 22 comments of Stefan Helmert

I am doing the work to prepare my contributions for your needs. Should I use 4 or 8 space for indentation? Will you provide the code for training?

Reusing the variable name makes the segfault: https://github.com/TheTesla/xyzcad/blob/debugsegfault/debugsegfault.py

I had the same issue again, but now in a jitted function: https://github.com/TheTesla/xyzcad/blob/6ce2ef0b5bdb12d57297d0ee025418a5e76aff2b/xyzcad/render.py#L512-L525 I solved it this way: https://github.com/TheTesla/xyzcad/blob/ee9563f919ac8d984cbc17131c65b48aad6ac242/xyzcad/render.py#L512-L525 The original code worked on my home laptop, but not on...

Why is it stale? I thiink it is important to solve this problem. If numba hast problems with the reuse of a variable name.

I tried it on AMD Epyc now: ## pardictimpl_slow.py ``` $ python3 pardictimpl_slow.py /home/ubuntu/py-par-dict/pardictimpl_slow.py:137: NumbaTypeSafetyWarning: unsafe cast from uint64 to int64. Precision may be lost. tmp += par_dict_getitem(pdict, i) -...

I did additional debugging. I found a workaround: https://github.com/TheTesla/py-par-dict/blob/master/pardictimpl_slow_fix.py ``` $ python3 pardictimpl_slow_fix.py /home/stefan/testing/py-par-dict/pardictimpl_slow_fix.py:142: NumbaTypeSafetyWarning: unsafe cast from uint64 to int64. Precision may be lost. tmp += par_dict_getitem(pdict, i) -...

I did the profiling again, now with may "fix"/workaround. The `Total Memory` is nearly doubled. I don't know why. ![Bildschirmfoto vom 2024-06-14 11-22-43](https://github.com/numba/numba/assets/2584345/77333213-c0b3-4517-b389-c522d3c9e0be) ![Bildschirmfoto vom 2024-06-14 11-23-07](https://github.com/numba/numba/assets/2584345/70c459db-5f89-49a0-80d4-9c84daaf334a) ![Bildschirmfoto vom 2024-06-14...

I found out, `inline = 'always'` doesn't change much: https://github.com/TheTesla/py-par-dict/blob/master/pardictimpl_slow_inline.py ``` $ python3 pardictimpl_slow_inline.py /home/stefan/testing/py-par-dict/pardictimpl_slow_inline.py:117: NumbaTypeSafetyWarning: unsafe cast from uint64 to int64. Precision may be lost. return dicts[hash(key)%nothrds][key] - threads:...

It looks like, you have checked out the wrong commit.

I wonder, that this can be a long existing bug. If the compiler creates programms, which can get stucked randomly, this is a blocker, which must be addressed with the...