Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.

Missing intel-oneapi-mkl include files

YAIMKLU
Beginner
3,585 Views

Hello Intel Community,

 

I have some trouble with intel-oneapi-mkl standalone installation on Ubuntu. Can anybody help me out?

 

Setup:

  • I am currently trying to use  intel-oneapi-mkl on an Ubuntu system.
  • I followed this installation guide for Ubuntu via the APT package manager and successfully installed the package

 

Issue:

  • I can not locate MKL header files, e.g., the following command does not return a location

 

$ find /opt/intel/oneapi -name 'mkl.h'

 

  • note that the include directory in MKL is missing:

 

$ ls /opt/intel/oneapi/mkl/latest
env  lib  licensing  modulefiles​

 

  • When installing MKL via the base toolkit, the include directory is right there

 

Question:

  • where are the headers or what do I need to install them?

 

Thank you!

 

 

0 Kudos
8 Replies
ArpanB_Intel
Moderator
3,558 Views

Hi Jonas, did you encounter any errors during the installation phase?


We would like to know.


0 Kudos
YAIMKLU
Beginner
3,556 Views

None that I can identify. Here is a Dockerfile to reproduce

 
# syntax=docker/dockerfile:1
FROM ubuntu:latest

# Prereqs
RUN apt-get update
RUN apt-get --yes install apt-utils
RUN apt-get --yes install build-essential wget

# Install MKL
RUN wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB \
| gpg --dearmor | tee /usr/share/keyrings/oneapi-archive-keyring.gpg > /dev/null
RUN echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main" | tee /etc/apt/sources.list.d/oneAPI.list
RUN apt-get update
RUN apt-get --yes install intel-oneapi-mkl

 

