starpu_config.h.in 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. /* StarPU --- Runtime system for heterogeneous multicore architectures.
  2. *
  3. * Copyright (C) 2011,2012,2014,2016,2017 Inria
  4. * Copyright (C) 2009-2020 Université de Bordeaux
  5. * Copyright (C) 2010-2017,2019 CNRS
  6. *
  7. * StarPU is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU Lesser General Public License as published by
  9. * the Free Software Foundation; either version 2.1 of the License, or (at
  10. * your option) any later version.
  11. *
  12. * StarPU is distributed in the hope that it will be useful, but
  13. * WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  15. *
  16. * See the GNU Lesser General Public License in COPYING.LGPL for more details.
  17. */
  18. /*
  19. * This is the public config.h file, installed along libstarpu.
  20. *
  21. * It should only contain the build-time #defines which have an effect on the
  22. * API & ABI.
  23. */
  24. #ifndef __STARPU_CONFIG_PUBLIC_H__
  25. #define __STARPU_CONFIG_PUBLIC_H__
  26. #undef STARPU_MAJOR_VERSION
  27. #undef STARPU_MINOR_VERSION
  28. #undef STARPU_RELEASE_VERSION
  29. #undef STARPU_USE_CPU
  30. #undef STARPU_USE_CUDA
  31. #undef STARPU_USE_OPENCL
  32. #undef STARPU_USE_MIC
  33. #undef STARPU_USE_MPI_MASTER_SLAVE
  34. #undef STARPU_OPENMP
  35. #undef STARPU_CLUSTER
  36. #undef STARPU_SIMGRID
  37. #undef STARPU_SIMGRID_MC
  38. #undef STARPU_SIMGRID_HAVE_XBT_BARRIER_INIT
  39. #undef STARPU_HAVE_SIMGRID_MSG_H
  40. #undef STARPU_HAVE_MSG_MSG_H
  41. #undef STARPU_HAVE_SIMGRID_ACTOR_H
  42. #undef STARPU_HAVE_SIMGRID_SEMAPHORE_H
  43. #undef STARPU_HAVE_SIMGRID_MUTEX_H
  44. #undef STARPU_HAVE_SIMGRID_COND_H
  45. #undef STARPU_HAVE_SIMGRID_BARRIER_H
  46. #undef STARPU_HAVE_XBT_SYNCHRO_H
  47. #undef STARPU_HAVE_VALGRIND_H
  48. #undef STARPU_HAVE_MEMCHECK_H
  49. #undef STARPU_VALGRIND_FULL
  50. #undef STARPU_SANITIZE_LEAK
  51. #undef STARPU_NON_BLOCKING_DRIVERS
  52. /* workers must call callbacks on sleep/wake-up */
  53. #undef STARPU_WORKER_CALLBACKS
  54. #undef STARPU_HAVE_ICC
  55. #undef STARPU_USE_MPI
  56. #undef STARPU_USE_MPI_MPI
  57. #undef STARPU_USE_MPI_NMAD
  58. #undef STARPU_ATLAS
  59. #undef STARPU_GOTO
  60. #undef STARPU_OPENBLAS
  61. #undef STARPU_MKL
  62. #undef STARPU_ARMPL
  63. #undef STARPU_SYSTEM_BLAS
  64. #undef STARPU_HAVE_CBLAS_H
  65. #undef STARPU_OPENCL_DATADIR
  66. #undef STARPU_HAVE_MAGMA
  67. #undef STARPU_OPENGL_RENDER
  68. #undef STARPU_USE_GTK
  69. #undef STARPU_HAVE_X11
  70. #undef STARPU_PAPI
  71. #undef STARPU_HAVE_POSIX_MEMALIGN
  72. #undef STARPU_HAVE_MEMALIGN
  73. #undef STARPU_HAVE_MALLOC_H
  74. #undef STARPU_HAVE_SYNC_BOOL_COMPARE_AND_SWAP
  75. #undef STARPU_HAVE_SYNC_VAL_COMPARE_AND_SWAP
  76. #undef STARPU_HAVE_SYNC_FETCH_AND_ADD
  77. #undef STARPU_HAVE_SYNC_FETCH_AND_OR
  78. #undef STARPU_HAVE_SYNC_LOCK_TEST_AND_SET
  79. #undef STARPU_HAVE_SYNC_SYNCHRONIZE
  80. #undef STARPU_DEVEL
  81. #undef STARPU_MODEL_DEBUG
  82. #undef STARPU_NO_ASSERT
  83. #undef STARPU_DEBUG
  84. #undef STARPU_VERBOSE
  85. #undef STARPU_GDB_PATH
  86. #undef STARPU_HAVE_FFTW
  87. #undef STARPU_HAVE_FFTWF
  88. #undef STARPU_HAVE_FFTWL
  89. #undef STARPU_HAVE_CUFFTDOUBLECOMPLEX
  90. #undef STARPU_HAVE_CURAND
  91. #undef STARPU_MAXNODES
  92. #undef STARPU_NMAXBUFS
  93. #undef STARPU_MAXCPUS
  94. #undef STARPU_MAXNUMANODES
  95. #undef STARPU_MAXCUDADEVS
  96. #undef STARPU_MAXOPENCLDEVS
  97. #undef STARPU_MAXMICDEVS
  98. #undef STARPU_NMAXWORKERS
  99. #undef STARPU_NMAX_SCHED_CTXS
  100. #undef STARPU_MAXIMPLEMENTATIONS
  101. #undef STARPU_MAXMPKERNELS
  102. #undef STARPU_USE_SC_HYPERVISOR
  103. #undef STARPU_SC_HYPERVISOR_DEBUG
  104. #undef STARPU_HAVE_GLPK_H
  105. #undef STARPU_HAVE_CUDA_MEMCPY_PEER
  106. #undef STARPU_HAVE_LIBNUMA
  107. #undef STARPU_HAVE_WINDOWS
  108. #undef STARPU_LINUX_SYS
  109. #undef STARPU_HAVE_SETENV
  110. #undef STARPU_HAVE_UNSETENV
  111. #undef STARPU_HAVE_UNISTD_H
  112. #undef STARPU_HAVE_HDF5
  113. #undef STARPU_USE_FXT
  114. #undef STARPU_FXT_LOCK_TRACES
  115. #ifdef _MSC_VER
  116. typedef long starpu_ssize_t;
  117. #define __starpu_func__ __FUNCTION__
  118. #else
  119. # include <sys/types.h>
  120. typedef ssize_t starpu_ssize_t;
  121. #define __starpu_func__ __func__
  122. #endif
  123. #if defined(c_plusplus) || defined(__cplusplus)
  124. /* inline is part of C++ */
  125. # define __starpu_inline inline
  126. #elif defined(_MSC_VER) || defined(__HP_cc)
  127. # define __starpu_inline __inline
  128. #else
  129. # define __starpu_inline __inline__
  130. #endif
  131. #undef STARPU_QUICK_CHECK
  132. #undef STARPU_LONG_CHECK
  133. #undef STARPU_USE_DRAND48
  134. #undef STARPU_USE_ERAND48_R
  135. #undef STARPU_HAVE_NEARBYINTF
  136. #undef STARPU_HAVE_RINTF
  137. #undef STARPU_HAVE_HWLOC
  138. #undef STARPU_HAVE_PTHREAD_SPIN_LOCK
  139. #undef STARPU_HAVE_PTHREAD_BARRIER
  140. #undef STARPU_HAVE_PTHREAD_SETNAME_NP
  141. #undef STARPU_HAVE_STRUCT_TIMESPEC
  142. #undef STARPU_PTHREAD_MUTEX_INITIALIZER_ZERO
  143. #undef STARPU_PTHREAD_COND_INITIALIZER_ZERO
  144. #undef STARPU_PTHREAD_RWLOCK_INITIALIZER_ZERO
  145. /* This is only for building examples */
  146. #undef STARPU_HAVE_HELGRIND_H
  147. /* Enable Fortran to C MPI interface */
  148. #undef HAVE_MPI_COMM_F2C
  149. #undef STARPU_HAVE_DARWIN
  150. #undef STARPU_HAVE_CXX11
  151. #undef STARPU_HAVE_STRERROR_R
  152. #undef STARPU_HAVE_STATEMENT_EXPRESSIONS
  153. #undef STARPU_PERF_MODEL_DIR
  154. #endif