FAQ and known issues

Updated at:
Copy as MD

FAQ

1. Minimize test environment variance

When you use acu for performance analysis, you can set the device to exclusive mode to minimize variance between collection runs. This prevents other programs from running during the acu sampling process.

# Set the device to exclusive mode
ppu-smi -c EXCLUSIVE_PROCESS

# Restore the device to default mode
ppu-smi -c DEFAULT

Lock the device frequency to reduce the impact of dynamic frequency scaling on acu sampling:

# Lock the device frequency to 1.5GHz
ppu-smi -lpc 1500

# Release the frequency lock
ppu-smi -rpc

2. Acu hangs after application exit

Some target applications fork multiple child processes after they start. If a child process continues running after the main process has exited, acu waits for the child process to terminate. This can make acu appear to hang.

To confirm this scenario:

  1. Install the pstree tool.

  2. When acu appears to hang, open another terminal and run the command: pstree <acu_pid>. Check the output list. The presence of a forked process from the target application indicates that a child process has not terminated.

Workaround:

Use the --wait primary argument in your acu command to make acu wait only for the main process of the target application to exit.

3. Unable to collect PPU performance data

Acu may fail if another application is using the resources required for PPU performance data collection. This can happen for the following reasons:

  • Another acu application is collecting trace data.

  • Another asys application is collecting device metrics.

  • DCGM is collecting performance analysis metrics. You can pause DCGM collection by running dcgmi profile --pause.

Known issues

  • PPU SDK v1.2.0: Acu might crash when profiling applications that subscribe to hgpti.

  • Profiling individual kernel nodes within an HGGC graph is not supported. However, you can collect performance data for the entire graph by using the --graph-profiling graph argument.

  • Profiling applications that use hggcLaunchCooperativeKernelMultiDevice is not supported.

  • If the I/O throughput of the output location specified with the acu -o option is low, the acu report file may be incomplete.

  • The --profile-from-start option does not support cross-process control of the collection range.

  • Your application must be compiled with the -pthread option. Otherwise, acu may crash.

  • If an acu collection process is interrupted, acu may not display the collected trace information correctly.

  • In Warp State Statistics, the value for Avg. Active Threads Per Warp [inst] is lower than expected.

  • In Range Replay mode, the following memory-related capture and replay APIs are unstable and may affect data accuracy.

    # HGGC runtime API
    hggcMemcpy2D,
    hggcMemcpy2DArrayToArray,
    hggcMemcpy2DArrayToArray_ptds,
    hggcMemcpy2DAsync,
    hggcMemcpy2DAsync_ptsz,
    hggcMemcpy2DFromArray,
    hggcMemcpy2DFromArrayAsync,
    hggcMemcpy2DFromArrayAsync_ptsz,
    hggcMemcpy2DFromArray_ptds,
    hggcMemcpy2DToArray,
    hggcMemcpy2DToArrayAsync,
    hggcMemcpy2DToArrayAsync_ptsz,
    hggcMemcpy2DToArray_ptds,
    hggcMemcpy2D_ptds,
    hggcMemcpy3D,
    hggcMemcpy3DAsync,
    hggcMemcpy3DAsync_ptsz,
    hggcMemcpy3DPeer,
    hggcMemcpy3DPeerAsync,
    hggcMemcpy3DPeerAsync_ptsz,
    hggcMemcpy3DPeer_ptds,
    hggcMemcpy3D_ptds,
    hggcMemcpyArrayToArray,
    hggcMemcpyArrayToArray_ptds,
    hggcMemcpyAsync,
    hggcMemcpyAsync_ptsz,
    hggcMemcpyFromArray,
    hggcMemcpyFromArrayAsync,
    hggcMemcpyFromArrayAsync_ptsz,
    hggcMemcpyFromArray_ptds,
    hggcMemcpyFromSymbol,
    hggcMemcpyFromSymbolAsync,
    hggcMemcpyFromSymbolAsync_ptsz,
    hggcMemcpyFromSymbol_ptds,
    hggcMemcpyPeer,
    hggcMemcpyPeerAsync,
    hggcMemcpyToArray,
    hggcMemcpyToArrayAsync,
    hggcMemcpyToArrayAsync_ptsz,
    hggcMemcpyToArray_ptds,
    hggcMemcpyToSymbol,
    hggcMemcpyToSymbolAsync,
    hggcMemcpyToSymbolAsync_ptsz,
    hggcMemcpyToSymbol_ptds,
    hggcMemcpy_ptds,
    hggcMemset,
    hggcMemset2D,
    hggcMemset2DAsync,
    hggcMemset2DAsync_ptsz,
    hggcMemset2D_ptds,
    hggcMemset3D,
    hggcMemset3DAsync,
    hggcMemset3DAsync_ptsz,
    hggcMemset3D_ptds,
    hggcMemsetAsync,
    hggcMemsetAsync_ptsz,
    hggcMemset_ptds,
    hggcStreamAttachMemAsync,
    hggcStreamAttachMemAsync_ptsz,
    hggcHostAlloc,
    hggcMalloc,
    hggcMalloc3D,
    hggcMalloc3DArray,
    hggcMallocArray,
    hggcMallocHost,
    hggcMallocManaged,
    hggcMallocMipmappedArray,
    hggcMallocPitch,
    hggcFree,
    hggcFreeArray,
    hggcFreeHost,
    hggcFreeMipmappedArray,
    hggcLaunch,
    hggcLaunch_ptsz,
    hggcLaunchKernel_ptsz,
    hggcLaunchCooperativeKernel_ptsz,
    hggcLaunchCooperativeKernelMultiDevice,
    
    # Hggc Driver API
    hgMemcpyHtoD,
    hg64MemcpyHtoD,
    hgMemcpyDtoH,
    hg64MemcpyDtoH,
    hgMemcpyDtoD,
    hg64MemcpyDtoD,
    hgMemcpyDtoA,
    hg64MemcpyDtoA,
    hgMemcpyAtoD,
    hg64MemcpyAtoD,
    hgMemcpyHtoA,
    hgMemcpyAtoH,
    hgMemcpyAtoA,
    hgMemcpy2D,
    hgMemcpy2DUnaligned,
    hgMemcpy3D,
    hg64Memcpy3D,
    hgMemcpyHtoDAsync,
    hg64MemcpyHtoDAsync,
    hgMemcpyDtoHAsync,
    hg64MemcpyDtoHAsync,
    hgMemcpyDtoDAsync,
    hg64MemcpyDtoDAsync,
    hgMemcpyHtoAAsync,
    hgMemcpyAtoHAsync,
    hgMemcpy2DAsync,
    hgMemcpy3DAsync,
    hg64Memcpy3DAsync,
    hg64Memcpy2D,
    hg64Memcpy2DUnaligned,
    hg64Memcpy2DAsync,
    hgMemcpy_v2,
    hgMemcpyHtoD_v2,
    hgMemcpyHtoDAsync_v2,
    hgMemcpyDtoH_v2,
    hgMemcpyDtoHAsync_v2,
    hgMemcpyDtoD_v2,
    hgMemcpyDtoDAsync_v2,
    hgMemcpyAtoH_v2,
    hgMemcpyAtoHAsync_v2,
    hgMemcpyAtoD_v2,
    hgMemcpyDtoA_v2,
    hgMemcpyAtoA_v2,
    hgMemcpy2D_v2,
    hgMemcpy2DUnaligned_v2,
    hgMemcpy2DAsync_v2,
    hgMemcpy3D_v2,
    hgMemcpy3DAsync_v2,
    hgMemcpyHtoA_v2,
    hgMemcpyHtoAAsync_v2,
    hgMemcpy,
    hgMemcpyAsync,
    hgMemcpyPeer,
    hgMemcpyPeerAsync,
    hgMemcpy3DPeer,
    hgMemcpy3DPeerAsync,
    hgMemcpyHtoD_v2_ptds,
    hgMemcpyDtoH_v2_ptds,
    hgMemcpyDtoD_v2_ptds,
    hgMemcpyDtoA_v2_ptds,
    hgMemcpyAtoD_v2_ptds,
    hgMemcpyHtoA_v2_ptds,
    hgMemcpyAtoH_v2_ptds,
    hgMemcpyAtoA_v2_ptds,
    hgMemcpy2D_v2_ptds,
    hgMemcpy2DUnaligned_v2_ptds,
    hgMemcpy3D_v2_ptds,
    hgMemcpy_ptds,
    hgMemcpyPeer_ptds,
    hgMemcpy3DPeer_ptds,
    hgMemcpyAsync_ptsz,
    hgMemcpyHtoAAsync_v2_ptsz,
    hgMemcpyAtoHAsync_v2_ptsz,
    hgMemcpyHtoDAsync_v2_ptsz,
    hgMemcpyDtoHAsync_v2_ptsz,
    hgMemcpyDtoDAsync_v2_ptsz,
    hgMemcpy2DAsync_v2_ptsz,
    hgMemcpy3DAsync_v2_ptsz,
    hgMemcpyPeerAsync_ptsz,
    hgMemcpy3DPeerAsync_ptsz,
    hgMemsetD8,
    hg64MemsetD8,
    hgMemsetD16,
    hg64MemsetD16,
    hgMemsetD32,
    hg64MemsetD32,
    hgMemsetD2D8,
    hg64MemsetD2D8,
    hgMemsetD2D16,
    hg64MemsetD2D16,
    hgMemsetD2D32,
    hg64MemsetD2D32,
    hgMemsetD8Async,
    hg64MemsetD8Async,
    hgMemsetD16Async,
    hg64MemsetD16Async,
    hgMemsetD32Async,
    hg64MemsetD32Async,
    hgMemsetD2D8Async,
    hg64MemsetD2D8Async,
    hgMemsetD2D16Async,
    hg64MemsetD2D16Async,
    hgMemsetD2D32Async,
    hg64MemsetD2D32Async,
    hgMemsetD8_v2,
    hgMemsetD16_v2,
    hgMemsetD32_v2,
    hgMemsetD2D8_v2,
    hgMemsetD2D16_v2,
    hgMemsetD2D32_v2,
    hgMemsetD8_v2_ptds,
    hgMemsetD16_v2_ptds,
    hgMemsetD32_v2_ptds,
    hgMemsetD2D8_v2_ptds,
    hgMemsetD2D16_v2_ptds,
    hgMemsetD2D32_v2_ptds,
    hgMemsetD8Async_ptsz,
    hgMemsetD16Async_ptsz,
    hgMemsetD32Async_ptsz,
    hgMemsetD2D8Async_ptsz,
    hgMemsetD2D16Async_ptsz,
    hgMemsetD2D32Async_ptsz,
    hgMemSetAccess,
    hgStreamAttachMemAsync,
    hgStreamAttachMemAsync_ptsz,
    hgMemAlloc,
    hg64MemAlloc,
    hgMemAllocPitch,
    hg64MemAllocPitch,
    hgMemAllocHost,
    hgMemHostAlloc,
    hg64MemHostAlloc,
    hgMemAlloc_v2,
    hgMemAllocPitch_v2,
    hgMemHostAlloc_v2,
    hgMemAllocHost_v2,
    hgMemAllocAsync,
    hgMemAllocAsync_ptsz,
    hgMemAllocFromPoolAsync,
    hgMemAllocFromPoolAsync_ptsz,
    hgMemFree,
    hg64MemFree,
    hgMemFreeHost,
    hgMemFree_v2,
    hgMemAddressFree,
    hgMemFreeAsync,
    hgMemFreeAsync_ptsz,
  • In App-Range Replay mode, enabling instruction statistics in a multi-card scenario results in slower profiling. This is because collection runs on a single thread without multi-threaded acceleration.

  • The logical icnlink throughput displayed in the ICNlink Section shows MAC layer data, which is higher than the actual user data transmitted through ICNlink.

  • On a Mac system, forcibly quitting the GUI while opening a report may cause a crash or hang.

  • In the Memory Chart, the data for Global -> KVD and Load Global Store Shared -> KVD is measured in requests (req). This unit is inaccurate for these metrics, as a request does not equate to an instruction (inst); the correct unit is inst. In contrast, the data for the corresponding Global -> KSD metric is accurate because, in this context, one request is equivalent to one instruction.