-
Notifications
You must be signed in to change notification settings - Fork 735
Description
Hi,
I have installed the latest version of intel-aikit (2021.1.1) on an Ubuntu 20.04 64-bit LTS.
Even the simplest use case with setting the environment variables once for a shell (as described in https://software.intel.com/content/www/us/en/develop/documentation/get-started-with-ai-linux/top/before-you-begin.html#before-you-begin does not lead to a functional environment.
Output of $ source setvars.sh
:: initializing oneAPI environment ...
BASH version = 5.0.16(1)-release
:: intelpython -- latest
:: mkl -- latest
:: iLiT -- latest
:: modelzoo -- latest
:: mpi -- latest
:: ipp -- latest
:: tbb -- latest
:: dal -- latest
:: dev-utilities -- latest
:: compiler -- latest
:: oneAPI environment initialized ::
Trying Sample Daal4py Linear Regression Example for Distributed Memory Systems [SPMD mode]
https://github.com/oneapi-src/oneAPI-samples/tree/master/AI-and-Analytics/Getting-Started-Samples/IntelPython_daal4py_GettingStarted
If I run the file directly through python: python IntelPython_daal4py_GettingStarted.py then I encounter a problem with the second import (the first line: import daal4py as d4p does finish).
Traceback (most recent call last):
File "/tmp/IntelPython_daal4py_GettingStarted.py", line 36, in
from sklearn.datasets import load_boston
File "/opt/intel/oneapi/intelpython/latest/lib/python3.7/site-packages/sklearn/init.py", line 80, in
from .base import clone
File "/opt/intel/oneapi/intelpython/latest/lib/python3.7/site-packages/sklearn/base.py", line 21, in
from .utils import _IS_32BIT
File "/opt/intel/oneapi/intelpython/latest/lib/python3.7/site-packages/sklearn/utils/init.py", line 23, in
from .class_weight import compute_class_weight, compute_sample_weight
File "/opt/intel/oneapi/intelpython/latest/lib/python3.7/site-packages/sklearn/utils/class_weight.py", line 7, in
from .validation import _deprecate_positional_args
File "/opt/intel/oneapi/intelpython/latest/lib/python3.7/site-packages/sklearn/utils/validation.py", line 25, in
from .fixes import _object_dtype_isnan, parse_version
File "/opt/intel/oneapi/intelpython/latest/lib/python3.7/site-packages/sklearn/utils/fixes.py", line 18, in
import scipy.stats
File "/opt/intel/oneapi/intelpython/latest/lib/python3.7/site-packages/scipy/stats/init.py", line 388, in
from .stats import *
File "/opt/intel/oneapi/intelpython/latest/lib/python3.7/site-packages/scipy/stats/stats.py", line 174, in
from scipy.spatial.distance import cdist
File "/opt/intel/oneapi/intelpython/latest/lib/python3.7/site-packages/scipy/spatial/init.py", line 101, in
from ._procrustes import procrustes
File "/opt/intel/oneapi/intelpython/latest/lib/python3.7/site-packages/scipy/spatial/_procrustes.py", line 9, in
from scipy.linalg import orthogonal_procrustes
File "/opt/intel/oneapi/intelpython/latest/lib/python3.7/site-packages/scipy/linalg/init.py", line 194, in
from .misc import *
File "/opt/intel/oneapi/intelpython/latest/lib/python3.7/site-packages/scipy/linalg/misc.py", line 3, in
from .blas import get_blas_funcs
File "/opt/intel/oneapi/intelpython/latest/lib/python3.7/site-packages/scipy/linalg/blas.py", line 213, in
from scipy.linalg import _fblas
ImportError: libifport.so.5: cannot open shared object file: No such file or directory
I have tried to use the specific var setting shell file for the compiler, but that just messes up the variables so that it no longer sees intel_python.
There are other shell files in the /opt/intel/oneapi folder named modulefiles-setup.sh and sys_check.sh.
I have run modulefiles-setup.sh as root with output
:: Initializing oneAPI modulefiles folder ...
:: Removing any previous oneAPI modulefiles folder content.
:: Generating oneAPI modulefiles folder links.
-- compiler/2021.1.2 -> /opt/intel/oneapi/compiler/2021.1.2/modulefiles/compiler
-- compiler-rt/2021.1.2 -> /opt/intel/oneapi/compiler/2021.1.2/modulefiles/compiler-rt
-- compiler-rt32/2021.1.2 -> /opt/intel/oneapi/compiler/2021.1.2/modulefiles/compiler-rt32
-- compiler32/2021.1.2 -> /opt/intel/oneapi/compiler/2021.1.2/modulefiles/compiler32
-- compiler/latest -> /opt/intel/oneapi/compiler/latest/modulefiles/compiler
-- compiler-rt/latest -> /opt/intel/oneapi/compiler/latest/modulefiles/compiler-rt
-- compiler-rt32/latest -> /opt/intel/oneapi/compiler/latest/modulefiles/compiler-rt32
-- compiler32/latest -> /opt/intel/oneapi/compiler/latest/modulefiles/compiler32
-- dev-utilities/2021.1.1 -> /opt/intel/oneapi/dev-utilities/2021.1.1/modulefiles/dev-utilities
-- dev-utilities/latest -> /opt/intel/oneapi/dev-utilities/latest/modulefiles/dev-utilities
-- mkl/2021.1.1 -> /opt/intel/oneapi/mkl/2021.1.1/modulefiles/mkl
-- mkl32/2021.1.1 -> /opt/intel/oneapi/mkl/2021.1.1/modulefiles/mkl32
-- mkl/latest -> /opt/intel/oneapi/mkl/latest/modulefiles/mkl
-- mkl32/latest -> /opt/intel/oneapi/mkl/latest/modulefiles/mkl32
-- mpi/2021.1.1 -> /opt/intel/oneapi/mpi/2021.1.1/modulefiles/mpi
-- mpi/latest -> /opt/intel/oneapi/mpi/latest/modulefiles/mpi
-- tbb/2021.1.1 -> /opt/intel/oneapi/tbb/2021.1.1/modulefiles/tbb
-- tbb/latest -> /opt/intel/oneapi/tbb/latest/modulefiles/tbb
:: oneAPI modulefiles folder initialized.
:: oneAPI modulefiles folder is here: "/opt/intel/oneapi/modulefiles"
Should the missing library be installed as part of installing intel-aikit or do I need another package to get this to work?