configuration.texi 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603
  1. @c -*-texinfo-*-
  2. @c This file is part of the StarPU Handbook.
  3. @c Copyright (C) 2009--2011 Universit@'e de Bordeaux 1
  4. @c Copyright (C) 2010, 2011, 2012, 2013 Centre National de la Recherche Scientifique
  5. @c Copyright (C) 2011, 2012 Institut National de Recherche en Informatique et Automatique
  6. @c See the file starpu.texi for copying conditions.
  7. @menu
  8. * Compilation configuration::
  9. * Execution configuration through environment variables::
  10. @end menu
  11. @node Compilation configuration
  12. @section Compilation configuration
  13. The following arguments can be given to the @code{configure} script.
  14. @menu
  15. * Common configuration::
  16. * Configuring workers::
  17. * Extension configuration::
  18. * Advanced configuration::
  19. @end menu
  20. @node Common configuration
  21. @subsection Common configuration
  22. @defvr {Configure option} --enable-debug
  23. Enable debugging messages.
  24. @end defvr
  25. @defvr {Configure option} --enable-debug
  26. Enable debugging messages.
  27. @end defvr
  28. @defvr {Configure option} --enable-fast
  29. Disable assertion checks, which saves computation time.
  30. @end defvr
  31. @defvr {Configure option} --enable-verbose
  32. Increase the verbosity of the debugging messages. This can be disabled
  33. at runtime by setting the environment variable @code{STARPU_SILENT} to
  34. any value.
  35. @smallexample
  36. $ STARPU_SILENT=1 ./vector_scal
  37. @end smallexample
  38. @end defvr
  39. @defvr {Configure option} --enable-coverage
  40. Enable flags for the @code{gcov} coverage tool.
  41. @end defvr
  42. @defvr {Configure option} --enable-quick-check
  43. Specify tests and examples should be run on a smaller data set, i.e
  44. allowing a faster execution time
  45. @end defvr
  46. @defvr {Configure option} --with-hwloc
  47. Specify hwloc should be used by StarPU. hwloc should be found by the
  48. means of the tools @code{pkg-config}.
  49. @end defvr
  50. @defvr {Configure option} --with-hwloc=@var{prefix}
  51. Specify hwloc should be used by StarPU. hwloc should be found in the
  52. directory specified by @var{prefix}.
  53. @end defvr
  54. @defvr {Configure option} --without-hwloc
  55. Specify hwloc should not be used by StarPU.
  56. @end defvr
  57. @defvr {Configure option} --disable-build-doc
  58. Disable the creation of the documentation. This should be done on a
  59. machine which does not have the tools @code{makeinfo} and @code{tex}.
  60. @end defvr
  61. Additionally, the @command{configure} script recognize many variables, which
  62. can be listed by typing @code{./configure --help}. For example,
  63. @code{./configure NVCCFLAGS="-arch sm_13"} adds a flag for the compilation of
  64. CUDA kernels.
  65. @node Configuring workers
  66. @subsection Configuring workers
  67. @defvr {Configure option} --enable-maxcpus=@var{count}
  68. Use at most @var{count} CPU cores. This information is then
  69. available as the @code{STARPU_MAXCPUS} macro.
  70. @end defvr
  71. @defvr {Configure option} --disable-cpu
  72. Disable the use of CPUs of the machine. Only GPUs etc. will be used.
  73. @end defvr
  74. @defvr {Configure option} --enable-maxcudadev=@var{count}
  75. Use at most @var{count} CUDA devices. This information is then
  76. available as the @code{STARPU_MAXCUDADEVS} macro.
  77. @end defvr
  78. @defvr {Configure option} --disable-cuda
  79. Disable the use of CUDA, even if a valid CUDA installation was detected.
  80. @end defvr
  81. @defvr {Configure option} --with-cuda-dir=@var{prefix}
  82. Search for CUDA under @var{prefix}, which should notably contain
  83. @file{include/cuda.h}.
  84. @end defvr
  85. @defvr {Configure option} --with-cuda-include-dir=@var{dir}
  86. Search for CUDA headers under @var{dir}, which should
  87. notably contain @code{cuda.h}. This defaults to @code{/include} appended to the
  88. value given to @code{--with-cuda-dir}.
  89. @end defvr
  90. @defvr {Configure option} --with-cuda-lib-dir=@var{dir}
  91. Search for CUDA libraries under @var{dir}, which should notably contain
  92. the CUDA shared libraries---e.g., @file{libcuda.so}. This defaults to
  93. @code{/lib} appended to the value given to @code{--with-cuda-dir}.
  94. @end defvr
  95. @defvr {Configure option} --disable-cuda-memcpy-peer
  96. Explicitly disable peer transfers when using CUDA 4.0.
  97. @end defvr
  98. @defvr {Configure option} --enable-maxopencldev=@var{count}
  99. Use at most @var{count} OpenCL devices. This information is then
  100. available as the @code{STARPU_MAXOPENCLDEVS} macro.
  101. @end defvr
  102. @defvr {Configure option} --disable-opencl
  103. Disable the use of OpenCL, even if the SDK is detected.
  104. @end defvr
  105. @defvr {Configure option} --with-opencl-dir=@var{prefix}
  106. Search for an OpenCL implementation under @var{prefix}, which should
  107. notably contain @file{include/CL/cl.h} (or @file{include/OpenCL/cl.h} on
  108. Mac OS).
  109. @end defvr
  110. @defvr {Configure option} --with-opencl-include-dir=@var{dir}
  111. Search for OpenCL headers under @var{dir}, which should notably contain
  112. @file{CL/cl.h} (or @file{OpenCL/cl.h} on Mac OS). This defaults to
  113. @code{/include} appended to the value given to @code{--with-opencl-dir}.
  114. @end defvr
  115. @defvr {Configure option} --with-opencl-lib-dir=@var{dir}
  116. Search for an OpenCL library under @var{dir}, which should notably
  117. contain the OpenCL shared libraries---e.g. @file{libOpenCL.so}. This defaults to
  118. @code{/lib} appended to the value given to @code{--with-opencl-dir}.
  119. @end defvr
  120. @defvr {Configure option} --enable-opencl-simulator
  121. Enable considering the provided OpenCL implementation as a simulator, i.e. use
  122. the kernel duration returned by OpenCL profiling information as wallclock time
  123. instead of the actual measured real time. This requires simgrid support.
  124. @end defvr
  125. @defvr {Configure option} --enable-maximplementations=@var{count}
  126. Allow for at most @var{count} codelet implementations for the same
  127. target device. This information is then available as the
  128. @code{STARPU_MAXIMPLEMENTATIONS} macro.
  129. @end defvr
  130. @defvr {Configure option} --enable-max-sched-ctxs=@var{count}
  131. Allow for at most @var{count} scheduling contexts
  132. This information is then available as the
  133. @code{STARPU_NMAX_SCHED_CTXS} macro.
  134. @end defvr
  135. @defvr {Configure option} --disable-asynchronous-copy
  136. Disable asynchronous copies between CPU and GPU devices.
  137. The AMD implementation of OpenCL is known to
  138. fail when copying data asynchronously. When using this implementation,
  139. it is therefore necessary to disable asynchronous data transfers.
  140. @end defvr
  141. @defvr {Configure option} --disable-asynchronous-cuda-copy
  142. Disable asynchronous copies between CPU and CUDA devices.
  143. @end defvr
  144. @defvr {Configure option} --disable-asynchronous-opencl-copy
  145. Disable asynchronous copies between CPU and OpenCL devices.
  146. The AMD implementation of OpenCL is known to
  147. fail when copying data asynchronously. When using this implementation,
  148. it is therefore necessary to disable asynchronous data transfers.
  149. @end defvr
  150. @node Extension configuration
  151. @subsection Extension configuration
  152. @defvr {Configure option} --disable-socl
  153. Disable the SOCL extension (@pxref{SOCL OpenCL Extensions}). By
  154. default, it is enabled when an OpenCL implementation is found.
  155. @end defvr
  156. @defvr {Configure option} --disable-starpu-top
  157. Disable the StarPU-Top interface (@pxref{StarPU-Top}). By default, it
  158. is enabled when the required dependencies are found.
  159. @end defvr
  160. @defvr {Configure option} --disable-gcc-extensions
  161. Disable the GCC plug-in (@pxref{C Extensions}). By default, it is
  162. enabled when the GCC compiler provides a plug-in support.
  163. @end defvr
  164. @defvr {Configure option} --with-mpicc=@var{path}
  165. Use the @command{mpicc} compiler at @var{path}, for starpumpi
  166. (@pxref{StarPU MPI support}).
  167. @end defvr
  168. @node Advanced configuration
  169. @subsection Advanced configuration
  170. @defvr {Configure option} --enable-perf-debug
  171. Enable performance debugging through gprof.
  172. @end defvr
  173. @defvr {Configure option} --enable-model-debug
  174. Enable performance model debugging.
  175. @end defvr
  176. @defvr {Configure option} --enable-stats
  177. @c see ../../src/datawizard/datastats.c
  178. Enable gathering of various data statistics (@pxref{Data statistics}).
  179. @end defvr
  180. @defvr {Configure option} --enable-maxbuffers
  181. Define the maximum number of buffers that tasks will be able to take
  182. as parameters, then available as the @code{STARPU_NMAXBUFS} macro.
  183. @end defvr
  184. @defvr {Configure option} --enable-allocation-cache
  185. Enable the use of a data allocation cache to avoid the cost of it with
  186. CUDA. Still experimental.
  187. @end defvr
  188. @defvr {Configure option} --enable-opengl-render
  189. Enable the use of OpenGL for the rendering of some examples.
  190. @c TODO: rather default to enabled when detected
  191. @end defvr
  192. @defvr {Configure option} --enable-blas-lib
  193. Specify the blas library to be used by some of the examples. The
  194. library has to be 'atlas' or 'goto'.
  195. @end defvr
  196. @defvr {Configure option} --disable-starpufft
  197. Disable the build of libstarpufft, even if fftw or cuFFT is available.
  198. @end defvr
  199. @defvr {Configure option} --with-magma=@var{prefix}
  200. Search for MAGMA under @var{prefix}. @var{prefix} should notably
  201. contain @file{include/magmablas.h}.
  202. @end defvr
  203. @defvr {Configure option} --with-fxt=@var{prefix}
  204. Search for FxT under @var{prefix}.
  205. @url{http://savannah.nongnu.org/projects/fkt, FxT} is used to generate
  206. traces of scheduling events, which can then be rendered them using ViTE
  207. (@pxref{Off-line, off-line performance feedback}). @var{prefix} should
  208. notably contain @code{include/fxt/fxt.h}.
  209. @end defvr
  210. @defvr {Configure option} --with-perf-model-dir=@var{dir}
  211. Store performance models under @var{dir}, instead of the current user's
  212. home.
  213. @end defvr
  214. @defvr {Configure option} --with-goto-dir=@var{prefix}
  215. Search for GotoBLAS under @var{prefix}, which should notably contain @file{libgoto.so} or @file{libgoto2.so}.
  216. @end defvr
  217. @defvr {Configure option} --with-atlas-dir=@var{prefix}
  218. Search for ATLAS under @var{prefix}, which should notably contain
  219. @file{include/cblas.h}.
  220. @end defvr
  221. @defvr {Configure option} --with-mkl-cflags=@var{cflags}
  222. Use @var{cflags} to compile code that uses the MKL library.
  223. @end defvr
  224. @defvr {Configure option} --with-mkl-ldflags=@var{ldflags}
  225. Use @var{ldflags} when linking code that uses the MKL library. Note
  226. that the
  227. @url{http://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/,
  228. MKL website} provides a script to determine the linking flags.
  229. @end defvr
  230. @defvr {Configure option} --disable-build-examples
  231. Disable the build of examples.
  232. @end defvr
  233. @defvr {Configure option} --enable-sched-ctx-hypervisor
  234. Enables the Scheduling Context Hypervisor plugin(@pxref{Scheduling Context Hypervisor}).
  235. By default, it is disabled.
  236. @end defvr
  237. @defvr {Configure option} --enable-memory-stats
  238. Enable memory statistics (@pxref{Memory feedback}).
  239. @end defvr
  240. @defvr {Configure option} --enable-simgrid
  241. Enable simulation of execution in simgrid, to allow easy experimentation with
  242. various numbers of cores and GPUs, or amount of memory, etc. Experimental.
  243. The path to simgrid can be specified through the @code{SIMGRID_CFLAGS} and
  244. @code{SIMGRID_LIBS} environment variables, for instance:
  245. @example
  246. export SIMGRID_CFLAGS="-I/usr/local/simgrid/include"
  247. export SIMGRID_LIBS="-L/usr/local/simgrid/lib -lsimgrid"
  248. @end example
  249. @end defvr
  250. @node Execution configuration through environment variables
  251. @section Execution configuration through environment variables
  252. @menu
  253. * Workers:: Configuring workers
  254. * Scheduling:: Configuring the Scheduling engine
  255. * Extensions::
  256. * Misc:: Miscellaneous and debug
  257. @end menu
  258. @node Workers
  259. @subsection Configuring workers
  260. @defvr {Environment variable} STARPU_NCPU
  261. Specify the number of CPU workers (thus not including workers dedicated to control accelerators). Note that by default, StarPU will not allocate
  262. more CPU workers than there are physical CPUs, and that some CPUs are used to control
  263. the accelerators.
  264. @end defvr
  265. @defvr {Environment variable} STARPU_NCPUS
  266. This variable is deprecated. You should use @code{STARPU_NCPU}.
  267. @end defvr
  268. @defvr {Environment variable} STARPU_NCUDA
  269. Specify the number of CUDA devices that StarPU can use. If
  270. @code{STARPU_NCUDA} is lower than the number of physical devices, it is
  271. possible to select which CUDA devices should be used by the means of the
  272. @code{STARPU_WORKERS_CUDAID} environment variable. By default, StarPU will
  273. create as many CUDA workers as there are CUDA devices.
  274. @end defvr
  275. @defvr {Environment variable} STARPU_NOPENCL
  276. OpenCL equivalent of the @code{STARPU_NCUDA} environment variable.
  277. @end defvr
  278. @defvr {Environment variable} STARPU_OPENCL_ON_CPUS
  279. By default, the OpenCL driver only enables GPU and accelerator
  280. devices. By setting the environment variable
  281. @code{STARPU_OPENCL_ON_CPUS} to 1, the OpenCL driver will also enable
  282. CPU devices.
  283. @end defvr
  284. @defvr {Environment variable} STARPU_OPENCL_ONLY_ON_CPUS
  285. By default, the OpenCL driver enables GPU and accelerator
  286. devices. By setting the environment variable
  287. @code{STARPU_OPENCL_ONLY_ON_CPUS} to 1, the OpenCL driver will ONLY enable
  288. CPU devices.
  289. @end defvr
  290. @defvr {Environment variable} STARPU_WORKERS_NOBIND
  291. Setting it to non-zero will prevent StarPU from binding its threads to
  292. CPUs. This is for instance useful when running the testsuite in parallel.
  293. @end defvr
  294. @defvr {Environment variable} STARPU_WORKERS_CPUID
  295. Passing an array of integers (starting from 0) in @code{STARPU_WORKERS_CPUID}
  296. specifies on which logical CPU the different workers should be
  297. bound. For instance, if @code{STARPU_WORKERS_CPUID = "0 1 4 5"}, the first
  298. worker will be bound to logical CPU #0, the second CPU worker will be bound to
  299. logical CPU #1 and so on. Note that the logical ordering of the CPUs is either
  300. determined by the OS, or provided by the @code{hwloc} library in case it is
  301. available.
  302. Note that the first workers correspond to the CUDA workers, then come the
  303. OpenCL workers, and finally the CPU workers. For example if
  304. we have @code{STARPU_NCUDA=1}, @code{STARPU_NOPENCL=1}, @code{STARPU_NCPU=2}
  305. and @code{STARPU_WORKERS_CPUID = "0 2 1 3"}, the CUDA device will be controlled
  306. by logical CPU #0, the OpenCL device will be controlled by logical CPU #2, and
  307. the logical CPUs #1 and #3 will be used by the CPU workers.
  308. If the number of workers is larger than the array given in
  309. @code{STARPU_WORKERS_CPUID}, the workers are bound to the logical CPUs in a
  310. round-robin fashion: if @code{STARPU_WORKERS_CPUID = "0 1"}, the first and the
  311. third (resp. second and fourth) workers will be put on CPU #0 (resp. CPU #1).
  312. This variable is ignored if the @code{use_explicit_workers_bindid} flag of the
  313. @code{starpu_conf} structure passed to @code{starpu_init} is set.
  314. @end defvr
  315. @defvr {Environment variable} STARPU_WORKERS_CUDAID
  316. Similarly to the @code{STARPU_WORKERS_CPUID} environment variable, it is
  317. possible to select which CUDA devices should be used by StarPU. On a machine
  318. equipped with 4 GPUs, setting @code{STARPU_WORKERS_CUDAID = "1 3"} and
  319. @code{STARPU_NCUDA=2} specifies that 2 CUDA workers should be created, and that
  320. they should use CUDA devices #1 and #3 (the logical ordering of the devices is
  321. the one reported by CUDA).
  322. This variable is ignored if the @code{use_explicit_workers_cuda_gpuid} flag of
  323. the @code{starpu_conf} structure passed to @code{starpu_init} is set.
  324. @end defvr
  325. @defvr {Environment variable} STARPU_WORKERS_OPENCLID
  326. OpenCL equivalent of the @code{STARPU_WORKERS_CUDAID} environment variable.
  327. This variable is ignored if the @code{use_explicit_workers_opencl_gpuid} flag of
  328. the @code{starpu_conf} structure passed to @code{starpu_init} is set.
  329. @end defvr
  330. @defvr {Environment variable} @code{STARPU_SINGLE_COMBINED_WORKER}
  331. If set, StarPU will create several workers which won't be able to work
  332. concurrently. It will create combined workers which size goes from 1 to the
  333. total number of CPU workers in the system.
  334. @end defvr
  335. @defvr {Environment variable} STARPU_SYNTHESIZE_ARITY_COMBINED_WORKER
  336. Let the user decide how many elements are allowed between combined workers
  337. created from hwloc information. For instance, in the case of sockets with 6
  338. cores without shared L2 caches, if @code{SYNTHESIZE_ARITY_COMBINED_WORKER} is
  339. set to 6, no combined worker will be synthesized beyond one for the socket
  340. and one per core. If it is set to 3, 3 intermediate combined workers will be
  341. synthesized, to divide the socket cores into 3 chunks of 2 cores. If it set to
  342. 2, 2 intermediate combined workers will be synthesized, to divide the the socket
  343. cores into 2 chunks of 3 cores, and then 3 additional combined workers will be
  344. synthesized, to divide the former synthesized workers into a bunch of 2 cores,
  345. and the remaining core (for which no combined worker is synthesized since there
  346. is already a normal worker for it).
  347. The default, 2, thus makes StarPU tend to building a binary trees of combined
  348. workers.
  349. @end defvr
  350. @defvr {Environment variable} STARPU_DISABLE_ASYNCHRONOUS_COPY
  351. Disable asynchronous copies between CPU and GPU devices.
  352. The AMD implementation of OpenCL is known to
  353. fail when copying data asynchronously. When using this implementation,
  354. it is therefore necessary to disable asynchronous data transfers.
  355. @end defvr
  356. @defvr {Environment variable} STARPU_DISABLE_ASYNCHRONOUS_CUDA_COPY
  357. Disable asynchronous copies between CPU and CUDA devices.
  358. @end defvr
  359. @defvr {Environment variable} STARPU_DISABLE_ASYNCHRONOUS_OPENCL_COPY
  360. Disable asynchronous copies between CPU and OpenCL devices.
  361. The AMD implementation of OpenCL is known to
  362. fail when copying data asynchronously. When using this implementation,
  363. it is therefore necessary to disable asynchronous data transfers.
  364. @end defvr
  365. @defvr {Environment variable} STARPU_DISABLE_CUDA_GPU_GPU_DIRECT
  366. Disable direct CUDA transfers from GPU to GPU, and let CUDA copy through RAM
  367. instead. This permits to test the performance effect of GPU-Direct.
  368. @end defvr
  369. @node Scheduling
  370. @subsection Configuring the Scheduling engine
  371. @defvr {Environment variable} STARPU_SCHED
  372. Choose between the different scheduling policies proposed by StarPU: work
  373. random, stealing, greedy, with performance models, etc.
  374. Use @code{STARPU_SCHED=help} to get the list of available schedulers.
  375. @end defvr
  376. @defvr {Environment variable} STARPU_CALIBRATE
  377. If this variable is set to 1, the performance models are calibrated during
  378. the execution. If it is set to 2, the previous values are dropped to restart
  379. calibration from scratch. Setting this variable to 0 disable calibration, this
  380. is the default behaviour.
  381. Note: this currently only applies to @code{dm} and @code{dmda} scheduling policies.
  382. @end defvr
  383. @defvr {Environment variable} STARPU_BUS_CALIBRATE
  384. If this variable is set to 1, the bus is recalibrated during intialization.
  385. @end defvr
  386. @defvr {Environment variable} STARPU_PREFETCH
  387. @anchor{STARPU_PREFETCH}
  388. This variable indicates whether data prefetching should be enabled (0 means
  389. that it is disabled). If prefetching is enabled, when a task is scheduled to be
  390. executed e.g. on a GPU, StarPU will request an asynchronous transfer in
  391. advance, so that data is already present on the GPU when the task starts. As a
  392. result, computation and data transfers are overlapped.
  393. Note that prefetching is enabled by default in StarPU.
  394. @end defvr
  395. @defvr {Environment variable} STARPU_SCHED_ALPHA
  396. To estimate the cost of a task StarPU takes into account the estimated
  397. computation time (obtained thanks to performance models). The alpha factor is
  398. the coefficient to be applied to it before adding it to the communication part.
  399. @end defvr
  400. @defvr {Environment variable} STARPU_SCHED_BETA
  401. To estimate the cost of a task StarPU takes into account the estimated
  402. data transfer time (obtained thanks to performance models). The beta factor is
  403. the coefficient to be applied to it before adding it to the computation part.
  404. @end defvr
  405. @defvr {Environment variable} STARPU_SCHED_GAMMA
  406. Define the execution time penalty of a joule (@pxref{Power-based scheduling}).
  407. @end defvr
  408. @defvr {Environment variable} STARPU_IDLE_POWER
  409. Define the idle power of the machine (@pxref{Power-based scheduling}).
  410. @end defvr
  411. @defvr {Environment variable} STARPU_PROFILING
  412. Enable on-line performance monitoring (@pxref{Enabling on-line performance monitoring}).
  413. @end defvr
  414. @node Extensions
  415. @subsection Extensions
  416. @defvr {Environment variable} SOCL_OCL_LIB_OPENCL
  417. THE SOCL test suite is only run when the environment variable
  418. @code{SOCL_OCL_LIB_OPENCL} is defined. It should contain the location
  419. of the libOpenCL.so file of the OCL ICD implementation.
  420. @end defvr
  421. @defvr {Environment variable} STARPU_COMM_STATS
  422. @anchor{STARPU_COMM_STATS}
  423. Communication statistics for starpumpi (@pxref{StarPU MPI support})
  424. will be enabled when the environment variable @code{STARPU_COMM_STATS}
  425. is defined to an value other than 0.
  426. @end defvr
  427. @defvr {Environment variable} STARPU_MPI_CACHE
  428. @anchor{STARPU_MPI_CACHE}
  429. Communication cache for starpumpi (@pxref{StarPU MPI support}) will be
  430. disabled when the environment variable @code{STARPU_MPI_CACHE} is set
  431. to 0. It is enabled by default or for any other values of the variable
  432. @code{STARPU_MPI_CACHE}.
  433. @end defvr
  434. @node Misc
  435. @subsection Miscellaneous and debug
  436. @defvr {Environment variable} STARPU_OPENCL_PROGRAM_DIR
  437. @anchor{STARPU_OPENCL_PROGRAM_DIR}
  438. This specifies the directory where the OpenCL codelet source files are
  439. located. The function @ref{starpu_opencl_load_program_source} looks
  440. for the codelet in the current directory, in the directory specified
  441. by the environment variable @code{STARPU_OPENCL_PROGRAM_DIR}, in the
  442. directory @code{share/starpu/opencl} of the installation directory of
  443. StarPU, and finally in the source directory of StarPU.
  444. @end defvr
  445. @defvr {Environment variable} STARPU_SILENT
  446. This variable allows to disable verbose mode at runtime when StarPU
  447. has been configured with the option @code{--enable-verbose}. It also
  448. disables the display of StarPU information and warning messages.
  449. @end defvr
  450. @defvr {Environment variable} STARPU_LOGFILENAME
  451. This variable specifies in which file the debugging output should be saved to.
  452. @end defvr
  453. @defvr {Environment variable} STARPU_FXT_PREFIX
  454. This variable specifies in which directory to save the trace generated if FxT is enabled. It needs to have a trailing '/' character.
  455. @end defvr
  456. @defvr {Environment variable} STARPU_LIMIT_GPU_MEM
  457. This variable specifies the maximum number of megabytes that should be
  458. available to the application on each GPUs. In case this value is smaller than
  459. the size of the memory of a GPU, StarPU pre-allocates a buffer to waste memory
  460. on the device. This variable is intended to be used for experimental purposes
  461. as it emulates devices that have a limited amount of memory.
  462. @end defvr
  463. @defvr {Environment variable} STARPU_GENERATE_TRACE
  464. When set to @code{1}, this variable indicates that StarPU should automatically
  465. generate a Paje trace when @code{starpu_shutdown()} is called.
  466. @end defvr
  467. @defvr {Environment variable} STARPU_MEMORY_STATS
  468. When set to 0, disable the display of memory statistics on data which
  469. have not been unregistered at the end of the execution (@pxref{Memory
  470. feedback}).
  471. @end defvr
  472. @defvr {Environment variable} STARPU_BUS_STATS
  473. When defined, statistics about data transfers will be displayed when calling
  474. @code{starpu_shutdown()} (@pxref{Profiling}).
  475. @end defvr
  476. @defvr {Environment variable} STARPU_WORKER_STATS
  477. When defined, statistics about the workers will be displayed when calling
  478. @code{starpu_shutdown()} (@pxref{Profiling}). When combined with the
  479. environment variable @code{STARPU_PROFILING}, it displays the power
  480. consumption (@pxref{Power-based scheduling}).
  481. @end defvr
  482. @defvr {Environment variable} STARPU_STATS
  483. When set to 0, data statistics will not be displayed at the
  484. end of the execution of an application (@pxref{Data statistics}).
  485. @end defvr