Ask Your Question
0

How can I check if the node is using cuda at run-time?

asked 2021-01-23 18:03:37 -0600

runtao gravatar image

updated 2021-01-24 05:17:39 -0600

I have successfully built autoware.ai from source with CUDA enabled. The rosbag demo also runs properly. My question is: will the node like lidar_euclidean_cluster_detect automatically utilize gpu so long as it compiled with cuda? Is there any way to check whether the node is using gpu at run-time? Thanks!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2021-01-24 13:51:50 -0600

You can run nvidia-smi in your terminal and see what processes are using your gpu. Combine this with watch and you can get pseudo real-time resource usage. watch -n 1 nvidia-smi

edit flag offensive delete link more

Comments

To confirm if your docker is compatible with GPU, run nvidia-docker run nvidia/cuda:10.0-base nvidia-smi.

Do this check only if you are using a docker to run your application.

RevatiNaik gravatar image RevatiNaik  ( 2021-02-11 16:57:45 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

3 followers

Stats

Asked: 2021-01-23 18:03:37 -0600

Seen: 116 times

Last updated: Jan 24