41configure_options.doxy 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582
  1. /*
  2. * This file is part of the StarPU Handbook.
  3. * Copyright (C) 2009--2011 Universit@'e de Bordeaux 1
  4. * Copyright (C) 2010, 2011, 2012, 2013, 2014 Centre National de la Recherche Scientifique
  5. * Copyright (C) 2011, 2012 Institut National de Recherche en Informatique et Automatique
  6. * See the file version.doxy for copying conditions.
  7. */
  8. /*! \page CompilationConfiguration Compilation Configuration
  9. The behavior of the StarPU library and tools may be tuned thanks to
  10. the following configure options.
  11. \section CommonConfiguration Common Configuration
  12. <dl>
  13. <dt>--enable-debug</dt>
  14. <dd>
  15. \anchor enable-debug
  16. \addindex __configure__--enable-debug
  17. Enable debugging messages.
  18. </dd>
  19. <dt>--enable-spinlock-check</dt>
  20. <dd>
  21. \anchor enable-spinlock-check
  22. \addindex __configure__--enable-spinlock-check
  23. Enable checking that spinlocks are taken and released properly.
  24. </dd>
  25. <dt>--enable-fast</dt>
  26. <dd>
  27. \anchor enable-fast
  28. \addindex __configure__--enable-fast
  29. Disable assertion checks, which saves computation time.
  30. </dd>
  31. <dt>--enable-verbose</dt>
  32. <dd>
  33. \anchor enable-verbose
  34. \addindex __configure__--enable-verbose
  35. Increase the verbosity of the debugging messages. This can be disabled
  36. at runtime by setting the environment variable \ref STARPU_SILENT to
  37. any value. <c>--enable-verbose=extra</c> increase even more the verbosity.
  38. \verbatim
  39. $ STARPU_SILENT=1 ./vector_scal
  40. \endverbatim
  41. </dd>
  42. <dt>--enable-coverage</dt>
  43. <dd>
  44. \anchor enable-coverage
  45. \addindex __configure__--enable-coverage
  46. Enable flags for the coverage tool <c>gcov</c>.
  47. </dd>
  48. <dt>--enable-quick-check</dt>
  49. <dd>
  50. \anchor enable-quick-check
  51. \addindex __configure__--enable-quick-check
  52. Specify tests and examples should be run on a smaller data set, i.e
  53. allowing a faster execution time
  54. </dd>
  55. <dt>--enable-long-check</dt>
  56. <dd>
  57. \anchor enable-long-check
  58. \addindex __configure__--enable-long-check
  59. Enable some exhaustive checks which take a really long time.
  60. </dd>
  61. <dt>--with-hwloc</dt>
  62. <dd>
  63. \anchor with-hwloc
  64. \addindex __configure__--with-hwloc
  65. Specify <c>hwloc</c> should be used by StarPU. <c>hwloc</c> should be found by the
  66. means of the tool <c>pkg-config</c>.
  67. </dd>
  68. <dt>--with-hwloc=<c>prefix</c></dt>
  69. <dd>
  70. \anchor with-hwloc
  71. \addindex __configure__--with-hwloc
  72. Specify <c>hwloc</c> should be used by StarPU. <c>hwloc</c> should be found in the
  73. directory specified by <c>prefix</c>
  74. </dd>
  75. <dt>--without-hwloc</dt>
  76. <dd>
  77. \anchor without-hwloc
  78. \addindex __configure__--without-hwloc
  79. Specify <c>hwloc</c> should not be used by StarPU.
  80. </dd>
  81. <dt>--disable-build-doc</dt>
  82. <dd>
  83. \anchor disable-build-doc
  84. \addindex __configure__--disable-build-doc
  85. Disable the creation of the documentation. This should be done on a
  86. machine which does not have the tools <c>doxygen</c> and <c>latex</c>
  87. (plus the packages <c>latex-xcolor</c> and <c>texlive-latex-extra</c>).
  88. </dd>
  89. </dl>
  90. Additionally, the script <c>configure</c> recognize many variables, which
  91. can be listed by typing <c>./configure --help</c>. For example,
  92. <c>./configure NVCCFLAGS="-arch sm_13"</c> adds a flag for the compilation of
  93. CUDA kernels.
  94. \section ConfiguringWorkers Configuring Workers
  95. <dl>
  96. <dt>--enable-maxcpus=<c>count</c></dt>
  97. <dd>
  98. \anchor enable-maxcpus
  99. \addindex __configure__--enable-maxcpus
  100. Use at most <c>count</c> CPU cores. This information is then
  101. available as the macro ::STARPU_MAXCPUS.
  102. </dd>
  103. <dt>--disable-cpu</dt>
  104. <dd>
  105. \anchor disable-cpu
  106. \addindex __configure__--disable-cpu
  107. Disable the use of CPUs of the machine. Only GPUs etc. will be used.
  108. </dd>
  109. <dt>--enable-maxcudadev=<c>count</c></dt>
  110. <dd>
  111. \anchor enable-maxcudadev
  112. \addindex __configure__--enable-maxcudadev
  113. Use at most <c>count</c> CUDA devices. This information is then
  114. available as the macro ::STARPU_MAXCUDADEVS.
  115. </dd>
  116. <dt>--disable-cuda</dt>
  117. <dd>
  118. \anchor disable-cuda
  119. \addindex __configure__--disable-cuda
  120. Disable the use of CUDA, even if a valid CUDA installation was detected.
  121. </dd>
  122. <dt>--with-cuda-dir=<c>prefix</c></dt>
  123. <dd>
  124. \anchor with-cuda-dir
  125. \addindex __configure__--with-cuda-dir
  126. Search for CUDA under <c>prefix</c>, which should notably contain the file
  127. <c>include/cuda.h</c>.
  128. </dd>
  129. <dt>--with-cuda-include-dir=<c>dir</c></dt>
  130. <dd>
  131. \anchor with-cuda-include-dir
  132. \addindex __configure__--with-cuda-include-dir
  133. Search for CUDA headers under <c>dir</c>, which should
  134. notably contain the file <c>cuda.h</c>. This defaults to
  135. <c>/include</c> appended to the value given to
  136. \ref with-cuda-dir "--with-cuda-dir".
  137. </dd>
  138. <dt>--with-cuda-lib-dir=<c>dir</c></dt>
  139. <dd>
  140. \anchor with-cuda-lib-dir
  141. \addindex __configure__--with-cuda-lib-dir
  142. Search for CUDA libraries under <c>dir</c>, which should notably contain
  143. the CUDA shared libraries---e.g., <c>libcuda.so</c>. This defaults to
  144. <c>/lib</c> appended to the value given to
  145. \ref with-cuda-dir "--with-cuda-dir".
  146. </dd>
  147. <dt>--disable-cuda-memcpy-peer</dt>
  148. <dd>
  149. \anchor disable-cuda-memcpy-peer
  150. \addindex __configure__--disable-cuda-memcpy-peer
  151. Explicitly disable peer transfers when using CUDA 4.0.
  152. </dd>
  153. <dt>--enable-maxopencldev=<c>count</c></dt>
  154. <dd>
  155. \anchor enable-maxopencldev
  156. \addindex __configure__--enable-maxopencldev
  157. Use at most <c>count</c> OpenCL devices. This information is then
  158. available as the macro ::STARPU_MAXOPENCLDEVS.
  159. </dd>
  160. <dt>--disable-opencl</dt>
  161. <dd>
  162. \anchor disable-opencl
  163. \addindex __configure__--disable-opencl
  164. Disable the use of OpenCL, even if the SDK is detected.
  165. </dd>
  166. <dt>--with-opencl-dir=<c>prefix</c></dt>
  167. <dd>
  168. \anchor with-opencl-dir
  169. \addindex __configure__--with-opencl-dir
  170. Search for an OpenCL implementation under <c>prefix</c>, which should
  171. notably contain <c>include/CL/cl.h</c> (or <c>include/OpenCL/cl.h</c>
  172. on Mac OS).
  173. </dd>
  174. <dt>--with-opencl-include-dir=<c>dir</c></dt>
  175. <dd>
  176. \anchor with-opencl-include-dir
  177. \addindex __configure__--with-opencl-include-dir
  178. Search for OpenCL headers under <c>dir</c>, which should notably contain
  179. <c>CL/cl.h</c> (or <c>OpenCL/cl.h</c> on Mac OS). This defaults to
  180. <c>/include</c> appended to the value given to
  181. \ref with-opencl-dir "--with-opencl-dir".
  182. </dd>
  183. <dt>--with-opencl-lib-dir=<c>dir</c></dt>
  184. <dd>
  185. \anchor with-opencl-lib-dir
  186. \addindex __configure__--with-opencl-lib-dir
  187. Search for an OpenCL library under <c>dir</c>, which should notably
  188. contain the OpenCL shared libraries---e.g. <c>libOpenCL.so</c>. This defaults to
  189. <c>/lib</c> appended to the value given to
  190. \ref with-opencl-dir "--with-opencl-dir".
  191. </dd>
  192. <dt>--enable-opencl-simulator</dt>
  193. <dd>
  194. \anchor enable-opencl-simulator
  195. \addindex __configure__--enable-opencl-simulator
  196. Enable considering the provided OpenCL implementation as a simulator, i.e. use
  197. the kernel duration returned by OpenCL profiling information as wallclock time
  198. instead of the actual measured real time. This requires simgrid support.
  199. </dd>
  200. <dt>--enable-maximplementations=<c>count</c></dt>
  201. <dd>
  202. \anchor enable-maximplementations
  203. \addindex __configure__--enable-maximplementations
  204. Allow for at most <c>count</c> codelet implementations for the same
  205. target device. This information is then available as the
  206. macro ::STARPU_MAXIMPLEMENTATIONS macro.
  207. </dd>
  208. <dt>--enable-max-sched-ctxs=<c>count</c></dt>
  209. <dd>
  210. \anchor enable-max-sched-ctxs
  211. \addindex __configure__--enable-max-sched-ctxs
  212. Allow for at most <c>count</c> scheduling contexts
  213. This information is then available as the macro
  214. ::STARPU_NMAX_SCHED_CTXS.
  215. </dd>
  216. <dt>--disable-asynchronous-copy</dt>
  217. <dd>
  218. \anchor disable-asynchronous-copy
  219. \addindex __configure__--disable-asynchronous-copy
  220. Disable asynchronous copies between CPU and GPU devices.
  221. The AMD implementation of OpenCL is known to
  222. fail when copying data asynchronously. When using this implementation,
  223. it is therefore necessary to disable asynchronous data transfers.
  224. </dd>
  225. <dt>--disable-asynchronous-cuda-copy</dt>
  226. <dd>
  227. \anchor disable-asynchronous-cuda-copy
  228. \addindex __configure__--disable-asynchronous-cuda-copy
  229. Disable asynchronous copies between CPU and CUDA devices.
  230. </dd>
  231. <dt>--disable-asynchronous-opencl-copy</dt>
  232. <dd>
  233. \anchor disable-asynchronous-opencl-copy
  234. \addindex __configure__--disable-asynchronous-opencl-copy
  235. Disable asynchronous copies between CPU and OpenCL devices.
  236. The AMD implementation of OpenCL is known to
  237. fail when copying data asynchronously. When using this implementation,
  238. it is therefore necessary to disable asynchronous data transfers.
  239. </dd>
  240. <dt>--enable-maxmicthreads</dt>
  241. <dd>
  242. \anchor enable-maxmicthreads
  243. \addindex __configure__--enable-maxmicthreads
  244. Specify the maximum number of MIC threads
  245. </dd>
  246. <dt>--disable-asynchronous-mic-copy</dt>
  247. <dd>
  248. \anchor disable-asynchronous-mic-copy
  249. \addindex __configure__--disable-asynchronous-mic-copy
  250. Disable asynchronous copies between CPU and MIC devices.
  251. </dd>
  252. </dl>
  253. \section ExtensionConfiguration Extension Configuration
  254. <dl>
  255. <dt>--disable-socl</dt>
  256. <dd>
  257. \anchor disable-socl
  258. \addindex __configure__--disable-socl
  259. Disable the SOCL extension (\ref SOCLOpenclExtensions). By
  260. default, it is enabled when an OpenCL implementation is found.
  261. </dd>
  262. <dt>--disable-starpu-top</dt>
  263. <dd>
  264. \anchor disable-starpu-top
  265. \addindex __configure__--disable-starpu-top
  266. Disable the StarPU-Top interface (\ref StarPU-TopInterface). By default, it
  267. is enabled when the required dependencies are found.
  268. </dd>
  269. <dt>--disable-gcc-extensions</dt>
  270. <dd>
  271. \anchor disable-gcc-extensions
  272. \addindex __configure__--disable-gcc-extensions
  273. Disable the GCC plug-in (\ref cExtensions). By default, it is
  274. enabled when the GCC compiler provides a plug-in support.
  275. </dd>
  276. <dt>--with-mpicc=<c>path</c></dt>
  277. <dd>
  278. \anchor with-mpicc
  279. \addindex __configure__--with-mpicc
  280. Use the compiler <c>mpicc</c> at <c>path</c>, for StarPU-MPI.
  281. (\ref MPISupport).
  282. </dd>
  283. <dt>--enable-mpi-progression-hook</dt>
  284. <dd>
  285. \anchor enable-mpi-progression-hook
  286. \addindex __configure__--enable-mpi-progression-hook
  287. Enable the activity polling method for StarPU-MPI.
  288. </dd>
  289. <dt>--with-coi-dir</dt>
  290. <dd>
  291. \anchor with-coi-dir
  292. \addindex __configure__--with-coi-dir
  293. Specify the directory to the COI library for MIC support.
  294. The default value is <c>/opt/intel/mic/coi</c>
  295. </dd>
  296. <dt>--mic-host</dt>
  297. <dd>
  298. \anchor mic-host
  299. \addindex __configure__--mic-host
  300. Specify the precise MIC architecture host identifier.
  301. The default value is <c>x86_64-k1om-linux</c>
  302. </dd>
  303. </dl>
  304. \section AdvancedConfiguration Advanced Configuration
  305. <dl>
  306. <dt>--enable-perf-debug</dt>
  307. <dd>
  308. \anchor enable-perf-debug
  309. \addindex __configure__--enable-perf-debug
  310. Enable performance debugging through gprof.
  311. </dd>
  312. <dt>--enable-model-debug</dt>
  313. <dd>
  314. \anchor enable-model-debug
  315. \addindex __configure__--enable-model-debug
  316. Enable performance model debugging.
  317. </dd>
  318. <dt>--enable-paje-codelet-details</dt>
  319. <dd>
  320. \anchor enable-paje-codelet-details
  321. \addindex __configure__--enable-paje-codelet-details
  322. Enable details about codelets in the paje trace. This requires a recent enough
  323. version of ViTE (at least r1430).
  324. </dd>
  325. <dt>--enable-fxt-lock</dt>
  326. <dd>
  327. \anchor enable-fxt-lock
  328. \addindex __configure__--enable-fxt-lock
  329. Enable additional trace events which describes locks behaviour.
  330. </dd>
  331. <dt>--enable-stats</dt>
  332. <dd>
  333. \anchor enable-stats
  334. \addindex __configure__--enable-stats
  335. (see ../../src/datawizard/datastats.c)
  336. Enable gathering of various data statistics (\ref DataStatistics).
  337. </dd>
  338. <dt>--enable-maxbuffers</dt>
  339. <dd>
  340. \anchor enable-maxbuffers
  341. \addindex __configure__--enable-maxbuffers
  342. Define the maximum number of buffers that tasks will be able to take
  343. as parameters, then available as the macro ::STARPU_NMAXBUFS.
  344. </dd>
  345. <dt>--enable-allocation-cache</dt>
  346. <dd>
  347. \anchor enable-allocation-cache
  348. \addindex __configure__--enable-allocation-cache
  349. Enable the use of a data allocation cache to avoid the cost of it with
  350. CUDA. Still experimental.
  351. </dd>
  352. <dt>--enable-opengl-render</dt>
  353. <dd>
  354. \anchor enable-opengl-render
  355. \addindex __configure__--enable-opengl-render
  356. Enable the use of OpenGL for the rendering of some examples.
  357. // TODO: rather default to enabled when detected
  358. </dd>
  359. <dt>--enable-blas-lib</dt>
  360. <dd>
  361. \anchor enable-blas-lib
  362. \addindex __configure__--enable-blas-lib
  363. Specify the blas library to be used by some of the examples. The
  364. library has to be 'atlas' or 'goto'.
  365. </dd>
  366. <dt>--disable-starpufft</dt>
  367. <dd>
  368. \anchor disable-starpufft
  369. \addindex __configure__--disable-starpufft
  370. Disable the build of libstarpufft, even if <c>fftw</c> or <c>cuFFT</c> is available.
  371. </dd>
  372. <dt>--enable-starpufft-examples</dt>
  373. <dd>
  374. \anchor enable-starpufft-examples
  375. \addindex __configure__--enable-starpufft-examples
  376. Enable the compilation and the execution of the libstarpufft examples.
  377. By default, they are neither compiled nor checked.
  378. </dd>
  379. <dt>--with-magma=<c>prefix</c></dt>
  380. <dd>
  381. \anchor with-magma
  382. \addindex __configure__--with-magma
  383. Search for MAGMA under <c>prefix</c>. <c>prefix</c> should notably
  384. contain <c>include/magmablas.h</c>.
  385. </dd>
  386. <dt>--with-fxt=<c>prefix</c></dt>
  387. <dd>
  388. \anchor with-fxt
  389. \addindex __configure__--with-fxt
  390. Search for FxT under <c>prefix</c>.
  391. FxT (http://savannah.nongnu.org/projects/fkt) is used to generate
  392. traces of scheduling events, which can then be rendered them using ViTE
  393. (\ref Off-linePerformanceFeedback). <c>prefix</c> should
  394. notably contain <c>include/fxt/fxt.h</c>.
  395. </dd>
  396. <dt>--with-perf-model-dir=<c>dir</c></dt>
  397. <dd>
  398. \anchor with-perf-model-dir
  399. \addindex __configure__--with-perf-model-dir
  400. Store performance models under <c>dir</c>, instead of the current user's
  401. home.
  402. </dd>
  403. <dt>--with-goto-dir=<c>prefix</c></dt>
  404. <dd>
  405. \anchor with-goto-dir
  406. \addindex __configure__--with-goto-dir
  407. Search for GotoBLAS under <c>prefix</c>, which should notably contain
  408. <c>libgoto.so</c> or <c>libgoto2.so</c>.
  409. </dd>
  410. <dt>--with-atlas-dir=<c>prefix</c></dt>
  411. <dd>
  412. \anchor with-atlas-dir
  413. \addindex __configure__--with-atlas-dir
  414. Search for ATLAS under <c>prefix</c>, which should notably contain
  415. <c>include/cblas.h</c>.
  416. </dd>
  417. <dt>--with-mkl-cflags=<c>cflags</c></dt>
  418. <dd>
  419. \anchor with-mkl-cflags
  420. \addindex __configure__--with-mkl-cflags
  421. Use <c>cflags</c> to compile code that uses the MKL library.
  422. </dd>
  423. <dt>--with-mkl-ldflags=<c>ldflags</c></dt>
  424. <dd>
  425. \anchor with-mkl-ldflags
  426. \addindex __configure__--with-mkl-ldflags
  427. Use <c>ldflags</c> when linking code that uses the MKL library. Note
  428. that the MKL website
  429. (http://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/)
  430. provides a script to determine the linking flags.
  431. </dd>
  432. <dt>--disable-build-examples</dt>
  433. <dd>
  434. \anchor disable-build-examples
  435. \addindex __configure__--disable-build-examples
  436. Disable the build of examples.
  437. </dd>
  438. <dt>--enable-sc-hypervisor</dt>
  439. <dd>
  440. \anchor enable-sc-hypervisor
  441. \addindex __configure__--enable-sc-hypervisor
  442. Enable the Scheduling Context Hypervisor plugin(\ref SchedulingContextHypervisor).
  443. By default, it is disabled.
  444. </dd>
  445. <dt>--enable-memory-stats</dt>
  446. <dd>
  447. \anchor enable-memory-stats
  448. \addindex __configure__--enable-memory-stats
  449. Enable memory statistics (\ref MemoryFeedback).
  450. </dd>
  451. <dt>--enable-simgrid</dt>
  452. <dd>
  453. \anchor enable-simgrid
  454. \addindex __configure__--enable-simgrid
  455. Enable simulation of execution in simgrid, to allow easy experimentation with
  456. various numbers of cores and GPUs, or amount of memory, etc. Experimental.
  457. The path to simgrid can be specified through the <c>SIMGRID_CFLAGS</c> and
  458. <c>SIMGRID_LIBS</c> environment variables, for instance:
  459. \verbatim
  460. export SIMGRID_CFLAGS="-I/usr/local/simgrid/include"
  461. export SIMGRID_LIBS="-L/usr/local/simgrid/lib -lsimgrid"
  462. \endverbatim
  463. </dd>
  464. <dt>--with-simgrid-dir</dt>
  465. <dd>
  466. \anchor with-simgrid-dir
  467. \addindex __configure__--with-simgrid-dir
  468. Similar to the option \ref enable-simgrid "--enable-simgrid" but also
  469. allows to specify the location to the SimGrid library.
  470. </dd>
  471. <dt>--with-simgrid-include-dir</dt>
  472. <dd>
  473. \anchor with-simgrid-include-dir
  474. \addindex __configure__--with-simgrid-include-dir
  475. Similar to the option \ref enable-simgrid "--enable-simgrid" but also
  476. allows to specify the location to the SimGrid include directory.
  477. </dd>
  478. <dt>--with-simgrid-lib-dir</dt>
  479. <dd>
  480. \anchor with-simgrid-lib-dir
  481. \addindex __configure__--with-simgrid-lib-dir
  482. Similar to the option \ref enable-simgrid "--enable-simgrid" but also
  483. allows to specify the location to the SimGrid lib directory.
  484. </dd>
  485. <dt>--enable-calibration-heuristic</dt>
  486. <dd>
  487. \anchor enable-calibration-heuristic
  488. \addindex __configure__--enable-calibration-heuristic
  489. Allows to set the maximum authorized percentage of deviation
  490. for the history-based calibrator of StarPU. A correct value
  491. of this parameter must be in [0..100]. The default value of
  492. this parameter is 10. Experimental.
  493. </dd>
  494. </dl>
  495. */