You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When darts.models.forecasting.croston is run it imports statsforecast.core, within which threadpoolctl.ThreadpoolController() is created. This then detects that both Intel libiomp and LLVM libomp are both loaded. This throws a warning due to the issue outlined here.
"Therefore this problem would only happen if some packagers decide to start shipping Python packages built with LLVM/Clang instead of GCC"
Note that if statsforecast.core is imported outside of darts, no such warning is thrown. So it seems that a dependency of darts is built with LLVM. Any idea what's at fault?
/Users/<snip>/.venv/lib/python3.10/site-packages/threadpoolctl.py:1214: RuntimeWarning:
Found Intel OpenMP ('libiomp') and LLVM OpenMP ('libomp') loaded at
the same time. Both libraries are known to be incompatible and this
can cause random crashes or deadlocks on Linux when loaded in the
same Python program.
Using threadpoolctl may cause crashes or deadlocks. For more
information and possible workarounds, please see
https://github.com/joblib/threadpoolctl/blob/master/multiple_openmp.md
warnings.warn(msg, RuntimeWarning)
To Reproduce
Be on macos
Install darts (from pypi)
import darts.models.forecasting.croston
Expected behavior
No warning.
System (please complete the following information):
Python version: 3.10.13 (also tested with 3.10.14, 3.10.15, 3.11.10)
darts version: 0.30.0 (also tested with 0.29.0, with numpy==1.26.4
OS version: macOS Sonoma 14.6.1
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Hi @sharmuz, are you running on a Mac with an M chip? If so, some of the dependencies installed with PyPI might not use the correct dependencies for the M-chip (e.g. they install the intel version). For me this is fixed when installing the following dependencies with conda before installing darts:
Describe the bug
When
darts.models.forecasting.croston
is run it importsstatsforecast.core
, within whichthreadpoolctl.ThreadpoolController()
is created. This then detects that both Intel libiomp and LLVM libomp are both loaded. This throws a warning due to the issue outlined here."Therefore this problem would only happen if some packagers decide to start shipping Python packages built with LLVM/Clang instead of GCC"
Note that if
statsforecast.core
is imported outside of darts, no such warning is thrown. So it seems that a dependency of darts is built with LLVM. Any idea what's at fault?To Reproduce
import darts.models.forecasting.croston
Expected behavior
No warning.
System (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: