Files
rocm-systems/samples/1_Utils/hipDispatchLatency/README.md
T
Rahul Manocha 76dd8ea569 SWDEV-436821 Update hip samples Readme files
Change-Id: I6bf3a72eac4a4242cb2dbf4e6eee73e0e1bef2ef
2023-12-21 14:20:44 -05:00

605 B

hipDispatchLatency.cpp

  • Steps to build this sample
$ mkdir build; cd build
$ cmake .. -DCMAKE_PREFIX_PATH=/opt/rocm
$ make
  • Execute Code
$ ./hipDispatchEnqueueRateMT 1 0
Thread ID : 0 , hipModuleLaunchKernel enqueue rate: 0.8 us, std: 0.1 us

$ ./hipDispatchEnqueueRateMT 1 1
Thread ID : 0 , hipLaunchKernelGGL enqueue rate: 1.0 us, std: 0.1 us

$ ./hipDispatchLatency
hipModuleLaunchKernel enqueue rate: 0.8 us, std: 0.1 us

hipLaunchKernelGGL enqueue rate: 1.0 us, std: 0.1 us

Timing around single dispatch latency: 8.1 us, std: 4.7 us

Batch dispatch latency: 1.4 us, std: 0.0 us