Jump to content
  • 0

Problem installing CUDA on 18.04


Peter De Groot
 Share

Question


Trying to enable a supported nvidia gpu as per the doc  here


Problem the doc talks about Ubuntu 16.04.  hence the links are not relevant ?

So I went to the Cuda download site and got


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

  • Answers 2
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

2 answers to this question

Recommended Posts

  • 0

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

contact.png

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,

 

776680935fed9bfe059ab737c057df89?size=40&default=https%3A%2F%2Fassets.zendesk.com%2Fimages%2F2016%2Fdefault-avatar-80.png&r=g

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

 

 



 


 

776680935fed9bfe059ab737c057df89?size=40&default=https%3A%2F%2Fassets.zendesk.com%2Fimages%2F2016%2Fdefault-avatar-80.png&r=g

DE GROOT Peter [Eastern Goldfields College]

Oct 10, 10:49 +03

 

ah no… will try.

 

 

Tx

 

peter

 

 

contact.png

Burak Kekec (Ant Media)

Oct 10, 10:28 +03

Did you install compatibility packages?

sudo apt install cuda-cudart-10-0
sudo apt install cuda-compat-10-0

 

Kind Regards,

 

776680935fed9bfe059ab737c057df89?size=40&default=https%3A%2F%2Fassets.zendesk.com%2Fimages%2F2016%2Fdefault-avatar-80.png&r=g

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

 

 

contact.png

Burak Kekec (Ant Media)

Oct 9, 10:28 +03

Hi Peter,
Please try these for the first 3 steps.

 

Kind Regards,

Link to comment
Share on other sites

 Share

×
×
  • Create New...