Crash and Cannot load onedal_thread.2.dll
Opened this issue · 5 comments
Describe the bug
Run the example from https://github.com/intel/scikit-learn-intelex (CPU version). The example script crashes with this error:
Intel(R) Extension for Scikit-learn* enabled (https://github.com/intel/scikit-learn-intelex)
Intel oneDAL FATAL ERROR: Cannot load onedal_thread.2.dll.
To Reproduce
Steps to reproduce the behavior:
- install: python -m pip install scikit-learn scikit-learn-intelex
- new a python file and copy the example in it. (CPU version of example)
- run the python file.
- See error
Expected behavior
The valid example result.
Environment:
- OS: Windows 10 22H2
- Compiler: NA
- Version:
- scikit_learn_intelex-2024.0.1-py311-none-win_amd64.whl
- python 3.11.0
Hello @spinningwatt is it possible for you to upgrade to scikit_learn_intelex-2024.1.0-py311-none-win_amd64.whl? Could you also give the output of pip show tbb daal daal4py
I can't reproduce this issue with 2024.0.1 and 2024.1.0 versions of sklearnex. The only visible difference is usage of Windows 11 with conda pkgs manager on my side.
I've got the same issue and here is the package info:
notice: I have even tried to put all the dll files to c:\python312\dlls, where other dll files are stored. and the issue is the same.
Name: tbb
Version: 2021.11.0
Summary: Intel® oneAPI Threading Building Blocks
Home-page: https://www.intel.com/content/www/us/en/developer/tools/oneapi/onetbb.html
Author: Intel Corporation
Author-email: scripting@intel.com
License: Intel Simplified Software License
Location: C:\Python312\Lib\site-packages
Requires:
Required-by: daal
---
Name: daal
Version: 2024.1.0
Summary: Intel® oneAPI Data Analytics Library
Home-page: https://www.intel.com/content/www/us/en/developer/tools/oneapi/onedal.html
Author: Intel Corporation
Author-email: scripting@intel.com
License: Intel Simplified Software License
Location: C:\Python312\Lib\site-packages
Requires: tbb
Required-by: daal4py
---
Name: daal4py
Version: 2024.1.0
Summary: Intel® oneAPI Data Analytics Library
Home-page: https://github.com/IntelPython/daal4py
Author: Intel Corporation
Author-email: scripting@intel.com
License: Apache-2.0
Location: C:\Python312\Lib\site-packages
Requires: daal, numpy
Required-by: scikit-learn-intelex
---
Name: scikit-learn-intelex
Version: 2024.1.0
Summary: Intel(R) Extension for Scikit-learn is a seamless way to speed up your Scikit-learn application.
Home-page: https://github.com/intel/scikit-learn-intelex
Author: Intel Corporation
Author-email: onedal.maintainers@intel.com
License: Apache-2.0
Location: C:\Python312\Lib\site-packages
Requires: daal4py, scikit-learn
Required-by:
---
Name: scikit-learn
Version: 1.4.1.post1
Summary: A set of python modules for machine learning and data mining
Home-page: https://scikit-learn.org
Author:
Author-email:
License: new BSD
Location: C:\Python312\Lib\site-packages
Requires: joblib, numpy, scipy, threadpoolctl
Required-by: scikit-learn-intelex
I've got the same issue and here is the package info: notice: I have even tried to put all the dll files to c:\python312\dlls, where other dll files are stored. and the issue is the same.
Hi @fantasydog, which windows version are you running?
Hi @fantasydog @spinningwatt
Can you please share the results of running the conditionals here in your environment:
https://github.com/intel/scikit-learn-intelex/blob/main/onedal/__init__.py#L22-L38
I have not been able to reproduce this issue on my own machine but the dll is located in the redist
path instead of the lib/intel64
which is added by default during build. I am curious if one of these conditions is not met and results in the dlls not being visible.