configure.ac 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996
  1. #
  2. # StarPU
  3. # Copyright (C) Université Bordeaux 1, CNRS 2008-2009 (see AUTHORS file)
  4. #
  5. # This program 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. # This program 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. AC_INIT([StarPU],0.4, [starpu-bugs@lists.gforge.inria.fr], starpu)
  17. AC_CONFIG_SRCDIR(include/starpu.h)
  18. AC_CONFIG_AUX_DIR([build-aux])
  19. AC_CANONICAL_SYSTEM
  20. AM_INIT_AUTOMAKE([-Wall -Werror foreign color-tests])
  21. m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
  22. AC_PREREQ(2.60)
  23. AC_PROG_CC
  24. AC_PROG_CPP
  25. AC_PROG_SED
  26. AC_PROG_LN_S
  27. AC_PROG_F77
  28. AC_LIBTOOL_WIN32_DLL
  29. AC_PROG_LIBTOOL([win32-dll])
  30. AC_PROG_INSTALL
  31. AC_PROG_MKDIR_P
  32. AC_PROG_LN_S
  33. AC_HEADER_STDC
  34. AC_C_RESTRICT
  35. AC_PATH_PROGS([STARPU_MS_LIB], [lib])
  36. AC_ARG_VAR([STARPU_MS_LIB], [Path to Microsoft's Visual Studio `lib' tool])
  37. AM_CONDITIONAL([STARPU_HAVE_MS_LIB], [test "x$STARPU_MS_LIB" != "x"])
  38. case "$target" in
  39. *-*-mingw*|*-*-cygwin*)
  40. starpu_windows=yes
  41. AC_DEFINE(STARPU_HAVE_WINDOWS, [], [Define this on windows.])
  42. ;;
  43. esac
  44. AM_CONDITIONAL([STARPU_HAVE_WINDOWS], [test "x$starpu_windows" = "xyes"])
  45. # on Darwin, GCC targets i386 by default, so we don't have atomic ops
  46. case "$target" in
  47. i386-*darwin*) CFLAGS+=" -march=i686 " ;;
  48. esac
  49. # This will be useful for program which use CUDA (and .cubin files) which need
  50. # some path to the CUDA code at runtime.
  51. AC_DEFINE_UNQUOTED(STARPU_BUILD_DIR, "$PWD", [location of StarPU build directory])
  52. AC_SUBST(STARPU_BUILD_DIR, $PWD)
  53. case "${srcdir}" in
  54. /*) AC_DEFINE_UNQUOTED(STARPU_SRC_DIR, "$(eval echo ${srcdir})", [location of StarPU sources])
  55. AC_SUBST(STARPU_SRC_DIR, "$(eval echo ${srcdir})") ;;
  56. *) AC_DEFINE_UNQUOTED(STARPU_SRC_DIR, "$(eval echo $PWD/${srcdir})", [location of StarPU sources])
  57. AC_SUBST(STARPU_SRC_DIR, "$(eval echo $PWD/${srcdir})") ;;
  58. esac
  59. AC_CHECK_LIB([pthread], [pthread_create])
  60. AC_COMPILE_IFELSE(
  61. AC_LANG_PROGRAM([[
  62. #include <pthread.h>
  63. ]], [[ pthread_t t; pthread_create(&t, NULL, NULL, NULL); ]]),,
  64. AC_MSG_ERROR([pthread_create unavailable]))
  65. AC_SEARCH_LIBS([sqrt],[m],,AC_MSG_ERROR([math library unavailable]))
  66. AC_HAVE_LIBRARY([wsock32])
  67. AC_CHECK_FUNCS([sysconf])
  68. AC_CHECK_FUNC([pthread_spin_lock], have_pthread_spin_lock=yes, have_pthread_spin_lock=no)
  69. if test x$have_pthread_spin_lock = xyes; then
  70. AC_DEFINE(HAVE_PTHREAD_SPIN_LOCK,[],[pthread_spin_lock is available])
  71. fi
  72. # yes, that's non portable, but it's still better than sched_setaffinity
  73. AC_CHECK_FUNCS(pthread_setaffinity_np)
  74. # There is no posix_memalign on Mac OS X, only memalign
  75. AC_CHECK_FUNCS([posix_memalign], [AC_DEFINE([STARPU_HAVE_POSIX_MEMALIGN], [1], [Define to 1 if you have the `posix_memalign' function.])])
  76. AC_CHECK_FUNCS([memalign], [AC_DEFINE([STARPU_HAVE_MEMALIGN], [1], [Define to 1 if you have the `memalign' function.])])
  77. # Some systems don't have drand48
  78. AC_CHECK_FUNCS([drand48],
  79. AC_DEFINE([starpu_srand48(seed)],[srand48(seed)],[srand48 equivalent function])
  80. AC_DEFINE([starpu_drand48()],[drand48()],[drand48 equivalent function])
  81. AC_DEFINE([starpu_erand48(xsubi)],[erand48(xsubi)],[erand48 equivalent function]),
  82. AC_DEFINE([starpu_srand48(seed)],[srand(seed)],[srand48 equivalent function])
  83. AC_DEFINE([starpu_drand48()],[((double)(rand()) / RAND_MAX)],[drand48 equivalent function])
  84. AC_DEFINE([starpu_erand48(xsubi)],[starpu_drand48()],[erand48 equivalent function])
  85. )
  86. AC_CHECK_HEADERS([malloc.h], [AC_DEFINE([STARPU_HAVE_MALLOC_H], [1], [Define to 1 if you have the <malloc.h> header file.])])
  87. # This defines HAVE_SYNC_VAL_COMPARE_AND_SWAP
  88. STARPU_CHECK_SYNC_VAL_COMPARE_AND_SWAP
  89. # This defines HAVE_SYNC_BOOL_COMPARE_AND_SWAP
  90. STARPU_CHECK_SYNC_BOOL_COMPARE_AND_SWAP
  91. # This defines HAVE_SYNC_FETCH_AND_ADD
  92. STARPU_CHECK_SYNC_FETCH_AND_ADD
  93. # This defines HAVE_SYNC_FETCH_AND_OR
  94. STARPU_CHECK_SYNC_FETCH_AND_OR
  95. # This defines HAVE_SYNC_LOCK_TEST_AND_SET
  96. STARPU_CHECK_SYNC_LOCK_TEST_AND_SET
  97. # This defines HAVE_SYNC_SYNCHRONIZE
  98. STARPU_CHECK_SYNC_SYNCHRONIZE
  99. CPPFLAGS="${CPPFLAGS} -D_GNU_SOURCE "
  100. AC_SEARCH_LIBS([set_mempolicy],[numa],[enable_libnuma=yes],[enable_libnuma=no])
  101. AC_MSG_CHECKING(whether libnuma is available)
  102. AC_MSG_RESULT($enable_libnuma)
  103. if test x$enable_libnuma = xyes; then
  104. AC_DEFINE(STARPU_HAVE_LIBNUMA,[],[libnuma is available])
  105. fi
  106. ###############################################################################
  107. # #
  108. # CPUs settings #
  109. # #
  110. ###############################################################################
  111. AC_MSG_CHECKING(maximum number of CPUs)
  112. AC_ARG_ENABLE(nmaxcpus, [AS_HELP_STRING([--enable-nmaxcpus=<number>],
  113. [maximum number of CPUs])],
  114. nmaxcpus=$enableval, nmaxcpus=16)
  115. AC_MSG_RESULT($nmaxcpus)
  116. AC_DEFINE_UNQUOTED(STARPU_NMAXCPUS, [$nmaxcpus], [Maximum number of CPUs supported])
  117. AC_MSG_CHECKING(whether CPUs should be used)
  118. AC_ARG_ENABLE(cpu, [AS_HELP_STRING([--disable-cpu],
  119. [do not use the CPU(s)])],
  120. enable_cpu=$enableval, enable_cpu=yes)
  121. AC_MSG_RESULT($enable_cpu)
  122. AC_SUBST(STARPU_USE_CPU, $enable_cpu)
  123. AM_CONDITIONAL(STARPU_USE_CPU, test x$enable_cpu = xyes)
  124. if test x$enable_cpu = xyes; then
  125. AC_DEFINE(STARPU_USE_CPU, [1], [CPU driver is activated])
  126. fi
  127. ###############################################################################
  128. # #
  129. # CUDA settings #
  130. # #
  131. ###############################################################################
  132. AC_MSG_CHECKING(maximum number of CUDA devices)
  133. AC_ARG_ENABLE(maxcudadev, [AS_HELP_STRING([--enable-maxcudadev=<number>],
  134. [maximum number of CUDA devices])],
  135. nmaxcudadev=$enableval, nmaxcudadev=4)
  136. AC_MSG_RESULT($nmaxcudadev)
  137. AC_DEFINE_UNQUOTED(STARPU_MAXCUDADEVS, [$nmaxcudadev],
  138. [maximum number of CUDA devices])
  139. AC_ARG_ENABLE(cuda, [AS_HELP_STRING([--disable-cuda],
  140. [do not use CUDA device(s)])],, [enable_cuda=maybe])
  141. #AC_MSG_CHECKING(whether CUDA is available)
  142. AC_ARG_WITH(cuda-dir,
  143. [AS_HELP_STRING([--with-cuda-dir=<path>],
  144. [specify CUDA installation directory (default is /usr/local/cuda/)])],
  145. [
  146. cuda_dir=$withval
  147. # in case this was not explicit yet
  148. enable_cuda=yes
  149. ], cuda_dir=/usr/local/cuda/)
  150. AC_ARG_WITH(cuda-include-dir,
  151. [AS_HELP_STRING([--with-cuda-include-dir=<path>],
  152. [specify where CUDA headers are installed])],
  153. [
  154. cuda_include_dir=$withval
  155. # in case this was not explicit yet
  156. enable_cuda=yes
  157. ], [cuda_include_dir=no])
  158. AC_ARG_WITH(cuda-lib-dir,
  159. [AS_HELP_STRING([--with-cuda-lib-dir=<path>],
  160. [specify where CUDA libraries are installed])],
  161. [
  162. cuda_lib_dir=$withval
  163. # in case this was not explicit yet
  164. enable_cuda=yes
  165. ], [cuda_lib_dir=no])
  166. if test x$enable_cuda = xyes -o x$enable_cuda = xmaybe; then
  167. ! test -d "$cuda_dir" && test -d "/c/cuda" && cuda_dir=/c/cuda
  168. ! test -d "$cuda_dir" && test -d "/cygdrive/c/cuda" && cuda_dir=/cygdrive/c/cuda
  169. if test x$cuda_include_dir = xno; then
  170. cuda_include_dir="$cuda_dir/include/"
  171. fi
  172. if test -d "$cuda_include_dir"; then
  173. CPPFLAGS="${CPPFLAGS} -I$cuda_include_dir "
  174. STARPU_CUDA_CPPFLAGS="-I$cuda_include_dir"
  175. NVCCFLAGS="${NVCCFLAGS} -I$cuda_include_dir "
  176. fi
  177. # do we have a valid CUDA setup ?
  178. have_valid_cuda=yes
  179. AC_CHECK_HEADER([cuda.h],,[have_valid_cuda=no])
  180. # we are looking for the proper option in LDFLAGS, so we save the
  181. # current value of LDFLAGS so that we can add new things in it and
  182. # restore it in case it's not working.
  183. SAVED_LDFLAGS="${LDFLAGS}"
  184. if test x$cuda_lib_dir = xno; then
  185. found_cudalib=no
  186. if test -d "$cuda_dir/lib/"; then
  187. LDFLAGS="${SAVED_LDFLAGS} -L$cuda_dir/lib/ "
  188. STARPU_CUDA_LDFLAGS="-L$cuda_dir/lib/"
  189. AC_HAVE_LIBRARY([cuda],[found_cudalib=yes],[found_cudalib=no])
  190. fi
  191. if test x$found_cudalib=xno -a -d "$cuda_dir/lib64/"; then
  192. LDFLAGS="${SAVED_LDFLAGS} -L$cuda_dir/lib64/ "
  193. STARPU_CUDA_LDFLAGS="-L$cuda_dir/lib64/"
  194. fi
  195. else
  196. if test -d "$cuda_lib_dir"; then
  197. LDFLAGS="${LDFLAGS} -L$cuda_lib_dir "
  198. STARPU_CUDA_LDFLAGS="-L$cuda_lib_dir "
  199. fi
  200. fi
  201. AC_HAVE_LIBRARY([cuda],[],[have_valid_cuda=no])
  202. # To detect if we have a recent enough CUDA lib
  203. AC_HAVE_LIBRARY([cudart],[],[have_valid_cuda=no])
  204. # we also check that CUBLAS is available
  205. AC_HAVE_LIBRARY([cublas],,[have_valid_cuda=no])
  206. # in case CUDA was explicitely required, but is not available, this is an error
  207. if test x$enable_cuda = xyes -a x$have_valid_cuda = no; then
  208. AC_MSG_ERROR([cannot find CUDA])
  209. fi
  210. # now we enable CUDA if and only if a proper setup is available
  211. enable_cuda=$have_valid_cuda
  212. fi
  213. AC_MSG_CHECKING(whether CUDA should be used)
  214. AC_MSG_RESULT($enable_cuda)
  215. AC_SUBST(STARPU_USE_CUDA, $enable_cuda)
  216. AM_CONDITIONAL(STARPU_USE_CUDA, test x$enable_cuda = xyes)
  217. if test x$enable_cuda = xyes; then
  218. AC_DEFINE(STARPU_USE_CUDA, [1], [CUDA support is activated])
  219. # On Darwin, the libstdc++ dependency is not automatically added by nvcc
  220. case "$target" in
  221. *-*darwin*) AC_HAVE_LIBRARY([stdc++], [STARPU_CUDA_LDFLAGS="$STARPU_CUDA_LDFLAGS -lstdc++"]) ;;
  222. esac
  223. STARPU_CUDA_LDFLAGS="$STARPU_CUDA_LDFLAGS -lcuda"
  224. AC_SUBST(STARPU_CUDA_LDFLAGS)
  225. AC_SUBST(STARPU_CUDA_CPPFLAGS)
  226. #in case this is a 64bit setup, we tell nvcc to use a -m64 flag
  227. AC_CHECK_SIZEOF([void *])
  228. if test x$SIZEOF_VOID_P = x8; then
  229. NVCCFLAGS="${NVCCFLAGS} -m64"
  230. AC_SUBST(NVCCFLAGS)
  231. fi
  232. AC_PATH_PROG([NVCC], [nvcc], [nvcc], [$cuda_dir/bin:$PATH:/usr/local/bin:/usr/bin:/bin], [AC_MSG_WARN(Cannot find nvcc.)])
  233. fi
  234. enable_magma=no
  235. if test x$enable_cuda = xyes; then
  236. # Should we use the MAGMA library (instead or in addition to CUBLAS)
  237. magma_dir=/usr/local # default
  238. enable_magma=maybe
  239. AC_ARG_WITH(magma, [AS_HELP_STRING([--with-magma=<path>],
  240. [specify that MAGMA should be used and its installation directory])],
  241. [
  242. if test x$withval = xyes; then
  243. # No path was specified but MAGMA is explicitely enabled
  244. enable_magma=yes
  245. else
  246. if test x$withval = xno; then
  247. # MAGMA is explicitely disabled
  248. enable_magma=no
  249. else
  250. # MAGMA is enabled and the PATH is given in $withval
  251. enable_magma=yes
  252. magma_dir=$withval
  253. fi
  254. fi
  255. ], [])
  256. # Do we have a valid MAGMA setup ?
  257. if test x$enable_magma = xyes -o x$enable_magma = xmaybe; then
  258. SAVED_LDFLAGS="${LDFLAGS}"
  259. SAVED_CPPFLAGS="${CPPFLAGS}"
  260. if test -d "$magma_dir/lib/"; then
  261. LDFLAGS="${SAVED_LDFLAGS} -L$magma_dir/lib/ "
  262. have_valid_magma=yes
  263. AC_CHECK_LIB(magmablas, main,,[have_valid_magma=no])
  264. AC_CHECK_LIB(magma, magmablas_sgemm,,[have_valid_magma=no])
  265. fi
  266. if test -d "$magma_dir/include/"; then
  267. CPPFLAGS="${SAVED_CPPFLAGS} -I$magma_dir/include/ "
  268. AC_CHECK_HEADER([magmablas.h],,[have_valid_magma=no])
  269. #AC_CHECK_HEADER([magma.h],,[have_valid_magma=no])
  270. fi
  271. if test x$have_valid_magma = xno; then
  272. # If MAGMA was explicitely required, this is an error
  273. if test x$enable_magma = xyes; then
  274. AC_MSG_ERROR([cannot find MAGMA])
  275. fi
  276. # Restore old flags and don't use MAGMA
  277. LDFLAGS="${SAVED_LDFLAGS}"
  278. CPPFLAGS="${SAVED_CPPFLAGS}"
  279. enable_magma=no
  280. else
  281. enable_magma=yes
  282. fi
  283. else
  284. have_valid_magma=no
  285. enable_magma=no
  286. fi
  287. fi
  288. AC_MSG_CHECKING(whether MAGMA should be used)
  289. AC_MSG_RESULT($enable_magma)
  290. if test x$enable_magma = xyes; then
  291. AC_DEFINE(STARPU_HAVE_MAGMA, [1], [use MAGMA library])
  292. fi
  293. # cufftDoubleComplex may not be available on an old CUDA setup
  294. AC_CHECK_TYPE(cufftDoubleComplex,
  295. [have_cufftdoublecomplex=yes],
  296. [have_cufftdoublecomplex=no], [#include <cufft.h>])
  297. AM_CONDITIONAL(STARPU_HAVE_CUFFTDOUBLECOMPLEX, test x$have_cufftdoublecomplex = xyes)
  298. if test x$have_cufftdoublecomplex = xyes; then
  299. AC_DEFINE(STARPU_HAVE_CUFFTDOUBLECOMPLEX, [1], [cufftDoubleComplex is available])
  300. fi
  301. # The CURAND library is only available since CUDA 3.2
  302. have_curand=$enable_cuda
  303. if test x$enable_cuda = xyes; then
  304. AC_HAVE_LIBRARY([curand],[],[have_curand=no])
  305. fi
  306. AC_MSG_CHECKING(whether CURAND is available)
  307. AC_MSG_RESULT($have_curand)
  308. if test x$have_curand = xyes; then
  309. AC_DEFINE(STARPU_HAVE_CURAND,[1], [CURAND is available])
  310. fi
  311. ###############################################################################
  312. # #
  313. # OpenCL settings #
  314. # #
  315. ###############################################################################
  316. AC_MSG_CHECKING(maximum number of OpenCL devices)
  317. AC_ARG_ENABLE(maxopencldev, [AS_HELP_STRING([--enable-maxopencldev=<number>],
  318. [maximum number of OPENCL devices])],
  319. nmaxopencldev=$enableval, nmaxopencldev=8)
  320. AC_MSG_RESULT($nmaxopencldev)
  321. AC_DEFINE_UNQUOTED(STARPU_MAXOPENCLDEVS, [$nmaxopencldev],
  322. [maximum number of OPENCL devices])
  323. AC_ARG_ENABLE(opencl, [AS_HELP_STRING([--disable-opencl],
  324. [do not use OpenCL device(s)])],, [enable_opencl=maybe])
  325. #AC_MSG_CHECKING(whether OpenCL is available)
  326. AC_ARG_WITH(opencl-dir,
  327. [AS_HELP_STRING([--with-opencl-dir=<path>],
  328. [specify OpenCL installation directory (default is /usr)])],
  329. [
  330. opencl_dir=$withval
  331. # in case this was not explicit yet
  332. enable_opencl=yes
  333. ], opencl_dir=/usr)
  334. AC_ARG_WITH(opencl-include-dir,
  335. [AS_HELP_STRING([--with-opencl-include-dir=<path>],
  336. [specify where OpenCL headers are installed])],
  337. [
  338. opencl_include_dir=$withval
  339. # in case this was not explicit yet
  340. enable_opencl=yes
  341. ], [opencl_include_dir=no])
  342. AC_ARG_WITH(opencl-lib-dir,
  343. [AS_HELP_STRING([--with-opencl-lib-dir=<path>],
  344. [specify where OpenCL libraries are installed])],
  345. [
  346. opencl_lib_dir=$withval
  347. # in case this was not explicit yet
  348. enable_opencl=yes
  349. ], [opencl_lib_dir=no])
  350. if test x$enable_opencl = xyes -o x$enable_opencl = xmaybe; then
  351. if test x$opencl_include_dir = xno; then
  352. opencl_include_dir="$opencl_dir/include"
  353. fi
  354. if test -d "$opencl_include_dir" && test "$opencl_include_dir" != "/usr/include" ; then
  355. CPPFLAGS="${CPPFLAGS} -I$opencl_include_dir "
  356. fi
  357. # do we have a valid OpenCL setup ?
  358. have_valid_opencl=yes
  359. AC_CHECK_HEADER([CL/cl.h],,[have_valid_opencl=no])
  360. # we are looking for the proper option in LDFLAGS, so we save the
  361. # current value of LDFLAGS so that we can add new things in it and
  362. # restore it in case it's not working.
  363. SAVED_LDFLAGS="${LDFLAGS}"
  364. if test x$opencl_lib_dir = xno; then
  365. # Default location
  366. opencl_lib_dir="$opencl_dir/lib/"
  367. fi
  368. if test -d "$opencl_lib_dir"; then
  369. LDFLAGS="${SAVED_LDFLAGS} -L$opencl_lib_dir "
  370. fi
  371. AC_HAVE_LIBRARY([OpenCL],[],[have_valid_opencl=no])
  372. # in case OpenCL was explicitely required, but is not available, this is an error
  373. if test x$enable_opencl = xyes -a x$have_valid_opencl = no; then
  374. AC_MSG_ERROR([cannot find OpenCL])
  375. fi
  376. # now we enable OpenCL if and only if a proper setup is available
  377. enable_opencl=$have_valid_opencl
  378. fi
  379. AC_MSG_CHECKING(whether OpenCL should be used)
  380. AC_MSG_RESULT($enable_opencl)
  381. AC_SUBST(STARPU_USE_OPENCL, $enable_opencl)
  382. AM_CONDITIONAL(STARPU_USE_OPENCL, test x$enable_opencl = xyes)
  383. if test x$enable_opencl = xyes; then
  384. AC_DEFINE(STARPU_USE_OPENCL, [1], [OpenCL support is activated])
  385. CPPFLAGS="${CPPFLAGS} -DSTARPU_OPENCL_DATADIR=${datarootdir}/starpu/opencl"
  386. AC_SUBST(STARPU_OPENCL_DATAdir, "$(eval echo ${datarootdir}/starpu/opencl/examples)")
  387. fi
  388. ###############################################################################
  389. # #
  390. # Cell settings #
  391. # #
  392. ###############################################################################
  393. #TODO fix the default dir
  394. AC_ARG_ENABLE(gordon, [AS_HELP_STRING([--enable-gordon],
  395. [use Cell's SPUs])],, enable_gordon=maybe)
  396. if test x$enable_gordon = xyes -o x$enable_gordon = xmaybe; then
  397. AC_ARG_WITH(gordon-dir, [AS_HELP_STRING([--with-gordon-dir=<path>],
  398. [specify Gordon installation directory (default is /usr/local/)])],
  399. [
  400. gordon_dir=$withval
  401. enable_gordon=yes
  402. ], gordon_dir=/usr/local/)
  403. # do we have a valid Gordon setup ?
  404. have_valid_gordon=yes
  405. # can we use dynamic code loading facilities ?
  406. AC_CHECK_LIB(elf, elf_memory,, [have_valid_gordon=no])
  407. AC_CHECK_LIB(spe2, spe_context_create,,[have_valid_gordon=no])
  408. AC_CHECK_FUNC(spe_in_mbox_write, [], [have_valid_gordon=no])
  409. PKG_PROG_PKG_CONFIG
  410. if test -d "$gordon_dir"; then
  411. PKG_CONFIG_PATH="${PKG_CONFIG_PATH}:$gordon_dir"
  412. fi
  413. AC_SUBST(PKG_CONFIG_PATH)
  414. PKG_CHECK_MODULES([GORDON], [libgordon], [], have_valid_gordon=no)
  415. CPPFLAGS="${CPPFLAGS} ${GORDON_CFLAGS}"
  416. LIBS="${LIBS} ${GORDON_LIBS}"
  417. # AC_CHECK_FUNC(gordon_init, [gordon], [have_valid_gordon=no])
  418. # in case Gordon was explicitely required, but is not available, this is an error
  419. if test x$enable_gordon = xyes -a x$have_valid_gordon = no; then
  420. AC_MSG_ERROR([cannot find Gordon])
  421. fi
  422. # now we enable Gordon if and only if a proper setup is available
  423. enable_gordon=$have_valid_gordon
  424. fi
  425. AC_MSG_CHECKING(whether GORDON should be used)
  426. AC_MSG_RESULT($enable_gordon)
  427. AC_SUBST(STARPU_USE_GORDON, $enable_gordon)
  428. AM_CONDITIONAL(STARPU_USE_GORDON, test x$enable_gordon = xyes)
  429. if test x$enable_gordon = xyes; then
  430. AC_DEFINE(STARPU_USE_GORDON, [1], [Cell support is enabled])
  431. GORDON_REQUIRES=gordon
  432. fi
  433. AC_SUBST(GORDON_REQUIRES)
  434. AC_MSG_CHECKING(whether blocking drivers should be disabled)
  435. AC_ARG_ENABLE(blocking-drivers, [AS_HELP_STRING([--disable-blocking-drivers], [disable blocking drivers])],
  436. enable_blocking=$enableval, enable_blocking=$enable_gordon)
  437. AC_MSG_RESULT($enable_blocking)
  438. if test x$enable_blocking = xno; then
  439. AC_DEFINE(STARPU_NON_BLOCKING_DRIVERS, [1], [drivers must progress])
  440. fi
  441. ###############################################################################
  442. # #
  443. # Debug and Performance analysis tools #
  444. # #
  445. ###############################################################################
  446. AC_MSG_CHECKING(whether debug mode should be enabled)
  447. AC_ARG_ENABLE(debug, [AS_HELP_STRING([--enable-debug], [enable debug mode])],
  448. enable_debug=$enableval, enable_debug=no)
  449. AC_MSG_RESULT($enable_debug)
  450. if test x$enable_debug = xyes; then
  451. CFLAGS=" -O0 "
  452. else
  453. CFLAGS=" -O3 "
  454. fi
  455. CFLAGS+=" -gdwarf-2 -g3 "
  456. AC_MSG_CHECKING(whether extra checks should be performed)
  457. AC_ARG_ENABLE(fast, [AS_HELP_STRING([--enable-fast],
  458. [do not enforce assertions])],
  459. enable_fast=$enableval, enable_fast=no)
  460. AC_MSG_RESULT($enable_fast)
  461. if test x$enable_fast = xyes; then
  462. AC_DEFINE(STARPU_NO_ASSERT, [1], [disable assertions])
  463. fi
  464. AC_MSG_CHECKING(whether debug messages should be displayed)
  465. AC_ARG_ENABLE(verbose, [AS_HELP_STRING([--enable-verbose],
  466. [display verbose debug messages])],
  467. enable_verbose=$enableval, enable_verbose=no)
  468. AC_MSG_RESULT($enable_verbose)
  469. if test x$enable_verbose = xyes; then
  470. AC_DEFINE(STARPU_VERBOSE, [1], [display verbose debug messages])
  471. fi
  472. AC_MSG_CHECKING(whether coverage testing should be enabled)
  473. AC_ARG_ENABLE(coverage, [AS_HELP_STRING([--enable-coverage],
  474. [enable coverage checking])],
  475. enable_coverage=$enableval, enable_coverage=no)
  476. AC_MSG_RESULT($enable_coverage)
  477. AC_SUBST(COVERAGE, $enable_coverage)
  478. if test x$enable_coverage = xyes; then
  479. CPPFLAGS="${CPPFLAGS} --coverage"
  480. LDFLAGS="${LDFLAGS} --coverage"
  481. fi
  482. # shall we use FxT to generate trace of the execution ?
  483. AC_MSG_CHECKING(whether fxt traces should be generated)
  484. AC_ARG_WITH(fxt, [AS_HELP_STRING([--with-fxt[=<dir>]], [generate fxt traces])],
  485. [
  486. if test x$withval != xno; then
  487. use_fxt=yes
  488. if test x$withval = xyes; then
  489. AC_MSG_RESULT(yes)
  490. use_fxt_from_system=yes
  491. else
  492. # use specified path
  493. # TODO check if the dir is actually containing FxT
  494. use_fxt_from_system=no
  495. fxtdir=$withval
  496. AC_MSG_RESULT(yes using $fxtdir)
  497. AC_SUBST(FXTDIR, $fxtdir)
  498. fi
  499. else
  500. use_fxt=no
  501. AC_MSG_RESULT(no)
  502. fi
  503. ],
  504. [
  505. use_fxt=no
  506. AC_MSG_RESULT(no)
  507. ])
  508. AC_SUBST(STARPU_USE_FXT, $use_fxt)
  509. AM_CONDITIONAL(STARPU_USE_FXT, test x$use_fxt = xyes)
  510. if test x$use_fxt = xyes; then
  511. AC_DEFINE(STARPU_USE_FXT, [1], [enable FxT traces])
  512. AC_DEFINE(CONFIG_FUT, [1], [enable FUT traces])
  513. AC_SUBST(USE_FXTDIR_FROM_USER,$use_fxt_from_system)
  514. if test x$use_fxt_from_system = xno; then
  515. CPPFLAGS="${CPPFLAGS} -I$fxtdir/include/ "
  516. LDFLAGS="${LDFLAGS} -L$fxtdir/lib/ "
  517. fi
  518. # if we use monotonic clocks, FxT uses -lrt
  519. AC_CHECK_LIB(rt, clock_gettime,,AC_MSG_ERROR([cannot find clock_gettime]))
  520. AC_CHECK_LIB(fxt, fut_setup,,AC_MSG_ERROR([cannot find fxt lib]))
  521. AC_CHECK_HEADER([fxt/fxt.h],,AC_MSG_ERROR([cannot find headers for fxt]))
  522. AC_CHECK_HEADER([fxt/fut.h],,AC_MSG_ERROR([cannot find headers for fxt]))
  523. fi
  524. AC_MSG_CHECKING(whether performance debugging should be enabled)
  525. AC_ARG_ENABLE(perf-debug, [AS_HELP_STRING([--enable-perf-debug],
  526. [enable performance debugging])],
  527. enable_perf_debug=$enableval, enable_perf_debug=no)
  528. AC_MSG_RESULT($enable_perf_debug)
  529. AC_SUBST(STARPU_PERF_DEBUG, $enable_perf_debug)
  530. if test x$enable_perf_debuf = xyes; then
  531. AC_DEFINE(STARPU_PERF_DEBUG, [1], [enable performance debug])
  532. CPPFLAGS="${CPPFLAGS} -pg "
  533. LDFLAGS="${LDFLAGS} -pg "
  534. fi
  535. AC_MSG_CHECKING(whether performance model debugging should be enabled)
  536. AC_ARG_ENABLE(model-debug, [AS_HELP_STRING([--enable-model-debug],
  537. [enable performance model debugging])],
  538. enable_model_debug=$enableval, enable_model_debug=no)
  539. AC_MSG_RESULT($enable_model_debug)
  540. if test x$enable_model_debug = xyes; then
  541. AC_DEFINE(STARPU_MODEL_DEBUG, [1], [enable performance model debug])
  542. fi
  543. AC_MSG_CHECKING(whether statistics should be generated)
  544. AC_ARG_ENABLE(stats, [AS_HELP_STRING([--enable-stats],
  545. [enable statistics])],
  546. enable_stats=$enableval, enable_stats=no)
  547. AC_MSG_RESULT($enable_stats)
  548. AC_SUBST(STATS, $enable_stats)
  549. AC_SUBST(STARPU_DATA_STATS, $enable_stats)
  550. if test x$enable_stats = xyes; then
  551. AC_DEFINE(STARPU_DATA_STATS, [1], [enable statistics])
  552. fi
  553. AC_CHECK_HEADERS([glpk.h])
  554. AC_HAVE_LIBRARY([glpk])
  555. ###############################################################################
  556. # #
  557. # Miscellaneous options for StarPU #
  558. # #
  559. ###############################################################################
  560. AC_MSG_CHECKING(how many buffers can be manipulated per task)
  561. AC_ARG_ENABLE(maxbuffers, [AS_HELP_STRING([--enable-maxbuffers=<nbuffers>],
  562. [maximum number of buffers per task])],
  563. nmaxbuffers=$enableval, nmaxbuffers=8)
  564. AC_MSG_RESULT($nmaxbuffers)
  565. AC_DEFINE_UNQUOTED(STARPU_NMAXBUFS, [$nmaxbuffers],
  566. [how many buffers can be manipulated per task])
  567. # We have one memory node shared by all CPU workers, one node per GPU, and
  568. # currently the Cell driver is using the same memory node as the CPU.
  569. maxnodes=1
  570. if test x$enable_cuda = xyes ; then
  571. # we could have used nmaxcudadev + 1, but this would certainly give an
  572. # odd number.
  573. maxnodes=`expr $maxnodes + $nmaxcudadev`
  574. fi
  575. if test x$enable_opencl = xyes ; then
  576. # we could have used nmaxcudadev + 1, but this would certainly give an
  577. # odd number.
  578. maxnodes=`expr $maxnodes + $nmaxopencldev`
  579. fi
  580. # todo: set maxnodes to the next power of 2 greater than maxnodes
  581. AC_MSG_CHECKING(maximum number of memory nodes)
  582. AC_MSG_RESULT($maxnodes)
  583. AC_DEFINE_UNQUOTED(STARPU_MAXNODES, [$maxnodes],
  584. [maximum number of memory nodes])
  585. AC_MSG_CHECKING(whether allocation cache should be used)
  586. AC_ARG_ENABLE(allocation-cache, [AS_HELP_STRING([--enable-allocation-cache],
  587. [enable data allocation cache])],
  588. enable_allocation_cache=$enableval, enable_allocation_cache=no)
  589. AC_MSG_RESULT($enable_allocation_cache)
  590. if test x$enable_allocation_cache = xyes; then
  591. AC_DEFINE(STARPU_USE_ALLOCATION_CACHE, [1], [enable data allocation cache])
  592. fi
  593. AC_ARG_WITH(perf-model-dir, [AS_HELP_STRING([--with-perf-model-dir=<dir>], [specify where performance models shoulds be stored])],
  594. [
  595. if x$withval = xno; then
  596. AC_MSG_ERROR(--without-perf-model-dir is not a valid option)
  597. fi
  598. perf_model_dir=$withval
  599. have_explicit_perf_model_dir=yes
  600. AC_DEFINE_UNQUOTED(STARPU_PERF_MODEL_DIR, ["$perf_model_dir"], [performance models location])
  601. ], [
  602. # by default, we put the performance models in
  603. # $HOME/.starpu/sampling/
  604. have_explicit_perf_model_dir=no
  605. perf_model_dir="\$HOME/.starpu/sampling/"
  606. ]
  607. )
  608. AC_MSG_CHECKING(using explicit performance model location)
  609. AC_MSG_RESULT($have_explicit_perf_model_dir)
  610. AC_MSG_CHECKING(performance models location)
  611. AC_MSG_RESULT($perf_model_dir)
  612. # On many multicore CPUs, clock cycles are not synchronized
  613. AC_CHECK_LIB([rt], [clock_gettime])
  614. AC_CHECK_FUNCS([clock_gettime])
  615. # Compute the maximum number of workers (we round it to 16 for alignment
  616. # purposes).
  617. nmaxworkers=`expr 16 \* \( \( $nmaxcpus + $nmaxcudadev + $nmaxopencldev + 15 \) / 16 \) `
  618. AC_MSG_CHECKING(Maximum number of workers)
  619. AC_MSG_RESULT($nmaxworkers)
  620. AC_DEFINE_UNQUOTED(STARPU_NMAXWORKERS, [$nmaxworkers], [Maximum number of workers])
  621. ###############################################################################
  622. # #
  623. # MPI #
  624. # #
  625. ###############################################################################
  626. AC_ARG_WITH(mpicc, [AS_HELP_STRING([--with-mpicc[=<path to mpicc>]],
  627. [Path of the mpicc compiler])],
  628. [
  629. if test x$withval = xyes; then
  630. AC_MSG_ERROR(--with-mpicc must be given a pathname)
  631. else
  632. mpicc_path=$withval
  633. fi
  634. ],
  635. [
  636. # nothing was specified: default value is used
  637. AC_PATH_PROG(mpicc_path, mpicc, [no], [])
  638. ])
  639. # We test if the MPICC compiler exists
  640. if test ! -x $mpicc_path; then
  641. #MPICC does not exists or is not executable
  642. AC_MSG_RESULT(The mpicc compiler is not valid)
  643. use_mpi=no
  644. else
  645. use_mpi=yes
  646. fi
  647. AC_MSG_CHECKING(mpicc path)
  648. AC_MSG_RESULT($mpicc_path)
  649. AC_SUBST(MPICC, $mpicc_path)
  650. if test x$use_mpi = xyes; then
  651. cc_or_mpicc=$mpicc_path
  652. else
  653. cc_or_mpicc=$CC
  654. fi
  655. AC_SUBST(CC_OR_MPICC, $cc_or_mpicc)
  656. AC_MSG_CHECKING(whether the StarPU MPI library should be generated)
  657. AC_MSG_RESULT($use_mpi)
  658. AC_SUBST(USE_MPI, $use_mpi)
  659. AM_CONDITIONAL(USE_MPI, test x$use_mpi = xyes)
  660. if test x$use_mpi = xyes; then
  661. AC_DEFINE(STARPU_USE_MPI,[],[whether the StarPU MPI library is available])
  662. fi
  663. ###############################################################################
  664. # #
  665. # Examples #
  666. # #
  667. ###############################################################################
  668. AC_ARG_ENABLE(opengl-render, [AS_HELP_STRING([--enable-opengl-render],
  669. [enable OpenGL rendering of some examples])],
  670. enable_opengl_render=$enableval, enable_opengl_render=no)
  671. if test x$enable_opengl_render = xyes; then
  672. AC_CHECK_LIB(glut, glutInit,,AC_MSG_ERROR([cannot find glut]))
  673. AC_CHECK_LIB(GL, glXCreateContext,,AC_MSG_ERROR([cannot find GL]))
  674. AC_CHECK_LIB(GLU, gluLookAt,,AC_MSG_ERROR([cannot find GLU]))
  675. AC_DEFINE(STARPU_OPENGL_RENDER, [1], [enable OpenGL rendering of some examples])
  676. fi
  677. AC_MSG_CHECKING(whether OpenGL rendering is enabled)
  678. AC_SUBST(STARPU_OPENGL_RENDER, $enable_opengl_render)
  679. AC_MSG_RESULT($enable_opengl_render)
  680. # In case there are BLAS kernels that are used by the example applications
  681. # we may specify which library to use. Note that this is not used for StarPU
  682. # itself.
  683. blas_lib=maybe
  684. AC_ARG_ENABLE(blas-lib,
  685. [ --enable-blas-lib[=blaslibname]:
  686. none [default]: no BLAS lib is used
  687. atlas: use ATLAS library
  688. goto: use GotoBLAS library],
  689. [
  690. if test "x$enableval" = "xatlas" ; then
  691. blas_lib=atlas
  692. elif test "x$enableval" = "xgoto" ; then
  693. blas_lib=goto
  694. elif test "x$enableval" = "xnone" ; then
  695. blas_lib=none
  696. elif test x$enableval = xno; then
  697. blas_lib=none
  698. else
  699. echo
  700. echo "Error!"
  701. echo "Unknown BLAS library"
  702. exit -1
  703. fi
  704. ])
  705. if test x$blas_lib = xmaybe -o x$blas_lib = xgoto; then
  706. AC_ARG_WITH(goto-dir, [AS_HELP_STRING([--with-goto-dir=<dir>], [specify GotoBLAS lib location])],
  707. [
  708. blas_lib=goto
  709. gotodir=$withval
  710. AC_SUBST(GOTODIR, $gotodir)
  711. CPPFLAGS="${CPPFLAGS} -I$gotodir/ "
  712. LDFLAGS="${LDFLAGS} -L$gotodir/ "
  713. ]
  714. )
  715. if test x$blas_lib = xgoto; then
  716. AC_CHECK_LIB(gfortran, main,,)
  717. # Perhaps that GotoBLAS2 is available instead (so that we have libgotoblas2.{so,a})
  718. AC_CHECK_LIB(goto2, sgemm_,, [havegoto2=no])
  719. if test x$havegoto2 = xno; then
  720. AC_CHECK_LIB(goto, sgemm_,,AC_MSG_ERROR([cannot find goto lib]))
  721. fi
  722. AC_DEFINE(STARPU_GOTO, [1], [use STARPU_GOTO library])
  723. fi
  724. fi
  725. if test x$blas_lib = xmaybe -o x$blas_lib = xatlas; then
  726. AC_ARG_WITH(atlas-dir, [AS_HELP_STRING([--with-atlas-dir=<dir>], [specify ATLAS lib location])],
  727. [
  728. AC_MSG_CHECKING(STARPU_ATLAS location)
  729. blas_lib=atlas
  730. atlasdir=$withval
  731. AC_MSG_RESULT($atlasdir)
  732. AC_SUBST(ATLASDIR, $atlasdir)
  733. CPPFLAGS="${CPPFLAGS} -I$atlasdir/include/ "
  734. LDFLAGS="${LDFLAGS} -L$atlasdir/lib/ "
  735. ]
  736. )
  737. if test x$blas_lib = xatlas; then
  738. # test whether STARPU_ATLAS is actually available
  739. AC_CHECK_HEADER([cblas.h],,AC_MSG_ERROR([cannot find atlas headers]))
  740. AC_CHECK_LIB(atlas, ATL_sgemm,,AC_MSG_ERROR([cannot find atlas lib]),)
  741. AC_CHECK_LIB(cblas, cblas_sgemm,,AC_MSG_ERROR([cannot find atlas lib]),[-latlas])
  742. AC_DEFINE(STARPU_ATLAS, [1], [use STARPU_ATLAS library])
  743. fi
  744. fi
  745. if test x$blas_lib = xmaybe; then
  746. # Should we use MKL ?
  747. AC_ARG_WITH(mkl-cflags, [AS_HELP_STRING([--with-mkl-cflags], [specify MKL compilation flags])],
  748. [
  749. CPPFLAGS="${CPPFLAGS} $withval"
  750. blas_lib=mkl
  751. ])
  752. AC_ARG_WITH(mkl-ldflags, [AS_HELP_STRING([--with-mkl-ldflags], [specify MKL linking flags])],
  753. [
  754. LDFLAGS="${LDFLAGS} $withval"
  755. blas_lib=mkl
  756. ])
  757. if test x$blas_lib=xmkl; then
  758. AC_DEFINE(STARPU_MKL, [1], [use MKL library])
  759. fi
  760. fi
  761. if test x$blas_lib = xmaybe; then
  762. #perhaps it is possible to use some BLAS lib from the system
  763. use_system_blas=no
  764. AC_SEARCH_LIBS([sgemm_],[blas],use_system_blas=yes,,)
  765. if test x$use_system_blas = xyes; then
  766. AC_DEFINE(STARPU_SYSTEM_BLAS, [1], [use refblas library])
  767. blas_lib=system
  768. else
  769. blas_lib=none
  770. fi
  771. fi
  772. AM_CONDITIONAL(ATLAS_BLAS_LIB, test x$blas_lib = xatlas)
  773. AM_CONDITIONAL(GOTO_BLAS_LIB, test x$blas_lib = xgoto)
  774. AM_CONDITIONAL(MKL_BLAS_LIB, test x$blas_lib = xmkl)
  775. AM_CONDITIONAL(SYSTEM_BLAS_LIB, test x$blas_lib = xsystem)
  776. AM_CONDITIONAL(NO_BLAS_LIB, test x$blas_lib = xnone)
  777. AC_MSG_CHECKING(which BLAS lib should be used)
  778. AC_MSG_RESULT($blas_lib)
  779. AC_SUBST(BLAS_LIB,$blas_lib)
  780. have_fftw=no
  781. have_fftwf=no
  782. have_fftwl=no
  783. PKG_CHECK_MODULES([FFTW], [fftw3], [
  784. AC_DEFINE([STARPU_HAVE_FFTW], [1], [Define to 1 if you have the libfftw3 library.])
  785. AC_SUBST([STARPU_HAVE_FFTW], [1])
  786. have_fftw=yes
  787. ], [:])
  788. AM_CONDITIONAL(STARPU_HAVE_FFTW, [test x$have_fftw = xyes])
  789. PKG_CHECK_MODULES([FFTWF], [fftw3f], [
  790. AC_DEFINE([STARPU_HAVE_FFTWF], [1], [Define to 1 if you have the libfftw3f library.])
  791. AC_SUBST([STARPU_HAVE_FFTWF], [1])
  792. have_fftwf=yes
  793. ], [:])
  794. AM_CONDITIONAL(STARPU_HAVE_FFTWF, [test x$have_fftwf = xyes])
  795. PKG_CHECK_MODULES([FFTWL], [fftw3l], [
  796. AC_DEFINE([STARPU_HAVE_FFTWL], [1], [Define to 1 if you have the libfftw3l library.])
  797. AC_SUBST([HAVE_FFTWFL], [1])
  798. have_fftwl=yes
  799. ], [:])
  800. AM_CONDITIONAL(STARPU_HAVE_FFTWL, [test x$have_fftwl = xyes])
  801. PKG_CHECK_MODULES([HWLOC], [hwloc], [
  802. AC_DEFINE([STARPU_HAVE_HWLOC], [1], [Define to 1 if you have the hwloc library.])
  803. HWLOC_REQUIRES=hwloc
  804. AC_SUBST([STARPU_HAVE_HWLOC], [1])
  805. ], [:])
  806. AC_SUBST(HWLOC_REQUIRES)
  807. # is the header file f77.h available ?
  808. have_f77_h=yes
  809. AC_CHECK_HEADER([f77.h],,[have_f77_h=no])
  810. AC_MSG_CHECKING(whether header file f77.h is available)
  811. AC_MSG_RESULT($have_f77_h)
  812. AC_SUBST(STARPU_HAVE_F77_H, $have_f77_h)
  813. AM_CONDITIONAL(STARPU_HAVE_F77_H, test x$have_f77_h = xyes)
  814. if test x$have_f77_h = xyes; then
  815. AC_DEFINE([STARPU_HAVE_F77_H], [1], [Define to 1 if you have the <f77.h> header file.])
  816. fi
  817. AC_CONFIG_COMMANDS([executable-scripts], [chmod +x ]tests/regression/regression.sh tests/coverage/coverage_test.sh)
  818. AC_CONFIG_FILES(tests/regression/regression.sh tests/regression/profiles tests/regression/profiles.build.only tests/coverage/coverage_test.sh)
  819. AC_CONFIG_HEADER(src/common/config.h include/starpu_config.h)
  820. AC_OUTPUT([
  821. Makefile
  822. src/Makefile
  823. tools/Makefile
  824. libstarpu.pc
  825. examples/Makefile
  826. examples/starpufft/Makefile
  827. examples/stencil/Makefile
  828. tests/Makefile
  829. doc/Makefile
  830. mpi/Makefile
  831. ])