Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some parallel backend tests failing with NumPy 1.22 #7760

Closed
Tracked by #7754
gmarkall opened this issue Jan 18, 2022 · 2 comments · Fixed by #8027
Closed
Tracked by #7754

Some parallel backend tests failing with NumPy 1.22 #7760

gmarkall opened this issue Jan 18, 2022 · 2 comments · Fixed by #8027
Labels
bug - failure to compile Bugs: failed to compile valid code numpy
Milestone

Comments

@gmarkall
Copy link
Member

For various tests in numba.tests.test_parallel_backend, errors are of the form:

======================================================================
FAIL: test_threading_concurrent_mix_use_masks_omp (numba.tests.test_parallel_backend.TestSpecificBackend)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/esc/miniconda3/envs/numba-dev/lib/python3.9/site-packages/numba/tests/test_parallel_backend.py", line 396, in test_template
    o, e = self.run_test_in_separate_process(injected_method, backend)
  File "/Users/esc/miniconda3/envs/numba-dev/lib/python3.9/site-packages/numba/tests/test_parallel_backend.py", line 374, in run_test_in_separate_process
    return self.run_cmd(cmdline, env_copy)
  File "/Users/esc/miniconda3/envs/numba-dev/lib/python3.9/site-packages/numba/tests/test_parallel_backend.py", line 362, in run_cmd
    raise AssertionError(
AssertionError: process failed with code 1: stderr follows
OMP: Info #271: omp_set_nested routine deprecated, please use omp_set_max_active_levels instead.
E
======================================================================
ERROR: test_threading_concurrent_mix_use_masks (numba.tests.test_parallel_backend.TestParallelBackend)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/esc/miniconda3/envs/numba-dev/lib/python3.9/site-packages/numba/tests/test_parallel_backend.py", line 336, in test_method
    self.run_compile(impl, parallelism=p)
  File "/Users/esc/miniconda3/envs/numba-dev/lib/python3.9/site-packages/numba/tests/test_parallel_backend.py", line 283, in run_compile
    thread_impl(fnlist)
  File "/Users/esc/miniconda3/envs/numba-dev/lib/python3.9/site-packages/numba/tests/test_parallel_backend.py", line 180, in run_compile
    raise RuntimeError(_msg % '\n'.join([repr(x) for x in errors]))
RuntimeError: Error(s) occurred in delegated runner:
UFuncTypeError(<ufunc 'ufunc_foo'>, (<class 'numpy.dtype[float32]'>, <class 'numpy.dtype[float32]'>, None))
UFuncTypeError(<ufunc 'ufunc_foo'>, (<class 'numpy.dtype[float32]'>, <class 'numpy.dtype[float32]'>, None))
UFuncTypeError(<ufunc 'ufunc_foo'>, (<class 'numpy.dtype[float32]'>, <class 'numpy.dtype[float32]'>, None))
UFuncTypeError(<ufunc 'ufunc_foo'>, (<class 'numpy.dtype[float32]'>, <class 'numpy.dtype[float32]'>, None))

----------------------------------------------------------------------
Ran 1 test in 20.943s
@gmarkall gmarkall added bug - failure to compile Bugs: failed to compile valid code numpy labels Jan 18, 2022
@gmarkall gmarkall added this to the Numba 0.56 RC milestone Jan 18, 2022
@gmarkall gmarkall mentioned this issue Jan 18, 2022
5 tasks
@1844144
Copy link
Contributor

1844144 commented May 3, 2022

Appears in DUFunc, fixed in numpy 1.22.3

@stuartarchibald
Copy link
Contributor

@1844144 thanks for checking.

stuartarchibald added a commit to stuartarchibald/numba that referenced this issue May 6, 2022
@esc esc closed this as completed in #8027 May 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug - failure to compile Bugs: failed to compile valid code numpy
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants