2 # Beginning of user configuration
5 # This library's version
8 # If you set the suffix, the library name will be libopenblas_$(LIBNAMESUFFIX).a
9 # and libopenblas_$(LIBNAMESUFFIX).so. Meanwhile, the soname in shared library
10 # is libopenblas_$(LIBNAMESUFFIX).so.0.
13 # You can specify the target architecture, otherwise it's
14 # automatically detected.
17 # If you want to support multiple architecture in one binary
20 # C compiler including binary type(32bit / 64bit). Default is gcc.
21 # Don't use Intel Compiler or PGI, it won't generate right codes as I expect.
24 # Fortran compiler. Default is g77.
27 # Even you can specify cross compiler. Meanwhile, please set HOSTCC.
28 # CC = x86_64-w64-mingw32-gcc
29 # FC = x86_64-w64-mingw32-gfortran
31 # If you use the cross compiler, please set this host compiler.
34 # If you need 32bit binary, define BINARY=32, otherwise define BINARY=64
37 # About threaded BLAS. It will be automatically detected if you don't
39 # For force setting for single threaded, specify USE_THREAD = 0
40 # For force setting for multi threaded, specify USE_THREAD = 1
43 # If you're going to use this library with OpenMP, please comment it in.
46 # You can define maximum number of threads. Basically it should be
47 # less than actual number of cores. If you don't specify one, it's
48 # automatically detected by the the script.
51 # if you don't need generate the shared library, please comment it in.
54 # If you don't need CBLAS interface, please comment it in.
57 # If you only want CBLAS interface without installing Fortran compiler,
58 # please comment it in.
61 # If you don't need LAPACK, please comment it in.
62 # If you set NO_LAPACK=1, the library automatically sets NO_LAPACKE=1.
65 # If you don't need LAPACKE (C Interface to LAPACK), please comment it in.
68 # If you want to use legacy threaded Level 3 implementation.
69 # USE_SIMPLE_THREADED_LEVEL3 = 1
71 # If you want to drive whole 64bit region by BLAS. Not all Fortran
72 # compiler supports this. It's safe to keep comment it out if you
73 # are not sure(equivalent to "-i8" option).
76 # Unfortunately most of kernel won't give us high quality buffer.
77 # BLAS tries to find the best region before entering main function,
78 # but it will consume time. If you don't like it, you can disable one.
81 # If you want to disable CPU/Memory affinity on Linux.
84 # Don't use AVX kernel on Sandy Bridge. It is compatible with old compilers
85 # and OS. However, the performance is low.
88 # Don't use parallel make.
89 # NO_PARALLEL_MAKE = 1
91 # If you would like to know minute performance report of GotoBLAS.
92 # FUNCTION_PROFILE = 1
94 # Support for IEEE quad precision(it's *real* REAL*16)( under testing)
97 # Theads are still working for a while after finishing BLAS operation
98 # to reduce thread activate/deactivate overhead. You can determine
99 # time out to improve performance. This number should be from 4 to 30
100 # which corresponds to (1 << n) cycles. For example, if you set to 26,
101 # thread will be running for (1 << 26) cycles(about 25ms on 3.0GHz
102 # system). Also you can control this mumber by THREAD_TIMEOUT
103 # CCOMMON_OPT += -DTHREAD_TIMEOUT=26
105 # Using special device driver for mapping physically contigous memory
106 # to the user space. If bigphysarea is enabled, it will use it.
107 # DEVICEDRIVER_ALLOCATION = 1
109 # If you need to synchronize FP CSR between threads (for x86/x86_64 only).
110 # CONSISTENT_FPCSR = 1
112 # If any gemm arguement m, n or k is less or equal this threshold, gemm will be execute
113 # with single thread. You can use this flag to avoid the overhead of multi-threading
114 # in small matrix sizes. The default value is 4.
115 # GEMM_MULTITHREAD_THRESHOLD = 4
117 # If you need santy check by comparing reference BLAS. It'll be very
118 # slow (Not implemented yet).
121 # Run testcases in utest/ . When you enable UTEST_CHECK, it would enable
122 # SANITY_CHECK to compare the result with reference BLAS.
125 # The installation directory.
126 # PREFIX = /opt/OpenBLAS
128 # Common Optimization Flag;
129 # The default -O2 is enough.
135 # Build Debug version
139 # End of user configuration