starpu_paje.c 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477
  1. /* StarPU --- Runtime system for heterogeneous multicore architectures.
  2. *
  3. * Copyright (C) 2010-2017 Université de Bordeaux
  4. *
  5. * StarPU is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU Lesser General Public License as published by
  7. * the Free Software Foundation; either version 2.1 of the License, or (at
  8. * your option) any later version.
  9. *
  10. * StarPU is distributed in the hope that it will be useful, but
  11. * WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  13. *
  14. * See the GNU Lesser General Public License in COPYING.LGPL for more details.
  15. */
  16. #include "starpu_fxt.h"
  17. #include <common/config.h>
  18. #ifdef STARPU_HAVE_POTI
  19. #include <poti.h>
  20. #endif
  21. #ifdef STARPU_USE_FXT
  22. #ifdef STARPU_HAVE_POTI
  23. #ifdef HAVE_POTI_INIT_CUSTOM
  24. int _starpu_poti_extendedSetState = -1;
  25. int _starpu_poti_semiExtendedSetState = -1;
  26. #endif
  27. #endif
  28. void _starpu_fxt_write_paje_header(FILE *file STARPU_ATTRIBUTE_UNUSED)
  29. {
  30. unsigned i;
  31. #ifdef STARPU_HAVE_POTI
  32. #ifdef HAVE_POTI_INIT_CUSTOM
  33. poti_header(); /* see poti_init_custom to customize the header */
  34. _starpu_poti_extendedSetState = poti_header_DeclareEvent (PAJE_SetState,
  35. 11,
  36. "Size string",
  37. "Params string",
  38. "Footprint string",
  39. "Tag string",
  40. "JobId string",
  41. "SubmitOrder string",
  42. "GFlop string",
  43. "X string",
  44. "Y string",
  45. /* "Z string", */
  46. "Iteration string",
  47. "Subiteration string");
  48. _starpu_poti_semiExtendedSetState = poti_header_DeclareEvent (PAJE_SetState,
  49. 6,
  50. "Size string",
  51. "Params string",
  52. "Footprint string",
  53. "Tag string",
  54. "JobId string",
  55. "SubmitOrder string"
  56. );
  57. #else
  58. poti_header(1,1);
  59. #endif
  60. #else
  61. fprintf(file, "%%EventDef PajeDefineContainerType 1\n");
  62. fprintf(file, "%% Alias string\n");
  63. fprintf(file, "%% Type string\n");
  64. fprintf(file, "%% Name string\n");
  65. fprintf(file, "%%EndEventDef\n");
  66. fprintf(file, "%%EventDef PajeDefineEventType 2\n");
  67. fprintf(file, "%% Alias string\n");
  68. fprintf(file, "%% Type string\n");
  69. fprintf(file, "%% Name string\n");
  70. fprintf(file, "%%EndEventDef\n");
  71. fprintf(file, "%%EventDef PajeDefineStateType 3\n");
  72. fprintf(file, "%% Alias string\n");
  73. fprintf(file, "%% Type string\n");
  74. fprintf(file, "%% Name string\n");
  75. fprintf(file, "%%EndEventDef\n");
  76. fprintf(file, "%%EventDef PajeDefineVariableType 4\n");
  77. fprintf(file, "%% Alias string\n");
  78. fprintf(file, "%% Type string\n");
  79. fprintf(file, "%% Name string\n");
  80. fprintf(file, "%%EndEventDef\n");
  81. fprintf(file, "%%EventDef PajeDefineLinkType 5\n");
  82. fprintf(file, "%% Alias string\n");
  83. fprintf(file, "%% Type string\n");
  84. fprintf(file, "%% StartContainerType string\n");
  85. fprintf(file, "%% EndContainerType string\n");
  86. fprintf(file, "%% Name string\n");
  87. fprintf(file, "%%EndEventDef\n");
  88. fprintf(file, "%%EventDef PajeDefineEntityValue 6\n");
  89. fprintf(file, "%% Alias string\n");
  90. fprintf(file, "%% Type string\n");
  91. fprintf(file, "%% Name string\n");
  92. fprintf(file, "%% Color color\n");
  93. fprintf(file, "%%EndEventDef\n");
  94. fprintf(file, "%%EventDef PajeCreateContainer 7\n");
  95. fprintf(file, "%% Time date\n");
  96. fprintf(file, "%% Alias string\n");
  97. fprintf(file, "%% Type string\n");
  98. fprintf(file, "%% Container string\n");
  99. fprintf(file, "%% Name string\n");
  100. fprintf(file, "%%EndEventDef\n");
  101. fprintf(file, "%%EventDef PajeDestroyContainer 8\n");
  102. fprintf(file, "%% Time date\n");
  103. fprintf(file, "%% Name string\n");
  104. fprintf(file, "%% Type string\n");
  105. fprintf(file, "%%EndEventDef\n");
  106. fprintf(file, "%%EventDef PajeNewEvent 9\n");
  107. fprintf(file, "%% Time date\n");
  108. fprintf(file, "%% Type string\n");
  109. fprintf(file, "%% Container string\n");
  110. fprintf(file, "%% Value string\n");
  111. fprintf(file, "%%EndEventDef\n");
  112. fprintf(file, "%%EventDef PajeSetState 10\n");
  113. fprintf(file, "%% Time date\n");
  114. fprintf(file, "%% Container string\n");
  115. fprintf(file, "%% Type string\n");
  116. fprintf(file, "%% Value string\n");
  117. fprintf(file, "%%EndEventDef\n");
  118. fprintf(file, "%%EventDef PajePushState 11\n");
  119. fprintf(file, "%% Time date\n");
  120. fprintf(file, "%% Container string\n");
  121. fprintf(file, "%% Type string\n");
  122. fprintf(file, "%% Value string\n");
  123. fprintf(file, "%%EndEventDef\n");
  124. fprintf(file, "%%EventDef PajePopState 12\n");
  125. fprintf(file, "%% Time date\n");
  126. fprintf(file, "%% Container string\n");
  127. fprintf(file, "%% Type string\n");
  128. fprintf(file, "%%EndEventDef\n");
  129. fprintf(file, "%%EventDef PajeSetVariable 13\n");
  130. fprintf(file, "%% Time date\n");
  131. fprintf(file, "%% Container string\n");
  132. fprintf(file, "%% Type string\n");
  133. fprintf(file, "%% Value double\n");
  134. fprintf(file, "%%EndEventDef\n");
  135. fprintf(file, "%%EventDef PajeAddVariable 14\n");
  136. fprintf(file, "%% Time date\n");
  137. fprintf(file, "%% Type string\n");
  138. fprintf(file, "%% Container string\n");
  139. fprintf(file, "%% Value double\n");
  140. fprintf(file, "%%EndEventDef\n");
  141. fprintf(file, "%%EventDef PajeSubVariable 15\n");
  142. fprintf(file, "%% Time date\n");
  143. fprintf(file, "%% Type string\n");
  144. fprintf(file, "%% Container string\n");
  145. fprintf(file, "%% Value double\n");
  146. fprintf(file, "%%EndEventDef\n");
  147. fprintf(file, "%%EventDef PajeStartLink 18\n");
  148. fprintf(file, "%% Time date\n");
  149. fprintf(file, "%% Type string\n");
  150. fprintf(file, "%% Container string\n");
  151. fprintf(file, "%% Value string\n");
  152. fprintf(file, "%% StartContainer string\n");
  153. fprintf(file, "%% Key string\n");
  154. fprintf(file, "%%EndEventDef\n");
  155. fprintf(file, "%%EventDef PajeEndLink 19\n");
  156. fprintf(file, "%% Time date\n");
  157. fprintf(file, "%% Type string\n");
  158. fprintf(file, "%% Container string\n");
  159. fprintf(file, "%% Value string\n");
  160. fprintf(file, "%% EndContainer string\n");
  161. fprintf(file, "%% Key string\n");
  162. fprintf(file, "%%EndEventDef\n");
  163. fprintf(file, "%%EventDef PajeSetState 20\n");
  164. fprintf(file, "%% Time date\n");
  165. fprintf(file, "%% Container string\n");
  166. fprintf(file, "%% Type string\n");
  167. fprintf(file, "%% Value string\n");
  168. fprintf(file, "%% Size string\n");
  169. fprintf(file, "%% Params string\n");
  170. fprintf(file, "%% Footprint string\n");
  171. fprintf(file, "%% Tag string\n");
  172. fprintf(file, "%% JobId string\n");
  173. fprintf(file, "%% SubmitOrder string\n");
  174. fprintf(file, "%% GFlop string\n");
  175. fprintf(file, "%% X string\n");
  176. fprintf(file, "%% Y string\n");
  177. /* fprintf(file, "%% Z string\n"); */
  178. fprintf(file, "%% Iteration string\n");
  179. fprintf(file, "%% Subiteration string\n");
  180. fprintf(file, "%%EndEventDef\n");
  181. fprintf(file, "%%EventDef PajeSetState 21\n");
  182. fprintf(file, "%% Time date\n");
  183. fprintf(file, "%% Container string\n");
  184. fprintf(file, "%% Type string\n");
  185. fprintf(file, "%% Value string\n");
  186. fprintf(file, "%% Size string\n");
  187. fprintf(file, "%% Params string\n");
  188. fprintf(file, "%% Footprint string\n");
  189. fprintf(file, "%% Tag string\n");
  190. fprintf(file, "%% JobId string\n");
  191. fprintf(file, "%% SubmitOrder string\n");
  192. fprintf(file, "%%EndEventDef\n");
  193. #endif
  194. #ifdef STARPU_HAVE_POTI
  195. poti_DefineContainerType("MPIP", "0", "MPI Program");
  196. poti_DefineContainerType("P", "MPIP", "Program");
  197. poti_DefineContainerType("Mn", "P", "Memory Node");
  198. poti_DefineContainerType("T", "Mn", "Thread");
  199. poti_DefineContainerType("UT", "P", "User Thread");
  200. poti_DefineContainerType("Mm", "Mn", "Memory Manager");
  201. poti_DefineContainerType("W", "T", "Worker");
  202. poti_DefineContainerType("MPICt", "P", "MPI Communication Thread");
  203. poti_DefineContainerType("Sc", "P", "Scheduler");
  204. poti_DefineEventType("prog_event", "P", "program event type");
  205. poti_DefineEventType("register", "P", "data registration");
  206. poti_DefineEventType("unregister", "P", "data unregistration");
  207. /* Types for the memory node */
  208. poti_DefineEventType("invalidate", "Mm", "data invalidation");
  209. poti_DefineVariableType("use", "Mm", "Used (MB)", "0 0 0");
  210. poti_DefineVariableType("bwi_mm", "Mm", "Bandwidth In (MB/s)", "0 0 0");
  211. poti_DefineVariableType("bwo_mm", "Mm", "Bandwidth Out (MB/s)", "0 0 0");
  212. poti_DefineStateType("MS", "Mm", "Memory Node State");
  213. poti_DefineEntityValue("A", "MS", "Allocating", ".4 .1 .0");
  214. poti_DefineEntityValue("Ar", "MS", "AllocatingReuse", ".1 .1 .8");
  215. poti_DefineEntityValue("F", "MS", "Freeing", ".6 .3 .0");
  216. poti_DefineEntityValue("W", "MS", "WritingBack", ".0 .0 .5");
  217. poti_DefineEntityValue("Wa", "MS", "WritingBackAsync", ".0 .0 .4");
  218. poti_DefineEntityValue("R", "MS", "Reclaiming", ".0 .1 .6");
  219. poti_DefineEntityValue("Co", "MS", "DriverCopy", ".3 .5 .1");
  220. poti_DefineEntityValue("CoA", "MS", "DriverCopyAsync", ".1 .3 .1");
  221. poti_DefineEntityValue("No", "MS", "Nothing", ".0 .0 .0");
  222. /* Types for the Worker of the Memory Node */
  223. poti_DefineEventType("user_event", "P", "user event type");
  224. poti_DefineEventType("thread_event", "T", "thread event type");
  225. poti_DefineVariableType("gf", "W", "GFlops", "0 0 0");
  226. poti_DefineStateType("S", "T", "Thread State");
  227. poti_DefineEntityValue("I", "S", "Idle", ".9 .1 0");
  228. poti_DefineEntityValue("In", "S", "Initializing", "0.0 .7 1.0");
  229. poti_DefineEntityValue("D", "S", "Deinitializing", "0.0 .1 .7");
  230. poti_DefineEntityValue("Fi", "S", "FetchingInput", "1.0 .1 1.0");
  231. poti_DefineEntityValue("Po", "S", "PushingOutput", "0.1 1.0 1.0");
  232. poti_DefineEntityValue("C", "S", "Callback", ".0 .3 .8");
  233. poti_DefineEntityValue("B", "S", "Overhead", ".5 .18 .0");
  234. poti_DefineEntityValue("E", "S", "Executing", ".0 .6 .5");
  235. poti_DefineEntityValue("Sc", "S", "Scheduling", ".7 .36 .0");
  236. poti_DefineEntityValue("Sl", "S", "Sleeping", ".9 .1 .0");
  237. poti_DefineEntityValue("P", "S", "Progressing", ".1 .3 .1");
  238. poti_DefineEntityValue("U", "S", "Unpartitioning", ".0 .0 1.0");
  239. poti_DefineEntityValue("H", "S", "Hypervisor", ".5 .18 .0");
  240. poti_DefineEntityValue("Bu", "S", "Building task", ".5 .18 .0");
  241. poti_DefineEntityValue("Su", "S", "Submitting task", ".3 .09 .0");
  242. poti_DefineEntityValue("Th", "S", "Throttling task submission", ".8 .6 .6");
  243. poti_DefineEntityValue("MD", "S", "Decoding task for MPI", ".5 .18 .2");
  244. poti_DefineEntityValue("MPr", "S", "Preparing task for MPI", ".4 .14 .2");
  245. poti_DefineEntityValue("MPo", "S", "Post-processing task for MPI", ".3 .09 .2");
  246. poti_DefineStateType("WS", "W", "Worker State");
  247. poti_DefineEntityValue("I", "WS", "Idle", ".9 .1 .0");
  248. poti_DefineEntityValue("In", "WS", "Initializing", "0.0 .7 1.0");
  249. poti_DefineEntityValue("D", "WS", "Deinitializing", "0.0 .1 .7");
  250. poti_DefineEntityValue("Fi", "WS", "FetchingInput", "1.0 .1 1.0");
  251. poti_DefineEntityValue("Po", "WS", "PushingOutput", "0.1 1.0 1.0");
  252. poti_DefineEntityValue("C", "WS", "Callback", ".0 .3 .8");
  253. poti_DefineEntityValue("B", "WS", "Overhead", ".5 .18 .0");
  254. poti_DefineEntityValue("E", "WS", "Executing", ".0 .6 .5");
  255. poti_DefineEntityValue("Sc", "WS", "Scheduling", ".7 .36 .0");
  256. poti_DefineEntityValue("Sl", "WS", "Sleeping", ".9 .1 .0");
  257. poti_DefineEntityValue("P", "WS", "Progressing", ".1 .3 .1");
  258. poti_DefineEntityValue("U", "WS", "Unpartitioning", ".0 .0 1.0");
  259. poti_DefineEntityValue("H", "WS", "Hypervisor", ".5 .18 .0");
  260. poti_DefineEntityValue("Bu", "WS", "Building task", ".5 .18 .0");
  261. poti_DefineEntityValue("Su", "WS", "Submitting task", ".3 .09 .0");
  262. poti_DefineEntityValue("Th", "WS", "Throttling task submission", ".8 .6 .6");
  263. /* Types for the MPI Communication Thread of the Memory Node */
  264. poti_DefineEventType("MPIev", "MPICt", "MPI event type");
  265. poti_DefineVariableType("bwi_mpi", "MPICt", "Bandwidth In (MB/s)", "0 0 0");
  266. poti_DefineVariableType("bwo_mpi", "MPICt", "Bandwidth Out (MB/s)", "0 0 0");
  267. poti_DefineStateType("CtS", "MPICt", "Communication Thread State");
  268. poti_DefineEntityValue("P", "CtS", "Processing", "0 0 0");
  269. poti_DefineEntityValue("Sl", "CtS", "Sleeping", ".9 .1 .0");
  270. poti_DefineEntityValue("UT", "CtS", "UserTesting", ".2 .1 .6");
  271. poti_DefineEntityValue("UW", "CtS", "UserWaiting", ".4 .1 .3");
  272. poti_DefineEntityValue("SdS", "CtS", "SendSubmitted", "1.0 .1 1.0");
  273. poti_DefineEntityValue("RvS", "CtS", "ReceiveSubmitted", "0.1 1.0 1.0");
  274. poti_DefineEntityValue("SdC", "CtS", "SendCompleted", "1.0 .5 1.0");
  275. poti_DefineEntityValue("RvC", "CtS", "ReceiveCompleted", "0.5 1.0 1.0");
  276. poti_DefineEntityValue("TD", "CtS", "Testing Detached", ".0 .0 .6");
  277. poti_DefineEntityValue("MT", "CtS", "MPI Test", ".0 .0 .8");
  278. poti_DefineEntityValue("Bu", "CtS", "Building task", ".5 .18 .0");
  279. poti_DefineEntityValue("Su", "CtS", "Submitting task", ".3 .09 .0");
  280. poti_DefineEntityValue("Th", "CtS", "Throttling task submission", ".8 .6 .6");
  281. poti_DefineEntityValue("C", "CtS", "Callback", ".0 .3 .8");
  282. /* Type for other threads */
  283. poti_DefineEventType("user_user_event", "UT", "user event type");
  284. poti_DefineEventType("user_thread_event", "UT", "thread event type");
  285. poti_DefineStateType("US", "UT", "User Thread State");
  286. poti_DefineEntityValue("Bu", "US", "Building task", ".5 .18 .0");
  287. poti_DefineEntityValue("Su", "US", "Submitting task", ".3 .09 .0");
  288. poti_DefineEntityValue("C", "US", "Callback", ".0 .3 .8");
  289. poti_DefineEntityValue("Th", "US", "Throttling task submission", ".8 .6 .6");
  290. poti_DefineEntityValue("MD", "US", "Decoding task for MPI", ".5 .18 .2");
  291. poti_DefineEntityValue("MPr", "US", "Preparing task for MPI", ".4 .14 .2");
  292. poti_DefineEntityValue("MPo", "US", "Post-processing task for MPI", ".3 .09 .2");
  293. poti_DefineEntityValue("W", "US", "Waiting task", ".9 .1 .0");
  294. poti_DefineEntityValue("WA", "US", "Waiting all tasks", ".9 .1 .0");
  295. poti_DefineEntityValue("No", "US", "Nothing", ".0 .0 .0");
  296. for (i=1; i<STARPU_NMAX_SCHED_CTXS; i++)
  297. {
  298. char inctx[10];
  299. snprintf(inctx, sizeof(inctx), "InCtx%u", i);
  300. char *ctx = inctx+2;
  301. poti_DefineStateType(ctx, "W", inctx);
  302. poti_DefineEntityValue("I", ctx, "Idle", ".9 .1 .0");
  303. poti_DefineEntityValue("In", ctx, "Initializing", "0.0 .7 1.0");
  304. poti_DefineEntityValue("D", ctx, "Deinitializing", "0.0 .1 .7");
  305. poti_DefineEntityValue("Fi", ctx, "FetchingInput", "1.0 .1 1.0");
  306. poti_DefineEntityValue("Po", ctx, "PushingOutput", "0.1 1.0 1.0");
  307. poti_DefineEntityValue("C", ctx, "Callback", ".0 .3 .8");
  308. poti_DefineEntityValue("B", ctx, "Overhead", ".5 .18 .0");
  309. poti_DefineEntityValue("E", ctx, "Executing", ".0 .6 .5");
  310. poti_DefineEntityValue("Sc", ctx, "Scheduling", ".7 .36 .0");
  311. poti_DefineEntityValue("Sl", ctx, "Sleeping", ".9 .1 .0");
  312. poti_DefineEntityValue("P", ctx, "Progressing", ".1 .3 .1");
  313. poti_DefineEntityValue("U", ctx, "Unpartitioning", ".0 .0 1.0");
  314. poti_DefineEntityValue("H", ctx, "Hypervisor", ".5 .18 .0");
  315. }
  316. /* Types for the Scheduler */
  317. poti_DefineVariableType("nsubmitted", "Sc", "Number of Submitted Uncompleted Tasks", "0 0 0");
  318. poti_DefineVariableType("nready", "Sc", "Number of Ready Tasks", "0 0 0");
  319. poti_DefineVariableType("gft", "Sc", "Total GFlops", "0 0 0");
  320. /* Link types */
  321. poti_DefineLinkType("MPIL", "MPIP", "MPICt", "MPICt", "MPI communication");
  322. poti_DefineLinkType("F", "P", "Mm", "Mm", "Intra-node data Fetch");
  323. poti_DefineLinkType("PF", "P", "Mm", "Mm", "Intra-node data PreFetch");
  324. poti_DefineLinkType("IF", "P", "Mm", "Mm", "Intra-node data IdleFetch");
  325. poti_DefineLinkType("WSL", "P", "W", "W", "Work steal");
  326. /* Creating the MPI Program */
  327. poti_CreateContainer(0, "MPIroot", "MPIP", "0", "root");
  328. #else
  329. fprintf(file, " \n\
  330. 1 MPIP 0 \"MPI Program\" \n\
  331. 1 P MPIP \"Program\" \n\
  332. 1 Mn P \"Memory Node\" \n\
  333. 1 T Mn \"Thread\" \n\
  334. 1 UT P \"User Thread\" \n\
  335. 1 Mm Mn \"Memory Manager\" \n\
  336. 1 W T \"Worker\" \n\
  337. 1 MPICt P \"MPI Communication Thread\" \n\
  338. 1 Sc P \"Scheduler State\" \n\
  339. 2 prog_event P \"program event type\" \n\
  340. 2 register P \"data registration\" \n\
  341. 2 unregister P \"data unregistration\" \n\
  342. 2 user_event P \"user event type\" \n\
  343. 2 thread_event T \"thread event type\" \n\
  344. 2 user_user_event UT \"user event type\" \n\
  345. 2 user_thread_event UT \"thread event type\" \n\
  346. 2 MPIev MPICt \"MPI event type\" \n\
  347. 3 S T \"Thread State\" \n\
  348. 3 CtS MPICt \"Communication Thread State\" \n");
  349. for (i=1; i<STARPU_NMAX_SCHED_CTXS; i++)
  350. fprintf(file, "3 Ctx%u W \"InCtx%u\" \n", i, i);
  351. fprintf(file, "\
  352. 2 invalidate Mm \"data invalidation\" \n\
  353. 3 MS Mm \"Memory Node State\" \n\
  354. 4 nsubmitted Sc \"Number of Submitted Uncompleted Tasks\" \n\
  355. 4 nready Sc \"Number of Ready Tasks\" \n\
  356. 4 gft Sc \"Total GFlops\" \n\
  357. 4 use Mm \"Used (MB)\" \n\
  358. 4 bwi_mm Mm \"Bandwidth In (MB/s)\" \n\
  359. 4 bwo_mm Mm \"Bandwidth Out (MB/s)\" \n\
  360. 4 bwi_mpi MPICt \"Bandwidth In (MB/s)\" \n\
  361. 4 bwo_mpi MPICt \"Bandwidth Out (MB/s)\" \n\
  362. 4 gf W \"GFlops\" \n\
  363. 6 I S Idle \".9 .1 .0\" \n\
  364. 6 In S Initializing \"0.0 .7 1.0\" \n\
  365. 6 D S Deinitializing \"0.0 .1 .7\" \n\
  366. 6 Fi S FetchingInput \"1.0 .1 1.0\" \n\
  367. 6 Po S PushingOutput \"0.1 1.0 1.0\" \n\
  368. 6 C S Callback \".0 .3 .8\" \n\
  369. 6 B S Overhead \".5 .18 .0\" \n\
  370. 6 E S Executing \".0 .6 .5\" \n\
  371. 6 Sc S Scheduling \".7 .36 .0\" \n\
  372. 6 Sl S Sleeping \".9 .1 .0\" \n\
  373. 6 P S Progressing \".1 .3 .1\" \n\
  374. 6 U S Unpartitioning \".0 .0 1.0\" \n\
  375. 6 H S Hypervisor \".5 .18 .0\" \n\
  376. 6 Bu S \"Building task\" \".5 .18 .0\" \n\
  377. 6 Su S \"Submitting task\" \".3 .09 .0\" \n\
  378. 6 Th S \"Throttling task submission\" \".8 .6 .6\" \n\
  379. 6 MD S \"Decoding task for MPI\" \".5 .18 .2\" \n\
  380. 6 MPr S \"Preparing task for MPI\" \".4 .14 .2\" \n\
  381. 6 MPo S \"Post-processing task for MPI\" \".3 .09 .2\" \n\
  382. 3 WS W \"Worker State\" \n\
  383. 6 I WS Idle \".9 .1 .0\" \n\
  384. 6 In WS Initializing \"0.0 .7 1.0\" \n\
  385. 6 D WS Deinitializing \"0.0 .1 .7\" \n\
  386. 6 Fi WS FetchingInput \"1.0 .1 1.0\" \n\
  387. 6 Po WS PushingOutput \"0.1 1.0 1.0\" \n\
  388. 6 C WS Callback \".0 .3 .8\" \n\
  389. 6 B WS Overhead \".5 .18 .0\" \n\
  390. 6 E WS Executing \".0 .6 .5\" \n\
  391. 6 Sc WS Scheduling \".7 .36 .0\" \n\
  392. 6 Sl WS Sleeping \".9 .1 .0\" \n\
  393. 6 P WS Progressing \".1 .3 .1\" \n\
  394. 6 U WS Unpartitioning \".0 .0 1.0\" \n\
  395. 6 H WS Hypervisor \".5 .18 .0\" \n\
  396. 6 Bu WS \"Building task\" \".5 .18 .0\" \n\
  397. 6 Su WS \"Submitting task\" \".3 .09 .0\" \n\
  398. 6 Th WS \"Throttling task submission\" \".8 .6 .6\" \n\
  399. 3 US UT \"User Thread State\" \n\
  400. 6 Bu US \"Building task\" \".5 .18 .0\" \n\
  401. 6 Su US \"Submitting task\" \".3 .09 .0\" \n\
  402. 6 C US \"Callback\" \".0 .3 .8\" \n\
  403. 6 Th US \"Throttling task submission\" \".8 .6 .6\" \n\
  404. 6 MD US \"Decoding task for MPI\" \".5 .18 .2\" \n\
  405. 6 MPr US \"Preparing task for MPI\" \".4 .14 .2\" \n\
  406. 6 MPo US \"Post-processing task for MPI\" \".3 .09 .2\" \n\
  407. 6 W US \"Waiting task\" \".9 .1 .0\" \n\
  408. 6 WA US \"Waiting all tasks\" \".9 .1 .0\" \n\
  409. 6 No US Nothing \".0 .0 .0\" \n\
  410. ");
  411. fprintf(file, "\
  412. 6 P CtS Processing \"0 0 0\" \n\
  413. 6 Sl CtS Sleeping \".9 .1 .0\" \n\
  414. 6 UT CtS UserTesting \".2 .1 .6\" \n\
  415. 6 UW CtS UserWaiting \".4 .1 .3\" \n\
  416. 6 SdS CtS SendSubmitted \"1.0 .1 1.0\" \n\
  417. 6 RvS CtS ReceiveSubmitted \"0.1 1.0 1.0\" \n\
  418. 6 SdC CtS SendCompleted \"1.0 .5 1.0\" \n\
  419. 6 RvC CtS ReceiveCompleted \"0.5 1.0 1.0\" \n\
  420. 6 TD CtS \"Testing Detached\" \".0 .0 .6\" \n\
  421. 6 MT CtS \"MPI Test\" \".0 .0 .8\" \n\
  422. 6 Bu CtS \"Building task\" \".5 .18 .0\" \n\
  423. 6 Su CtS \"Submitting task\" \".3 .09 .0\" \n\
  424. 6 Th CtS \"Throttling task submission\" \".8 .6 .6\" \n\
  425. 6 C CtS \"Callback\" \".0 .3 .8\" \n\
  426. ");
  427. for (i=1; i<STARPU_NMAX_SCHED_CTXS; i++)
  428. fprintf(file, "\
  429. 6 I Ctx%u Idle \".9 .1 .0\" \n\
  430. 6 In Ctx%u Initializing \"0.0 .7 1.0\" \n\
  431. 6 D Ctx%u Deinitializing \"0.0 .1 .7\" \n\
  432. 6 Fi Ctx%u FetchingInput \"1.0 .1 1.0\" \n\
  433. 6 Po Ctx%u PushingOutput \"0.1 1.0 1.0\" \n\
  434. 6 C Ctx%u Callback \".0 .3 .8\" \n\
  435. 6 B Ctx%u Overhead \".5 .18 .0\" \n\
  436. 6 E Ctx%u Executing \".0 .6 .5\" \n\
  437. 6 Sc Ctx%u Scheduling \".7 .36 .0\" \n\
  438. 6 Sl Ctx%u Sleeping \".9 .1 .0\" \n\
  439. 6 P Ctx%u Progressing \".1 .3 .1\" \n\
  440. 6 U Ctx%u Unpartitioning \".0 .0 1.0\" \n\
  441. 6 H Ctx%u Hypervisor \".5 .18 .0\" \n",
  442. i, i, i, i, i, i, i, i, i, i, i, i, i);
  443. fprintf(file, "\
  444. 6 A MS Allocating \".4 .1 .0\" \n\
  445. 6 Ar MS AllocatingReuse \".1 .1 .8\" \n\
  446. 6 F MS Freeing \".6 .3 .0\" \n\
  447. 6 W MS WritingBack \".0 .0 .5\" \n\
  448. 6 Wa MS WritingBackAsync \".0 .0 .4\" \n\
  449. 6 R MS Reclaiming \".0 .1 .6\" \n\
  450. 6 Co MS DriverCopy \".3 .5 .1\" \n\
  451. 6 CoA MS DriverCopyAsync \".1 .3 .1\" \n\
  452. 6 No MS Nothing \".0 .0 .0\" \n\
  453. 5 MPIL MPIP MPICt MPICt \"MPI communication\"\n\
  454. 5 F P Mm Mm \"Intra-node data Fetch\"\n\
  455. 5 PF P Mm Mm \"Intra-node data PreFetch\"\n\
  456. 5 IF P Mm Mm \"Intra-node data IdleFetch\"\n\
  457. 5 WSL P W W \"Work steal\"\n");
  458. fprintf(file, "7 0.0 MPIroot MPIP 0 root\n");
  459. #endif
  460. }
  461. #endif