rib / gputop

A GPU profiling tool
160 stars 37 forks source link

Monitor OpenCL activity on GPU #200

Closed peter197321 closed 5 years ago

peter197321 commented 5 years ago

please how to run and setup GPUTop for monitoring OpenCL code (kernels) execution and get perfromance and its profiling

djdeath commented 5 years ago

If you launch your OpenCL application from the console, you can, for example, get some data sampled using the following command :

gputop-wrapper -m RenderBasic -c GpuCoreClocks,EuActive,L3Misses,GtiL3Throughput,EuFpuBothActive -- ./my-application

What kind of information are you after?

peter197321 commented 5 years ago

At least to check the kernels run on GPU. Ideally GPU occupancy as well ...

Dne pá 19. 4. 2019 0:18 uživatel Lionel Landwerlin notifications@github.com napsal:

If you launch your OpenCL application from the console, you can, for example, get some data sampled using the following command :

gputop-wrapper -m RenderBasic -c GpuCoreClocks,EuActive,L3Misses,GtiL3Throughput,EuFpuBothActive -- ./my-application

What kind of information are you after?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rib/gputop/issues/200#issuecomment-484708254, or mute the thread https://github.com/notifications/unsubscribe-auth/ALGLVQV2VJOWQKQGPKTR74TPRDXUDANCNFSM4HG7JCVA .

djdeath commented 5 years ago

So this tool doesn't let you explore the OpenCL/OpenGL kernels. It does provide utilization data for the various parts of the GPU like the execution units.

You can get the data for the entire system (all applications) with :

gputop-wrapper -m RenderBasic -c EuActive

You can also get the data for a particular application with :

gputop-wrapper -m RenderBasic -c EuActive -- /path/to/my/application

There are lots other metrics. Metrics are grouped by sets. You can list all the sets with :

gputop-wrapper -m list

Then list the metrics of a particular set (here ComputeBasic) with :

gputop-wrapper -m ComputeBasic -c list
djdeath commented 5 years ago

Hopefully that answers your question. Feel free ask more details :)