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

Crash and Cannot load onedal_thread.2.dll #1664

Open
spinningwatt opened this issue Jan 23, 2024 · 5 comments
Open

Crash and Cannot load onedal_thread.2.dll #1664

spinningwatt opened this issue Jan 23, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@spinningwatt
Copy link

spinningwatt commented Jan 23, 2024

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:

  1. install: python -m pip install scikit-learn scikit-learn-intelex
  2. new a python file and copy the example in it. (CPU version of example)
  3. run the python file.
  4. See error

Expected behavior
The valid example result.

Output/Screenshots
image

Environment:

  • OS: Windows 10 22H2
  • Compiler: NA
  • Version:
    • scikit_learn_intelex-2024.0.1-py311-none-win_amd64.whl
    • python 3.11.0
@spinningwatt spinningwatt added the bug Something isn't working label Jan 23, 2024
@icfaust
Copy link
Contributor

icfaust commented Jan 24, 2024

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

@Alexsandruss
Copy link
Contributor

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.

@fantasydog
Copy link

fantasydog commented Mar 20, 2024

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: [email protected]
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: [email protected]
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: [email protected]
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: [email protected]
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

@ethanglaser
Copy link
Contributor

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?

@ethanglaser
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants