You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile.rule 9.7 kB

6 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  1. #
  2. # Beginning of user configuration
  3. #
  4. # This library's version
  5. VERSION = 0.3.7.dev
  6. # If you set the suffix, the library name will be libopenblas_$(LIBNAMESUFFIX).a
  7. # and libopenblas_$(LIBNAMESUFFIX).so. Meanwhile, the soname in shared library
  8. # is libopenblas_$(LIBNAMESUFFIX).so.0.
  9. # LIBNAMESUFFIX = omp
  10. # You can specify the target architecture, otherwise it's
  11. # automatically detected.
  12. # TARGET = PENRYN
  13. # If you want to support multiple architecture in one binary
  14. # DYNAMIC_ARCH = 1
  15. # If you want the full list of x86_64 architectures supported in DYNAMIC_ARCH
  16. # mode (including individual optimizied codes for PENRYN, DUNNINGTON, OPTERON,
  17. # OPTERON_SSE3, ATOM and NANO rather than fallbacks to older architectures)
  18. # DYNAMIC_OLDER = 1
  19. # C compiler including binary type(32bit / 64bit). Default is gcc.
  20. # Don't use Intel Compiler or PGI, it won't generate right codes as I expect.
  21. # CC = gcc
  22. # Fortran compiler. Default is g77.
  23. # FC = gfortran
  24. # Even you can specify cross compiler. Meanwhile, please set HOSTCC.
  25. # cross compiler for Windows
  26. # CC = x86_64-w64-mingw32-gcc
  27. # FC = x86_64-w64-mingw32-gfortran
  28. # cross compiler for 32bit ARM
  29. # CC = arm-linux-gnueabihf-gcc
  30. # FC = arm-linux-gnueabihf-gfortran
  31. # cross compiler for 64bit ARM
  32. # CC = aarch64-linux-gnu-gcc
  33. # FC = aarch64-linux-gnu-gfortran
  34. # If you use the cross compiler, please set this host compiler.
  35. # HOSTCC = gcc
  36. # If you need 32bit binary, define BINARY=32, otherwise define BINARY=64
  37. # Please note that AVX is not available on 32-bit.
  38. # Setting BINARY=32 disables AVX/AVX2/AVX-512.
  39. # BINARY=64
  40. # About threaded BLAS. It will be automatically detected if you don't
  41. # specify it.
  42. # For force setting for single threaded, specify USE_THREAD = 0
  43. # For force setting for multi threaded, specify USE_THREAD = 1
  44. # USE_THREAD = 0
  45. # If you're going to use this library with OpenMP, please comment it in.
  46. # This flag is always set for POWER8. Don't set USE_OPENMP = 0 if you're targeting POWER8.
  47. # USE_OPENMP = 1
  48. # The OpenMP scheduler to use - by default this is "static" and you
  49. # will normally not want to change this unless you know that your main
  50. # workload will involve tasks that have highly unbalanced running times
  51. # for individual threads. Changing away from "static" may also adversely
  52. # affect memory access locality in NUMA systems. Setting to "runtime" will
  53. # allow you to select the scheduler from the environment variable OMP_SCHEDULE
  54. # CCOMMON_OPT += -DOMP_SCHED=dynamic
  55. # You can define the maximum number of threads. Basically it should be less
  56. # than or equal to the number of CPU threads. If you don't specify one, it's
  57. # automatically detected by the build system.
  58. # If SMT (aka. HT) is enabled on the system, it may or may not be beneficial to
  59. # restrict NUM_THREADS to the number of physical cores. By default, the automatic
  60. # detection includes logical CPUs, thus allowing the use of SMT.
  61. # Users may opt at runtime to use less than NUM_THREADS threads.
  62. #
  63. # Note for package maintainers: you can build OpenBLAS with a large NUM_THREADS
  64. # value (eg. 32-256) if you expect your users to use that many threads. Due to the way
  65. # some internal structures are allocated, using a large NUM_THREADS value has a RAM
  66. # footprint penalty, even if users reduce the actual number of threads at runtime.
  67. # NUM_THREADS = 24
  68. # If you have enabled USE_OPENMP and your application would call
  69. # OpenBLAS's calculation API from multiple threads, please comment this in.
  70. # This flag defines how many instances of OpenBLAS's calculation API can actually
  71. # run in parallel. If more than NUM_PARALLEL threads call OpenBLAS's calculation API,
  72. # they need to wait for the preceding API calls to finish or risk data corruption.
  73. # NUM_PARALLEL = 2
  74. # If you don't need to install the static library, please comment this in.
  75. # NO_STATIC = 1
  76. # If you don't need to generate the shared library, please comment this in.
  77. # NO_SHARED = 1
  78. # If you don't need the CBLAS interface, please comment this in.
  79. # NO_CBLAS = 1
  80. # If you only want the CBLAS interface without installing a Fortran compiler,
  81. # please comment this in.
  82. # ONLY_CBLAS = 1
  83. # If you don't need LAPACK, please comment this in.
  84. # If you set NO_LAPACK=1, the build system automatically sets NO_LAPACKE=1.
  85. # NO_LAPACK = 1
  86. # If you don't need LAPACKE (C Interface to LAPACK), please comment this in.
  87. # NO_LAPACKE = 1
  88. # Build LAPACK Deprecated functions since LAPACK 3.6.0
  89. BUILD_LAPACK_DEPRECATED = 1
  90. # Build RecursiveLAPACK on top of LAPACK
  91. # BUILD_RELAPACK = 1
  92. # If you want to use the legacy threaded Level 3 implementation.
  93. # USE_SIMPLE_THREADED_LEVEL3 = 1
  94. # If you want to use the new, still somewhat experimental code that uses
  95. # thread-local storage instead of a central memory buffer in memory.c
  96. # Note that if your system uses GLIBC, it needs to have at least glibc 2.21
  97. # for this to work.
  98. # USE_TLS = 1
  99. # If you want to drive whole 64bit region by BLAS. Not all Fortran
  100. # compilers support this. It's safe to keep this commented out if you
  101. # are not sure. (This is equivalent to the "-i8" ifort option).
  102. # INTERFACE64 = 1
  103. # Unfortunately most of kernel won't give us high quality buffer.
  104. # BLAS tries to find the best region before entering main function,
  105. # but it will consume time. If you don't like it, you can disable one.
  106. NO_WARMUP = 1
  107. # Comment this in if you want to disable OpenBLAS's CPU/Memory affinity handling.
  108. # This feature is only implemented on Linux, and is always disabled on other platforms.
  109. # Enabling affinity handling may improve performance, especially on NUMA systems, but
  110. # it may conflict with certain applications that also try to manage affinity.
  111. # This conflict can result in threads of the application calling OpenBLAS ending up locked
  112. # to the same core(s) as OpenBLAS, possibly binding all threads to a single core.
  113. # For this reason, affinity handling is disabled by default. Can be safely enabled if nothing
  114. # else modifies affinity settings.
  115. # Note: enabling affinity has been known to cause problems with NumPy and R
  116. NO_AFFINITY = 1
  117. # If you are compiling for Linux and you have more than 16 numa nodes or more than 256 cpus
  118. # BIGNUMA = 1
  119. # Don't use AVX kernel on Sandy Bridge. It is compatible with old compilers
  120. # and OS. However, the performance is low.
  121. # NO_AVX = 1
  122. # Don't use Haswell optimizations if binutils is too old (e.g. RHEL6)
  123. # NO_AVX2 = 1
  124. # Don't use parallel make.
  125. # NO_PARALLEL_MAKE = 1
  126. # Force number of make jobs. The default is the number of logical CPU of the host.
  127. # This is particularly useful when using distcc.
  128. # A negative value will disable adding a -j flag to make, allowing to use a parent
  129. # make -j value. This is useful to call OpenBLAS make from an other project
  130. # makefile
  131. # MAKE_NB_JOBS = 2
  132. # If you would like to know minute performance report of GotoBLAS.
  133. # FUNCTION_PROFILE = 1
  134. # Support for IEEE quad precision(it's *real* REAL*16)( under testing)
  135. # This option should not be used - it is a holdover from unfinished code present
  136. # in the original GotoBLAS2 library that may be usable as a starting point but
  137. # is not even expected to compile in its present form.
  138. # QUAD_PRECISION = 1
  139. # Theads are still working for a while after finishing BLAS operation
  140. # to reduce thread activate/deactivate overhead. You can determine
  141. # time out to improve performance. This number should be from 4 to 30
  142. # which corresponds to (1 << n) cycles. For example, if you set to 26,
  143. # thread will be running for (1 << 26) cycles(about 25ms on 3.0GHz
  144. # system). Also you can control this number by THREAD_TIMEOUT
  145. # CCOMMON_OPT += -DTHREAD_TIMEOUT=26
  146. # Using special device driver for mapping physically contiguous memory
  147. # to the user space. If bigphysarea is enabled, it will use it.
  148. # DEVICEDRIVER_ALLOCATION = 1
  149. # If you need to synchronize FP CSR between threads (for x86/x86_64 only).
  150. # CONSISTENT_FPCSR = 1
  151. # If any gemm argument m, n or k is less or equal this threshold, gemm will be execute
  152. # with single thread. (Actually in recent versions this is a factor proportional to the
  153. # number of floating point operations necessary for the given problem size, no longer
  154. # an individual dimension). You can use this setting to avoid the overhead of multi-
  155. # threading in small matrix sizes. The default value is 4, but values as high as 50 have
  156. # been reported to be optimal for certain workloads (50 is the recommended value for Julia).
  157. # GEMM_MULTITHREAD_THRESHOLD = 4
  158. # If you need sanity check by comparing results to reference BLAS. It'll be very
  159. # slow (Not implemented yet).
  160. # SANITY_CHECK = 1
  161. # The installation directory.
  162. # PREFIX = /opt/OpenBLAS
  163. # Common Optimization Flag;
  164. # The default -O2 is enough.
  165. # Flags for POWER8 are defined in Makefile.power. Don't modify COMMON_OPT
  166. # COMMON_OPT = -O2
  167. # gfortran option for LAPACK to improve thread-safety
  168. # It is enabled by default in Makefile.system for gfortran
  169. # Flags for POWER8 are defined in Makefile.power. Don't modify FCOMMON_OPT
  170. # FCOMMON_OPT = -frecursive
  171. # Profiling flags
  172. COMMON_PROF = -pg
  173. # Build Debug version
  174. # DEBUG = 1
  175. # Set maximum stack allocation.
  176. # The default value is 2048. 0 disable stack allocation a may reduce GER and GEMV
  177. # performance. For details, https://github.com/xianyi/OpenBLAS/pull/482
  178. #
  179. # MAX_STACK_ALLOC = 0
  180. # Add a prefix or suffix to all exported symbol names in the shared library.
  181. # Avoid conflicts with other BLAS libraries, especially when using
  182. # 64 bit integer interfaces in OpenBLAS.
  183. # For details, https://github.com/xianyi/OpenBLAS/pull/459
  184. #
  185. # The same prefix and suffix are also added to the library name,
  186. # i.e. you get lib$(SYMBOLPREFIX)openblas$(SYMBOLSUFFIX) rather than libopenblas
  187. #
  188. # SYMBOLPREFIX=
  189. # SYMBOLSUFFIX=
  190. #
  191. # End of user configuration
  192. #