On 09/03/2021 17.42, Samuel Thibault wrote:
$ gcc transfers.c -o transfers -lnvidia-ml /usr/bin/ld: cannot find -lnvidia-ml collect2: error: ld returned 1 exit status
Hmm, right. My "unittest" for this package was supposed to be src:nvtop, but that links differently:
/usr/bin/cc -g -O2 -ffile-prefix-map=/build/nvtop-1.1.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -rdynamic CMakeFiles/nvtop.dir/nvtop.c.o CMakeFiles/nvtop.dir/interface.c.o CMakeFiles/nvtop.dir/interface_layout_selection.c.o CMakeFiles/nvtop.dir/get_process_info_linux.c.o CMakeFiles/nvtop.dir/extract_gpuinfo.c.o CMakeFiles/nvtop.dir/time.c.o CMakeFiles/nvtop.dir/plot.c.o -o nvtop -lm -Wl,-z,relro /usr/lib/x86_64-linux-gnu/libnvidia-ml.so.1 -lncursesw -lform
indeed libnvidia-ml-dev doesn't provide a libnvidia-ml.so link in /usr/lib/x86_64-linux-gnu
The driver stopped shipping that (it went to to the private libdir and so far noone asked for adding an alternative to it).
I'll think about where best to add this ... driver or cuda toolkit. Andreas