intel / linux-npu-driver

Intel® NPU (Neural Processing Unit) Driver
MIT License
189 stars 18 forks source link

Resolve compilation errors #20

Closed luhaopei closed 7 months ago

luhaopei commented 8 months ago

systemos:Ubuntu 22.04

error 1: linux-npu-driver/umd/vpu_driver/include/umd_common.hpp:39:33: error: ‘uint64_t’ does not name a type 39 | if (x > static_cast(std::numeric_limits::max())) { | ^~~~ linux-npu-driver/umd/vpu_driver/include/umd_common.hpp:13:1: note: ‘uint64_t’ is defined in header ‘’; did you forget to ‘#include ’?

error 2: linux-npu-driver/umd/level_zero_driver/ext/source/graph/vcl_symbols.hpp:99:33: error: field ‘compilerNames’ has incomplete type ‘std::array<const char, 2>’ 99 | std::array<const char , 2> compilerNames = {libvpux_driver_compiler.so, | ^~~~~

jwludzik commented 8 months ago

Can you tell what compiler do you use?

luhaopei commented 8 months ago

Can you tell what compiler do you use?

Sorry for replying so late My Ubuntu gcc version:13.2.0 g++ version: 13.2.0

jwludzik commented 8 months ago

Thanks for response!

Ubuntu22.04 uses gcc-11 by default. I can see there are errors when compiling using gcc-12 that is available in Ubuntu22.04 as well. Similar issues with missing includes. I will add a new patch for it, because there are new changes in main branch

jwludzik commented 8 months ago

The issues has been fixed in https://github.com/intel/linux-npu-driver/pull/25

luhaopei commented 7 months ago

thank you