Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.

Error: INTERNAL_IPP_INC_CORE NOTFOUND

eddie_patton
Novo colaborador II
524 Visualizações

I get the following error when running cmake

 

 

-- Intel(R) IPP(static) was found here: C:\Program Files (x86)\Intel\oneAPI\ipp\latest
--       folder with libraries: C:/Program Files (x86)/Intel/oneAPI/ipp/latest/lib;C:\Program Files (x86)\Intel\oneAPI\ipp\latest\lib\..\..\..\compiler\lib\intel64
--       folder with includes : INTERNAL_IPP_INC_CORE-NOTFOUND
-- Configuring done (0.7s)
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
C:/git/ipp/IPPPlus/bench/INTERNAL_IPP_INC_CORE

 

cmake 3. 27.2

Windows 11

IPP 2022

I installed IPP in the default directory. I also have 2021.10 installed.The installation resulted in this file structure

C:\Program Files (x86)\Intel\oneAPI\

ipp - 2021.10

       - 2022.0

       - latest (symlinked to C:\Program Files (x86)\Intel\oneAPI\ipp\2022.0)

           - include

                 - ipp.h

                 - ipp

                     - ippcore.h

In FindIPP.cmake, the following sets INTERNAL_IPP_INC_CORE by looking for ippcore.h in the hints paths: PATHS and ${INTERNAL_IPP_INC}

 

 

 

set(INTERNAL_IPP_INC $ENV{IPPROOT}/include)
find_path   (INTERNAL_IPP_INC_CORE ippcore.h  PATHS ${INTERNAL_IPP_INC})​

 

 

My IPPROOT is set to C:\Program Files (x86)\Intel\oneAPI\ipp\latest
 
Any thoughts as to why find_path can't find ippcore.h? It is in the "hint" path given to find_path().
 
 
 
0 Kudos
1 Solução
eddie_patton
Novo colaborador II
467 Visualizações

My bad. I discovered that the FindIPP.cmake I'm using is custom to the repo. I thought it was part of the cmake.

Ver solução na publicação original

3 Respostas
eddie_patton
Novo colaborador II
479 Visualizações

After a bit more research (thank-you stack overflow!), it appears find_path() is not recursive. 

So it appears the IPPROOT set by setvars.bat won't work (C:\Program Files (x86)\Intel\oneAPI\ipp\latest) because of the include\ipp folder that holds the .h files. The FindIPP.cmake assumes there is no include\ipp folder, just include. 

If I add the following to FindIPP.cmake, cmake completes

eddie_patton_0-1735605896363.png

Another option is to move the 2022.0\include\ipp files to 2022.0\include

There must be something I'm doing wrong though because I can't find others online who have run into this issue. 

eddie_patton
Novo colaborador II
468 Visualizações

My bad. I discovered that the FindIPP.cmake I'm using is custom to the repo. I thought it was part of the cmake.

Ruqiu_C_Intel
Moderador
465 Visualizações

 

Thank you Eddie for the sharing for your fix

Have you try the followings?

set(INTERNAL_IPP_INC $ENV{IPPROOT}/include)
find_path(INTERNAL_IPP_INC_CORE ippcore.h PATHS ${INTERNAL_IPP_INC}/ipp)

include_directories(${INTERNAL_IPP_INC} ${INTERNAL_IPP_INC_CORE})

 

Responder