Here is the output I get during the installation:

 
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
intel-oneapi-common-licensing-2023.2.0 intel-oneapi-common-vars
intel-oneapi-compiler-dpcpp-cpp-runtime-2023.2.0
intel-oneapi-compiler-shared-runtime-2023.2.0 intel-oneapi-condaindex
intel-oneapi-mkl-2023.2.0 intel-oneapi-mkl-common-2023.2.0
intel-oneapi-openmp-2023.2.0 intel-oneapi-openmp-common-2023.2.0
intel-oneapi-tbb-2021.10.0 intel-oneapi-tbb-common-2021.10.0
The following NEW packages will be installed:
intel-oneapi-common-licensing-2023.2.0 intel-oneapi-common-vars
intel-oneapi-compiler-dpcpp-cpp-runtime-2023.2.0
intel-oneapi-compiler-shared-runtime-2023.2.0 intel-oneapi-condaindex
intel-oneapi-mkl intel-oneapi-mkl-2023.2.0 intel-oneapi-mkl-common-2023.2.0
intel-oneapi-openmp-2023.2.0 intel-oneapi-openmp-common-2023.2.0
intel-oneapi-tbb-2021.10.0 intel-oneapi-tbb-common-2021.10.0
0 upgraded, 12 newly installed, 0 to remove and 0 not upgraded.
Need to get 534 MB of archives.
After this operation, 2472 MB of additional disk space will be used.
Get:1 https://apt.repos.intel.com/oneapi all/main all intel-oneapi-common-licensing-2023.2.0 all 2023.2.0-49462 [30.4 kB]
Get:2 https://apt.repos.intel.com/oneapi all/main all intel-oneapi-common-vars all 2023.2.0-49462 [11.9 kB]
Get:3 https://apt.repos.intel.com/oneapi all/main amd64 intel-oneapi-condaindex amd64 2023.2.0-49417 [676 kB]
Get:4 https://apt.repos.intel.com/oneapi all/main all intel-oneapi-openmp-common-2023.2.0 all 2023.2.0-49495 [17.6 kB]
Get:5 https://apt.repos.intel.com/oneapi all/main amd64 intel-oneapi-openmp-2023.2.0 amd64 2023.2.0-49495 [208 MB]
Get:6 https://apt.repos.intel.com/oneapi all/main amd64 intel-oneapi-compiler-shared-runtime-2023.2.0 amd64 2023.2.0-49495 [134 MB]
Get:7 https://apt.repos.intel.com/oneapi all/main all intel-oneapi-tbb-common-2021.10.0 all 2021.10.0-49541 [20.1 kB]
Get:8 https://apt.repos.intel.com/oneapi all/main amd64 intel-oneapi-tbb-2021.10.0 amd64 2021.10.0-49541 [2033 kB]
Get:9 https://apt.repos.intel.com/oneapi all/main amd64 intel-oneapi-compiler-dpcpp-cpp-runtime-2023.2.0 amd64 2023.2.0-49495 [1171 kB]
Get:10 https://apt.repos.intel.com/oneapi all/main all intel-oneapi-mkl-common-2023.2.0 all 2023.2.0-49495 [19.9 kB]
Get:11 https://apt.repos.intel.com/oneapi all/main amd64 intel-oneapi-mkl-2023.2.0 amd64 2023.2.0-49495 [188 MB]
Get:12 https://apt.repos.intel.com/oneapi all/main amd64 intel-oneapi-mkl amd64 2023.2.0-49495 [2300 B]
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin:
Fetched 534 MB in 50s (10.6 MB/s)
Selecting previously unselected package intel-oneapi-common-licensing-2023.2.0.
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 16800 files and directories currently installed.)
Preparing to unpack .../00-intel-oneapi-common-licensing-2023.2.0_2023.2.0-49462_all.deb ...
Unpacking intel-oneapi-common-licensing-2023.2.0 (2023.2.0-49462) ...
Selecting previously unselected package intel-oneapi-common-vars.
Preparing to unpack .../01-intel-oneapi-common-vars_2023.2.0-49462_all.deb ...
Unpacking intel-oneapi-common-vars (2023.2.0-49462) ...
Selecting previously unselected package intel-oneapi-condaindex.
Preparing to unpack .../02-intel-oneapi-condaindex_2023.2.0-49417_amd64.deb ...
Unpacking intel-oneapi-condaindex (2023.2.0-49417) ...
Selecting previously unselected package intel-oneapi-openmp-common-2023.2.0.
Preparing to unpack .../03-intel-oneapi-openmp-common-2023.2.0_2023.2.0-49495_all.deb ...
Unpacking intel-oneapi-openmp-common-2023.2.0 (2023.2.0-49495) ...
Selecting previously unselected package intel-oneapi-openmp-2023.2.0.
Preparing to unpack .../04-intel-oneapi-openmp-2023.2.0_2023.2.0-49495_amd64.deb ...
Unpacking intel-oneapi-openmp-2023.2.0 (2023.2.0-49495) ...
Selecting previously unselected package intel-oneapi-compiler-shared-runtime-2023.2.0.
Preparing to unpack .../05-intel-oneapi-compiler-shared-runtime-2023.2.0_2023.2.0-49495_amd64.deb ...
Unpacking intel-oneapi-compiler-shared-runtime-2023.2.0 (2023.2.0-49495) ...
Selecting previously unselected package intel-oneapi-tbb-common-2021.10.0.
Preparing to unpack .../06-intel-oneapi-tbb-common-2021.10.0_2021.10.0-49541_all.deb ...
Unpacking intel-oneapi-tbb-common-2021.10.0 (2021.10.0-49541) ...
Selecting previously unselected package intel-oneapi-tbb-2021.10.0.
Preparing to unpack .../07-intel-oneapi-tbb-2021.10.0_2021.10.0-49541_amd64.deb ...
Unpacking intel-oneapi-tbb-2021.10.0 (2021.10.0-49541) ...
Selecting previously unselected package intel-oneapi-compiler-dpcpp-cpp-runtime-2023.2.0.
Preparing to unpack .../08-intel-oneapi-compiler-dpcpp-cpp-runtime-2023.2.0_2023.2.0-49495_amd64.deb ...
Unpacking intel-oneapi-compiler-dpcpp-cpp-runtime-2023.2.0 (2023.2.0-49495) ...
Selecting previously unselected package intel-oneapi-mkl-common-2023.2.0.
Preparing to unpack .../09-intel-oneapi-mkl-common-2023.2.0_2023.2.0-49495_all.deb ...
Unpacking intel-oneapi-mkl-common-2023.2.0 (2023.2.0-49495) ...
Selecting previously unselected package intel-oneapi-mkl-2023.2.0.
Preparing to unpack .../10-intel-oneapi-mkl-2023.2.0_2023.2.0-49495_amd64.deb ...
Unpacking intel-oneapi-mkl-2023.2.0 (2023.2.0-49495) ...
Selecting previously unselected package intel-oneapi-mkl.
Preparing to unpack .../11-intel-oneapi-mkl_2023.2.0-49495_amd64.deb ...
Unpacking intel-oneapi-mkl (2023.2.0-49495) ...
Setting up intel-oneapi-condaindex (2023.2.0-49417) ...
Setting up intel-oneapi-common-licensing-2023.2.0 (2023.2.0-49462) ...
Setting up intel-oneapi-common-vars (2023.2.0-49462) ...
Setting up intel-oneapi-mkl-common-2023.2.0 (2023.2.0-49495) ...
Setting up intel-oneapi-openmp-common-2023.2.0 (2023.2.0-49495) ...
Setting up intel-oneapi-tbb-common-2021.10.0 (2021.10.0-49541) ...
Setting up intel-oneapi-openmp-2023.2.0 (2023.2.0-49495) ...
Setting up intel-oneapi-compiler-shared-runtime-2023.2.0 (2023.2.0-49495) ...
Setting up intel-oneapi-tbb-2021.10.0 (2021.10.0-49541) ...
Setting up intel-oneapi-compiler-dpcpp-cpp-runtime-2023.2.0 (2023.2.0-49495) ...
Setting up intel-oneapi-mkl-2023.2.0 (2023.2.0-49495) ...
Setting up intel-oneapi-mkl (2023.2.0-49495) ...​
0 Kudos
VarshaS_Intel
Moderator
3,483 Views

