浏览代码

Document using nvidia-smi to measure CUDA task consumption

Samuel Thibault 10 年之前
父节点
当前提交
1bbf290033
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      doc/doxygen/chapters/08scheduling.doxy

+ 4 - 0
doc/doxygen/chapters/08scheduling.doxy

@@ -128,6 +128,10 @@ the user can for instance run a given task a thousand times, measure the global
 consumption for that series of tasks, divide it by a thousand, repeat for
 varying kinds of tasks and task sizes, and eventually feed StarPU
 with these manual measurements through starpu_perfmodel_update_history().
+For instance, for CUDA devices, <c>nvidia-smi -q -d POWER</c> can be used to get
+the current consumption in Watt. Multiplying that value by the average duration
+of a single task gives the consumption of the task in Joules, which can be given
+to starpu_perfmodel_update_history().
 
 \section StaticScheduling Static Scheduling