shmem_throughput_demo calculation issue #328
Unanswered
vakeesank99
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm new to libmetal implementation but I could find a problem with shmem_throughput_demo when I change the MAX_PACK_SIZE. each time I receive different throughput for a particular package size in the printing statement. After the debugging
"/* Print the measurement result */
for (s = PKG_SIZE_MIN, i = 0; s <= PKG_SIZE_MAX; s <<= 1, i++) {
LPRINTF("Shared memory throughput of pkg size %lu : \n", s);
LPRINTF(" APU send: %x, %lu MB/s\n", apu_tx_count[i],
s * iterations * TTC_CLK_FREQ_HZ / apu_tx_count[i] / MB);
LPRINTF(" APU receive: %x, %lu MB/s\n", apu_rx_count[i],
s * iterations * TTC_CLK_FREQ_HZ / apu_rx_count[i] / MB);
LPRINTF(" RPU send: %x, %lu MB/s\n", rpu_tx_count[i],
s * iterations * TTC_CLK_FREQ_HZ / rpu_tx_count[i] / MB);
LPRINTF(" RPU receive: %x, %lu MB/s\n", rpu_rx_count[i],
s * iterations * TTC_CLK_FREQ_HZ / rpu_rx_count[i] / MB);"
here "iterations=TOTAL_DATA_SIZE/s" is missing because throughput calculation included the TOTAL_DATA_SIZE/time in the form of s * iteration/time. Maybe I'm wrong please correct me. Thank you!
Beta Was this translation helpful? Give feedback.
All reactions