intel / linux-npu-driver

Intel® NPU (Neural Processing Unit) Driver
MIT License
155 stars 15 forks source link

The dependency target "ze_loader" of target "ze_intel_vpu" does not exist #14

Closed raziurtotha closed 10 months ago

raziurtotha commented 10 months ago

Hello,

I am on Intel core ultra 7 165H

I am trying to build the NPU driver. I used submodule update --init. But getting the following error:

user@user-MTL:~/linux-npu-driver$ cmake -B build -S .
-- The C compiler identification is GNU 11.4.0
-- The CXX compiler identification is GNU 11.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- CMAKE_BUILD_TYPE not specified, using Release
-- Using CMAKE_BUILD_TYPE=Release
-- option ENABLE_OPENVINO_PACKAGE: OFF
-- option ENABLE_VPUX_COMPILER_BUILD: OFF
-- ENABLE_SANITIZER not specified, using no sanitizers
-- option ENABLE_SANITIZER: 
-- Found LevelZero: /usr/include   
-- LevelZero_LIBRARIES: /usr/lib/x86_64-linux-gnu/libze_loader.sodl
-- LevelZero_INCLUDE_DIRS: /usr/include
-- Found Python: /usr/bin/python3.10 (found version "3.10.12") found components: Interpreter 
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Performing Test COMPILER_SUPPORTS_WCLOBBERED
-- Performing Test COMPILER_SUPPORTS_WCLOBBERED - Success
-- Level Zero driver version: 1.1.0
-- NAME = ubuntu
-- VERSION_ID = 22.04
-- Configuring done
CMake Error at umd/level_zero_driver/CMakeLists.txt:25 (add_dependencies):
  The dependency target "ze_loader" of target "ze_intel_vpu" does not exist.

Any help would be appreciated.

peterzheng98 commented 1 month ago

I've met the same problem, any advice to solve it?