-1

I am profiling a CUDA application and dumping the logs to a file say target.prof

My application uses multiple threads to dispatch kernels and I want to observe the api calls from just one of those threads. I tried using nvprof -i target.prof --print-api-trace but this does not print the thread_id.

When I open this file with the visual profiler, I can see which API calls were launched from which thread. How can I access the same information using the command line profiler?

Edit: View in the visual profiler

Visual Profiler showing multiple threads

4

1 回答 1

-2

GPU 线程是在启动这些内核还是 CPU 线程?如果 cpu 线程然后使用选项--cpu-thread-tracing on

于 2018-09-12T06:03:13.807 回答