Hi,


Thanks for posting in Intel Communities.


Could you please let us know the exact version of Ubuntu you are using to reproduce the same issue at our end?


Thanks & Regards,

Varsha


0 Kudos
YAIMKLU
Beginner
3,464 Views

Hi,

 

the version is Ubuntu 22.04.3 LTS

Best,
Jonas

0 Kudos
VarshaS_Intel
Moderator
3,426 Views

Hi,

 

Thanks for reporting the issue.

 

We are able to reproduce the issue while using the APT Package Manager. In the meantime, could you please try using the Intel Base Toolkit for the "include" directory (or) you can also use an offline installer to get the "include" directory?

 

wget https://registrationcenter-download.intel.com/akdlm/IRC_NAS/adb8a02c-4ee7-4882-97d6-a524150da358/l_onemkl_p_2023.2.0.49497_offline.sh

sudo sh ./l_onemkl_p_2023.2.0.49497_offline.sh

 

 

Regarding the installation of Intel MKL with the APT Package Manager, we are working on your issue, and we will get back to you soon.

 

Thanks & Regards,

Varsha

 

0 Kudos
joonash
Beginner
3,285 Views

Any updates?

0 Kudos
joonash
Beginner
3,271 Views

Header files can be installed by installing "intel-oneapi-mkl-devel" package.

0 Kudos
VarshaS_Intel
Moderator
3,115 Views

Hi,


Apologies for the delay in response.


As mentioned earlier, we are also able to reproduce the issue at our end.

Our developers are working on this issue. We will get back to you soon once we get an update.


Thanks & Regards,

Varsha


0 Kudos
Reply