Comments (5)
Is there somewhere in the docs you've seen that it's stated that raising exceptions from within threads has unspecified behaviour? I'm not clear about whether this should be a bug report or feature request.
Indirectly, this is commented upon here: https://numba.pydata.org/numba-doc/latest/developer/threading_implementation.html#caveats
See also here: #2811
from numba.
CC @abulenok
from numba.
Is there somewhere in the docs you've seen that it's stated that raising exceptions from within threads has unspecified behaviour? I'm not clear about whether this should be a bug report or feature request.
from numba.
Many thanks for the info! I'll mention this at the triage meeting on Jan 16th.
from numba.
Thanks!
Here's a minimal example:
$ cat test.py
import numba, numpy, os
@numba.njit(parallel='PARFORS' in os.environ, boundscheck=True)
def test(n):
arr = numpy.empty(n)
for i in numba.prange(n+1):
arr[i] += 1
test(100)
$ python3 test.py
Traceback (most recent call last):
File "test.py", line 9, in <module>
test(100)
IndexError: index is out of bounds
$ PARFORS=1 python3 test.py
$ echo $?
0
from numba.
Related Issues (20)
- Poor performance with astype on an array HOT 2
- Numba 0.59.0rc1 Checklist
- 0.590rc1 changelog missing author issue
- Package numba 0.47 for Python 2.7 in conda-forge HOT 2
- numba a lot slower for dict lookup when numpy array in value HOT 3
- Numba stuck compiling HOT 2
- Change definition of complex sign if numpy does HOT 1
- njit(parallel = True) gives wrong output HOT 6
- Unexpected "CUDA error: the launch timed out and was terminated" or `CUDA_ERROR_LAUNCH_TIMEOUT` HOT 4
- numpy records do not support "is" identity comparison. HOT 5
- np.isnan false in nopython jit with fastmath HOT 3
- Cannot find source for CUDA kernels decorated with `lineinfo=True` when executed from Jupyter notebook cell HOT 1
- numba.get_num_threads/set_num_threads resets the value of torch.get_num_threads HOT 1
- NUMBA CUDA Unknown memory "error" HOT 1
- Broadcasting of matmul does not work with parallel HOT 2
- In some cases, Numba 0.57.1 (can also be reproduced in 0.59.0) does not assign values to a NumPy array HOT 1
- Shall we consider using an envvar to disable refct atomic instructions HOT 2
- Elapsed running time of parallel jit for the logistic regression documentation example is dozens of seconds HOT 3
- Add ability to @jit to disable auto-vectorization HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from numba.