intel / linux-npu-driver

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

utils lib not found #52

Closed slllu1 closed 2 months ago

slllu1 commented 2 months ago

building with Compiler from the most recent repo and got the error message:

/usr/bin/ld: cannot find -lutils: No such file or directory collect2: error: ld returned 1 exit status

I did a apt-file search and only found two possible candidates: android-libutils: /usr/lib/x86_64-linux-gnu/android/libutils.so android-libutils: /usr/lib/x86_64-linux-gnu/android/libutils.so.0 pgmodeler: /usr/lib/pgmodeler/libutils.so pgmodeler: /usr/lib/pgmodeler/libutils.so.1 pgmodeler: /usr/lib/pgmodeler/libutils.so.1.0 pgmodeler: /usr/lib/pgmodeler/libutils.so.1.0.0

Hmmm... Not sure which one. But wha tis the cause of the missing utils lib? thanks

slllu1 commented 2 months ago

I checked: $ echo $LD_LIBRARY_PATH /home/sllu/linux-npu-driver/build/lib: $ ls /home/sllu/linux-npu-driver/build/lib libgmock.a libze_intel_vpu.so.1 libze_loader.so.1.17.6 libgtest.a libze_intel_vpu.so.1.8.0 libze_validation_layer.so libutils.a libze_loader.so libze_validation_layer.so.1 libze_intel_vpu.so libze_loader.so.1 libze_validation_layer.so.1.17.6

slllu1 commented 2 months ago

I tried building just the driver. Kept on failing. I went to make sure my intel_vpu is loaded and got "out of memory" looking at the dmesg with "sudo dmesg | tail -n 20" got: [173945.393128] [ 172155] 1000 172155 725 220 0 220 0 45056 0 0 sh [173945.393129] [ 172156] 1000 172156 2352 308 0 308 0 57344 44 0 c++ [173945.393131] [ 172157] 1000 172157 420926 377241 376977 264 0 3342336 20988 0 cc1plus [173945.393132] [ 172158] 1000 172158 725 308 0 308 0 45056 0 0 sh [173945.393133] [ 172160] 1000 172160 437805 392131 391911 220 0 3481600 22572 0 cc1plus [173945.393135] [ 172161] 1000 172161 2352 308 0 308 0 61440 44 0 c++ [173945.393136] [ 172162] 1000 172162 422625 378147 377883 264 0 3358720 21560 0 cc1plus [173945.393137] [ 172163] 1000 172163 331872 305671 305407 264 0 2625536 2552 0 cc1plus [173945.393139] [ 172164] 1000 172164 2352 308 0 308 0 57344 44 0 c++ [173945.393140] [ 172166] 1000 172166 2352 308 0 308 0 61440 44 0 c++ [173945.393142] [ 172167] 1000 172167 725 264 0 264 0 49152 0 0 sh [173945.393143] [ 172168] 1000 172168 421503 376879 376791 88 0 3350528 21604 0 cc1plus [173945.393145] [ 172169] 1000 172169 2352 352 0 352 0 61440 44 0 c++ [173945.393146] [ 172170] 1000 172170 387856 344152 343932 220 0 3072000 20768 0 cc1plus [173945.393147] [ 172171] 1000 172171 395151 351798 351578 220 0 3129344 20240 0 cc1plus [173945.393149] [ 172172] 1000 172172 422846 377695 377607 88 0 3338240 22264 0 cc1plus [173945.393150] [ 172174] 1000 172174 386309 342392 342084 308 0 3063808 20944 0 cc1plus [173945.393151] [ 172175] 1000 172175 388081 343506 343286 220 0 3080192 21736 0 cc1plus [173945.393154] oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=/,mems_allowed=0,global_oom,task_memcg=/user.slice/user-1000.slice/user@1000.service/app.slice/app-org.gnome.Terminal.slice/vte-spawn-e004953d-0dd4-493a-b960-71f163a79394.scope,task=cc1plus,pid=172160,uid=1000 [173945.393169] Out of memory: Killed process 172160 (cc1plus) total-vm:1751220kB, anon-rss:1567644kB, file-rss:880kB, shmem-rss:0kB, UID:1000 pgtables:3400kB oom_score_adj:0

slllu1 commented 2 months ago

i believe my local repo got confused from a pull. I deleted the whole thing and clone it again. It seam to work now.