Skip to content

Instantly share code, notes, and snippets.

@bollu
Created April 14, 2018 19:46
Show Gist options
  • Save bollu/ffc1ac21f3d152690d4f94c9048dc1cd to your computer and use it in GitHub Desktop.
Save bollu/ffc1ac21f3d152690d4f94c9048dc1cd to your computer and use it in GitHub Desktop.
Numbers from just measuring the static "number of instructions"

CPU (total # of instructions, as counted by -instcount)

  • DRAGONEGG_TOTAL_INSTRUCTIONS_CPU = 124996
  • POLLY_VALUE_PROFILING_TOTAL_INSTRUCTIONS_CPU = 133760
  • POLLY_NO_VALUE_PROFILING_TOTAL_INSTRUCTIONS_CPU = 176316

GPU (total # of instructions, across all kernels)

  • gpu total (valprof): 14719
  • total (novalprof): 17326

Ratio (GPU / CPU)

  • Valprof: 14719 / 133760 = 0.11004037081339713
  • Novalprof: 17326 / 176316 = 0.09826674833821095

Does this data actually tell us anything, in the static case? I am not sure if it will tell us anything in the dynamic case as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment