Skip to content

Calling OpenMP runtime functions fails during interactive session #47

Description

@ggeorgakoudis

Error output:

bash-4.4$ python
Python 3.12.12 (main, Jan  5 2026, 07:13:39) [GCC 8.5.0 20210514 (Red Hat 8.5.0-28)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from numba.openmp import omp_get_num_devices
loaded library /p/vast1/ggeorgak/projects/pyomp-project/test/PyOMP/src/numba/openmp/libs/openmp/lib/libomp.so
>>> omp_get_num_devices()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/p/vast1/ggeorgak/projects/pyomp-project/test/PyOMP/src/numba/openmp/omp_runtime.py", line 13, in __call__
    if mod.__name__.startswith("numba") and not mod.__name__.startswith(
       ^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute '__name__'. Did you mean: '__ne__'?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions