DMAPerfWarnings#

Fully qualified name: cupva_utils::DMAPerfWarnings

Defined in cupva_host_utils.hpp

std::string cupva_utils::DMAPerfWarnings(cupva::CmdProgram &program)#

Report potential perf issues due to suboptimal DMA configs.

This function will detect and generate these DMA warnings:

  1. A RDF or GSDF is decomposed to SWSEQ.

  2. Line pitch of an inbound SDF or RDF’s source buffer is not 64-byte aligned.

  3. Tile width of an SDF or RDF is not 64-byte aligned.

  4. Any data flow requires more than 1 round trips to MC to fetch the data.

Usage considerations

  • Allowed context for the API call

    • Interrupt handler: No

    • Signal handler: No

    • Thread-safe: No

    • Re-entrant: No

    • Async/Sync: Sync

  • Required privileges: None

  • Allowed execution state

    • Initialization: Yes

    • Operational: Yes

    • Reinit/Deinit Preparation: Yes

  • Maturity: GA

Parameters:

program – The program to log information about

Returns:

The perf warning string

Pre:

cupva::CmdProgram::compileDataFlows must be invoked on the CmdProgram prior to calling this API.