Peter De Groot Posted October 8, 2019 Share Posted October 8, 2019 Trying to enable a supported nvidia gpu as per the doc here https://github.com/ant-media/Ant-Media-Server/wiki/Enable-NVIDIA-GPU-Encoder-Support Problem the doc talks about Ubuntu 16.04. hence the links are not relevant ? So I went to the Cuda download site and got https://developer.nvidia.com/cuda-downloads Which gave me some stuff... probably a lot more that I needed... So I tried that. This gives me version 10.1........ which according to the antmedia site may cause problems. In my case a reboot told me that it could not find cuda. The antmedia doc tells me to trying installing the compatibility stuff. Sadly, I cannot find those packages.. can somebody point the best way to get the gpu working ? I do not know what I did yesterday.. but I did have it working... but I reinstalled the OS and trashed it.. TIA Peter Link to comment Share on other sites More sharing options...
0 Peter De Groot Posted October 8, 2019 Author Share Posted October 8, 2019 These packages for compatibility to version 10.0 sudo apt install cuda-cudart-10-0sudo apt install cuda-compat-10-0 Peter Link to comment Share on other sites More sharing options...
0 Peter De Groot Posted October 17, 2019 Author Share Posted October 17, 2019 At the risk of a tldr.... putting in the reply from support@antmedia FWIW.... on the "cheaper" nvidia cards .... apparently nvidia-smi will not show you the processes running on the card... sigh.. That suggestion about grep nvenc did not seem to work either Burak Kekec (Ant Media) Oct 11, 12:17 +03 You can easily check if gpu works as follows: Add an adaptive setting using AMS Management Console. (I guess you already did) Start a stream. Then run nvidia-smi. If gpu is used you will see there. Also, you can grep "nvenc". Kind Regards, DE GROOT Peter [Eastern Goldfields College] Oct 11, 07:58 +03 Interesting.. The first one was already installed… the second one not.. Anyway.. restarted. Here is the grep on all the logs files in /usr/log/antmedia/logs root@e4182s01sv026:/usr/local/antmedia/log# grep -i gpu * ant-media-server.log:2019-10-08 13:36:15,812 [http-nio2-0.0.0.0-5080-exec-2] WARN io.antmedia.statistic.GPUUtils - UnsatisfiedLinkError no cuda installed no jnicuda in java.library.path ant-media-server.log:2019-10-08 13:57:50,532 [http-nio2-0.0.0.0-5080-exec-8] WARN io.antmedia.statistic.GPUUtils - UnsatisfiedLinkError no cuda installed no jnicuda in java.library.path ant-media-server.log:2019-10-08 14:51:46,358 [http-nio2-0.0.0.0-5080-exec-4] WARN io.antmedia.statistic.GPUUtils - UnsatisfiedLinkError no cuda installed no jnicuda in java.library.path ant-media-server.log:2019-10-09 11:12:38,956 [http-nio2-0.0.0.0-5080-exec-2] WARN io.antmedia.statistic.GPUUtils - UnsatisfiedLinkError no cuda installed no jnicuda in java.library.path ant-media-server.log:2019-10-09 11:21:46,672 [http-nio2-0.0.0.0-5080-exec-7] WARN io.antmedia.statistic.GPUUtils - UnsatisfiedLinkError no cuda installed no jnicuda in java.library.path ant-media-server.log:2019-10-09 12:15:38,732 [http-nio-0.0.0.0-5080-exec-6] WARN io.antmedia.statistic.GPUUtils - UnsatisfiedLinkError no cuda installed no jnicuda in java.library.path Binary file ant-media-server.log matches Interestingly… ALL the messages are from 2 days ago when I first tried the re-install… So I have to assume that if it finds a GPU it does NOT log a message.. is this true ? In that case it must be working.. Would be nice if there was a log message to say that it found one.. FWIW…. Apparently that Not Supported message in the process usage from nvidia-smi is common for low end Nvidia cards… Which is annoying as I would like to know how much work it is doing.. Anyway… I am re-broadcasting 5 streams ingested from ffmpeg and rtsp from cameras, and on an I7 I am using about 18% of total CPU. Impressive. Cheers Peter DE GROOT Peter [Eastern Goldfields College] Oct 10, 10:49 +03 ah no… will try. Tx peter Burak Kekec (Ant Media) Oct 10, 10:28 +03 Did you install compatibility packages? sudo apt install cuda-cudart-10-0sudo apt install cuda-compat-10-0 Kind Regards, DE GROOT Peter [Eastern Goldfields College] Oct 10, 09:29 +03 Hi, That seemed to work.. HOWEVER … I cannot tell if it is working.. This is the output from me searching the log files.. grep -i cuda * ant-media-server.log:2019-10-08 13:36:15,812 [http-nio2-0.0.0.0-5080-exec-2] WARN io.antmedia.statistic.GPUUtils - UnsatisfiedLinkError no cuda installed no jnicuda in java.library.path ant-media-server.log:2019-10-08 13:57:50,532 [http-nio2-0.0.0.0-5080-exec-8] WARN io.antmedia.statistic.GPUUtils - UnsatisfiedLinkError no cuda installed no jnicuda in java.library.path ant-media-server.log:2019-10-08 14:51:46,358 [http-nio2-0.0.0.0-5080-exec-4] WARN io.antmedia.statistic.GPUUtils - UnsatisfiedLinkError no cuda installed no jnicuda in java.library.path ant-media-server.log:2019-10-09 11:12:38,956 [http-nio2-0.0.0.0-5080-exec-2] WARN io.antmedia.statistic.GPUUtils - UnsatisfiedLinkError no cuda installed no jnicuda in java.library.path ant-media-server.log:2019-10-09 11:21:46,672 [http-nio2-0.0.0.0-5080-exec-7] WARN io.antmedia.statistic.GPUUtils - UnsatisfiedLinkError no cuda installed no jnicuda in java.library.path ant-media-server.log:2019-10-09 12:15:38,732 [http-nio-0.0.0.0-5080-exec-6] WARN io.antmedia.statistic.GPUUtils - UnsatisfiedLinkError no cuda installed no jnicuda i n java.library.path Binary file ant-media-server.log matches The latest entry is from yesterday. Today is the 10th The antmedia server is working. How do I tell if it is working This the output of nvidia.smi nvidia-smi Thu Oct 10 13:56:03 2019 +-----------------------------------------------------------------------------+ | NVIDIA-SMI 430.26 Driver Version: 430.26 CUDA Version: 10.2 | |-------------------------------+----------------------+----------------------+ | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | |===============================+======================+======================| | 0 GeForce GTX 780 Off | 00000000:01:00.0 N/A | N/A | | 37% 29C P8 N/A / N/A | 120MiB / 3018MiB | N/A Default | +-------------------------------+----------------------+----------------------+ +-----------------------------------------------------------------------------+ | Processes: GPU Memory | | GPU PID Type Process name Usage | |=============================================================================| | 0 Not Supported | +-----------------------------------------------------------------------------+ I thought I had installed version 10… But here it says that I have version 10.2 I installed the driver via the Ubuntu gui.. Your thoughts ? Regards Peter Burak Kekec (Ant Media) Oct 9, 10:28 +03 Hi Peter, Please try these for the first 3 steps. wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-repo-ubuntu1804_10.1.243-1_amd64.deb sudo dpkg -i cuda-repo-ubuntu1804_10.1.243-1_amd64.deb sudo apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub Kind Regards, Link to comment Share on other sites More sharing options...
Question
Peter De Groot
can somebody point the best way to get the gpu working ?
Link to comment
Share on other sites
Top Posters For This Question
3
Popular Days
Oct 8
2
Oct 17
1
Top Posters For This Question
Peter De Groot 3 posts
Popular Days
Oct 8 2019
2 posts
Oct 17 2019
1 post
2 answers to this question
Recommended Posts