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 5.7 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. #
  2. # Beginning of user configuration
  3. #
  4. # This library's version
  5. VERSION = 0.2.15
  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. # C compiler including binary type(32bit / 64bit). Default is gcc.
  16. # Don't use Intel Compiler or PGI, it won't generate right codes as I expect.
  17. # CC = gcc
  18. # Fortran compiler. Default is g77.
  19. # FC = gfortran
  20. # Even you can specify cross compiler. Meanwhile, please set HOSTCC.
  21. # cross compiler for Windows
  22. # CC = x86_64-w64-mingw32-gcc
  23. # FC = x86_64-w64-mingw32-gfortran
  24. # cross compiler for 32bit ARM
  25. # CC = arm-linux-gnueabihf-gcc
  26. # FC = arm-linux-gnueabihf-gfortran
  27. # cross compiler for 64bit ARM
  28. # CC = aarch64-linux-gnu-gcc
  29. # FC = aarch64-linux-gnu-gfortran
  30. # If you use the cross compiler, please set this host compiler.
  31. # HOSTCC = gcc
  32. # If you need 32bit binary, define BINARY=32, otherwise define BINARY=64
  33. # BINARY=64
  34. # About threaded BLAS. It will be automatically detected if you don't
  35. # specify it.
  36. # For force setting for single threaded, specify USE_THREAD = 0
  37. # For force setting for multi threaded, specify USE_THREAD = 1
  38. # USE_THREAD = 0
  39. # If you're going to use this library with OpenMP, please comment it in.
  40. # USE_OPENMP = 1
  41. # You can define maximum number of threads. Basically it should be
  42. # less than actual number of cores. If you don't specify one, it's
  43. # automatically detected by the the script.
  44. # NUM_THREADS = 24
  45. # if you don't need to install the static library, please comment it in.
  46. # NO_STATIC = 1
  47. # if you don't need generate the shared library, please comment it in.
  48. # NO_SHARED = 1
  49. # If you don't need CBLAS interface, please comment it in.
  50. # NO_CBLAS = 1
  51. # If you only want CBLAS interface without installing Fortran compiler,
  52. # please comment it in.
  53. # ONLY_CBLAS = 1
  54. # If you don't need LAPACK, please comment it in.
  55. # If you set NO_LAPACK=1, the library automatically sets NO_LAPACKE=1.
  56. # NO_LAPACK = 1
  57. # If you don't need LAPACKE (C Interface to LAPACK), please comment it in.
  58. # NO_LAPACKE = 1
  59. # If you want to use legacy threaded Level 3 implementation.
  60. # USE_SIMPLE_THREADED_LEVEL3 = 1
  61. # If you want to drive whole 64bit region by BLAS. Not all Fortran
  62. # compiler supports this. It's safe to keep comment it out if you
  63. # are not sure(equivalent to "-i8" option).
  64. # INTERFACE64 = 1
  65. # Unfortunately most of kernel won't give us high quality buffer.
  66. # BLAS tries to find the best region before entering main function,
  67. # but it will consume time. If you don't like it, you can disable one.
  68. NO_WARMUP = 1
  69. # If you want to disable CPU/Memory affinity on Linux.
  70. NO_AFFINITY = 1
  71. # if you are compiling for Linux and you have more than 16 numa nodes or more than 256 cpus
  72. # BIGNUMA = 1
  73. # Don't use AVX kernel on Sandy Bridge. It is compatible with old compilers
  74. # and OS. However, the performance is low.
  75. # NO_AVX = 1
  76. # Don't use Haswell optimizations if binutils is too old (e.g. RHEL6)
  77. # NO_AVX2 = 1
  78. # Don't use parallel make.
  79. # NO_PARALLEL_MAKE = 1
  80. # If you would like to know minute performance report of GotoBLAS.
  81. # FUNCTION_PROFILE = 1
  82. # Support for IEEE quad precision(it's *real* REAL*16)( under testing)
  83. # QUAD_PRECISION = 1
  84. # Theads are still working for a while after finishing BLAS operation
  85. # to reduce thread activate/deactivate overhead. You can determine
  86. # time out to improve performance. This number should be from 4 to 30
  87. # which corresponds to (1 << n) cycles. For example, if you set to 26,
  88. # thread will be running for (1 << 26) cycles(about 25ms on 3.0GHz
  89. # system). Also you can control this mumber by THREAD_TIMEOUT
  90. # CCOMMON_OPT += -DTHREAD_TIMEOUT=26
  91. # Using special device driver for mapping physically contigous memory
  92. # to the user space. If bigphysarea is enabled, it will use it.
  93. # DEVICEDRIVER_ALLOCATION = 1
  94. # If you need to synchronize FP CSR between threads (for x86/x86_64 only).
  95. # CONSISTENT_FPCSR = 1
  96. # If any gemm arguement m, n or k is less or equal this threshold, gemm will be execute
  97. # with single thread. You can use this flag to avoid the overhead of multi-threading
  98. # in small matrix sizes. The default value is 4.
  99. # GEMM_MULTITHREAD_THRESHOLD = 4
  100. # If you need santy check by comparing reference BLAS. It'll be very
  101. # slow (Not implemented yet).
  102. # SANITY_CHECK = 1
  103. # Run testcases in utest/ . When you enable UTEST_CHECK, it would enable
  104. # SANITY_CHECK to compare the result with reference BLAS.
  105. # UTEST_CHECK = 1
  106. # The installation directory.
  107. # PREFIX = /opt/OpenBLAS
  108. # Common Optimization Flag;
  109. # The default -O2 is enough.
  110. # COMMON_OPT = -O2
  111. # gfortran option for LAPACK
  112. # enable this flag only on 64bit Linux and if you need a thread safe lapack library
  113. # FCOMMON_OPT = -frecursive
  114. # Profiling flags
  115. COMMON_PROF = -pg
  116. # Build Debug version
  117. # DEBUG = 1
  118. # Improve GEMV and GER for small matrices by stack allocation.
  119. # For details, https://github.com/xianyi/OpenBLAS/pull/482
  120. #
  121. MAX_STACK_ALLOC=2048
  122. # Add a prefix or suffix to all exported symbol names in the shared library.
  123. # Avoid conflicts with other BLAS libraries, especially when using
  124. # 64 bit integer interfaces in OpenBLAS.
  125. # For details, https://github.com/xianyi/OpenBLAS/pull/459
  126. #
  127. # The same prefix and suffix are also added to the library name,
  128. # i.e. you get lib$(SYMBOLPREFIX)openblas$(SYMBOLSUFFIX) rather than libopenblas
  129. #
  130. # SYMBOLPREFIX=
  131. # SYMBOLSUFFIX=
  132. #
  133. # End of user configuration
  134. #