diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
new file mode 100644
index 0000000000..359281d4e8
--- /dev/null
+++ b/.github/workflows/docs.yml
@@ -0,0 +1,24 @@
+name: Publish docs via GitHub Pages
+on:
+ push:
+ branches:
+ - develop
+jobs:
+ build:
+ name: Deploy docs
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/setup-python@v2
+ with:
+ python-version: "3.10"
+ - run: pip install mkdocs mkdocs-material
+ # mkdocs gh-deploy command only builds to the top-level, hence building then deploying ourselves
+ - run: mkdocs build
+ - name: Deploy docs
+ uses: peaceiris/actions-gh-pages@v3
+ if: ${{ github.ref == 'refs/heads/develop' }}
+ with:
+ github_token: ${{ secrets.GITHUB_TOKEN }}
+ publish_dir: ./site
+ destination_dir: docs/
diff --git a/docs/about.md b/docs/about.md
new file mode 100644
index 0000000000..95acdccc8c
--- /dev/null
+++ b/docs/about.md
@@ -0,0 +1,33 @@
+## Mailing list
+
+We have a [GitHub discussions](https://github.com/OpenMathLib/OpenBLAS/discussions/) forum to discuss usage and development of OpenBLAS. We also have a [Google group for *users*](https://groups.google.com/forum/#!forum/openblas-users) and a [Google group for *development of*](https://groups.google.com/forum/#!forum/openblas-dev) OpenBLAS.
+
+## Donations
+
+You can read OpenBLAS statement of receipts and disbursement and cash balance on [google doc](https://docs.google.com/spreadsheet/ccc?key=0AghkTjXe2lDndE1UZml0dGpaUzJmZGhvenBZd1F2R1E&usp=sharing). A backer list is available [on GitHub](https://github.com/OpenMathLib/OpenBLAS/blob/develop/BACKERS.md).
+
+We welcome the hardware donation, including the latest CPU and boards.
+
+## Acknowledgements
+
+This work is partially supported by
+* Research and Development of Compiler System and Toolchain for Domestic CPU, National S&T Major Projects: Core Electronic Devices, High-end General Chips and Fundamental Software (No.2009ZX01036-001-002)
+* National High-tech R&D Program of China (Grant No.2012AA010903)
+
+## Users of OpenBLAS
+
+* Julia - a high-level, high-performance dynamic programming language for technical computing
+* Ceemple v1.0.3 (C++ technical computing environment), including OpenBLAS, Qt, Boost, OpenCV and others. The only solution with immediate-recompilation of C++ code. Available from Ceemple C++ Technical Computing.
+* [netlib-java](https://github.com/fommil/netlib-java) and various upstream libraries, allowing OpenBLAS to be used from languages on the Java Virtual Machine.
+
+
+
+## Publications
+
+### 2013
+
+* Wang Qian, Zhang Xianyi, Zhang Yunquan, Qing Yi, **AUGEM: Automatically Generate High Performance Dense Linear Algebra Kernels on x86 CPUs**, In the International Conference for High Performance Computing, Networking, Storage and Analysis (SC'13), Denver CO, November 2013. [[pdf](http://xianyi.github.io/paper/augem_SC13.pdf)]
+
+### 2012
+
+* Zhang Xianyi, Wang Qian, Zhang Yunquan, **Model-driven Level 3 BLAS Performance Optimization on Loongson 3A Processor**, 2012 IEEE 18th International Conference on Parallel and Distributed Systems (ICPADS), 17-19 Dec. 2012.
diff --git a/docs/build_system.md b/docs/build_system.md
new file mode 100644
index 0000000000..98808fdfab
--- /dev/null
+++ b/docs/build_system.md
@@ -0,0 +1,104 @@
+!!! warning
+ This page is made by someone who is not the developer and should not be considered as an official documentation of the build system. For getting the full picture, it is best to read the Makefiles and understand them yourself.
+
+## Makefile dep graph
+
+```
+Makefile
+|
+|----- Makefile.system # !!! this is included by many of the Makefiles in the subdirectories !!!
+| |
+| |===== Makefile.prebuild # This is triggered (not included) once by Makefile.system
+| | | # and runs before any of the actual library code is built.
+| | | # (builds and runs the "getarch" tool for cpu identification,
+| | | # runs the compiler detection scripts c_check and f_check)
+| | |
+| | ----- (Makefile.conf) [ either this or Makefile_kernel.conf is generated ]
+| | | { Makefile.system#L243 }
+| | ----- (Makefile_kernel.conf) [ temporary Makefile.conf during DYNAMIC_ARCH builds ]
+| |
+| |----- Makefile.rule # defaults for build options that can be given on the make command line
+| |
+| |----- Makefile.$(ARCH) # architecture-specific compiler options and OpenBLAS buffer size values
+|
+|~~~~~ exports/
+|
+|~~~~~ test/
+|
+|~~~~~ utest/
+|
+|~~~~~ ctest/
+|
+|~~~~~ cpp_thread_test/
+|
+|~~~~~ kernel/
+|
+|~~~~~ ${SUBDIRS}
+|
+|~~~~~ ${BLASDIRS}
+|
+|~~~~~ ${NETLIB_LAPACK_DIR}{,/timing,/testing/{EIG,LIN}}
+|
+|~~~~~ relapack/
+```
+
+## Important Variables
+
+Most of the tunable variables are found in [Makefile.rule](https://github.com/xianyi/OpenBLAS/blob/develop/Makefile.rule), along with their detailed descriptions.
+Most of the variables are detected automatically in [Makefile.prebuild](https://github.com/xianyi/OpenBLAS/blob/develop/Makefile.prebuild), if they are not set in the environment.
+
+### CPU related
+```
+ARCH - Target architecture (eg. x86_64)
+TARGET - Target CPU architecture, in case of DYNAMIC_ARCH=1 means library will not be usable on less capable CPUs
+TARGET_CORE - TARGET_CORE will override TARGET internally during each cpu-specific cycle of the build for DYNAMIC_ARCH
+DYNAMIC_ARCH - For building library for multiple TARGETs (does not lose any optimizations, but increases library size)
+DYNAMIC_LIST - optional user-provided subset of the DYNAMIC_CORE list in Makefile.system
+```
+
+### Toolchain related
+```
+CC - TARGET C compiler used for compilation (can be cross-toolchains)
+FC - TARGET Fortran compiler used for compilation (can be cross-toolchains, set NOFORTRAN=1 if used cross-toolchain has no fortran compiler)
+AR, AS, LD, RANLIB - TARGET toolchain helpers used for compilation (can be cross-toolchains)
+
+HOSTCC - compiler of build machine, needed to create proper config files for target architecture
+HOST_CFLAGS - flags for build machine compiler
+```
+
+### Library related
+```
+BINARY - 32/64 bit library
+
+BUILD_SHARED - Create shared library
+BUILD_STATIC - Create static library
+
+QUAD_PRECISION - enable support for IEEE quad precision [ largely unimplemented leftover from GotoBLAS, do not use ]
+EXPRECISION - Obsolete option to use float80 of SSE on BSD-like systems
+INTERFACE64 - Build with 64bit integer representations to support large array index values [ incompatible with standard API ]
+
+BUILD_SINGLE - build the single-precision real functions of BLAS [and optionally LAPACK]
+BUILD_DOUBLE - build the double-precision real functions
+BUILD_COMPLEX - build the single-precision complex functions
+BUILD_COMPLEX16 - build the double-precision complex functions
+(all four types are included in the build by default when none was specifically selected)
+
+BUILD_BFLOAT16 - build the "half precision brainfloat" real functions
+
+USE_THREAD - Use a multithreading backend (default to pthread)
+USE_LOCKING - implement locking for thread safety even when USE_THREAD is not set (so that the singlethreaded library can
+ safely be called from multithreaded programs)
+USE_OPENMP - Use OpenMP as multithreading backend
+NUM_THREADS - define this to the maximum number of parallel threads you expect to need (defaults to the number of cores in the build cpu)
+NUM_PARALLEL - define this to the number of OpenMP instances that your code may use for parallel calls into OpenBLAS (default 1,see below)
+
+```
+
+
+OpenBLAS uses a fixed set of memory buffers internally, used for communicating and compiling partial results from individual threads.
+For efficiency, the management array structure for these buffers is sized at build time - this makes it necessary to know in advance how
+many threads need to be supported on the target system(s).
+With OpenMP, there is an additional level of complexity as there may be calls originating from a parallel region in the calling program. If OpenBLAS gets called from a single parallel region, it runs single-threaded automatically to avoid overloading the system by fanning out its own set of threads.
+In the case that an OpenMP program makes multiple calls from independent regions or instances in parallel, this default serialization is not
+sufficient as the additional caller(s) would compete for the original set of buffers already in use by the first call.
+So if multiple OpenMP runtimes call into OpenBLAS at the same time, then only one of them will be able to make progress while all the rest of them spin-wait for the one available buffer. Setting NUM_PARALLEL to the upper bound on the number of OpenMP runtimes that you can have in a process ensures that there are a sufficient number of buffer sets available
\ No newline at end of file
diff --git a/docs/ci.md b/docs/ci.md
new file mode 100644
index 0000000000..6d6112cb26
--- /dev/null
+++ b/docs/ci.md
@@ -0,0 +1,56 @@
+# CI jobs
+
+| Arch|Target CPU|OS|Build system|XComp to|C Compiler|Fortran Compiler|threading|DYN_ARCH|INT64|Libraries| CI Provider| CPU count|
+| ------------|---|---|-----------|-------------|----------|----------------|------|------------|----------|-----------|----------|-------|
+| x86_64 |Intel 32bit|Windows|CMAKE/VS2015| -|mingw6.3| - | pthreads | - | - | static | Appveyor| |
+| x86_64 |Intel |Windows|CMAKE/VS2015| -|mingw5.3| - | pthreads | - | - | static | Appveyor| |
+| x86_64 |Intel |Centos5|gmake | -|gcc 4.8 |gfortran| pthreads | + | - | both | Azure | |
+| x86_64 |SDE (SkylakeX)|Ubuntu| CMAKE| - | gcc | gfortran | pthreads | - | - | both | Azure | |
+| x86_64 |Haswell/ SkylakeX|Windows|CMAKE/VS2017| - | VS2017| - | | - | - | static | Azure | |
+| x86_64 | " | Windows|mingw32-make| - |gcc | gfortran | | list | - | both | Azure | |
+| x86_64 | " |Windows|CMAKE/Ninja| - |LLVM | - | | - | - | static | Azure | |
+| x86_64 | " |Windows|CMAKE/Ninja| - |LLVM | flang | | - | - | static | Azure | |
+| x86_64 | " |Windows|CMAKE/Ninja| - |VS2022| flang* | | - | - | static | Azure | |
+| x86_64 | " |macOS11|gmake | - | gcc-10|gfortran| OpenMP | + | - | both | Azure | |
+| x86_64 | " |macOS11|gmake | - | gcc-10|gfortran| none | - | - | both | Azure | |
+| x86_64 | " |macOS12|gmake | - | gcc-12|gfortran|pthreads| - | - | both | Azure | |
+| x86_64 | " |macOS11|gmake | - | llvm | - | OpenMP | + | - | both | Azure | |
+| x86_64 | " |macOS11|CMAKE | - | llvm | - | OpenMP | no_avx512 | - | static | Azure | |
+| x86_64 | " |macOS11|CMAKE | - | gcc-10| gfortran| pthreads | list | - | shared | Azure | |
+| x86_64 | " |macOS11|gmake | - | llvm | ifort | pthreads | - | - | both | Azure | |
+| x86_64 | " |macOS11|gmake |arm| AndroidNDK-llvm | - | | - | - | both | Azure | |
+| x86_64 | " |macOS11|gmake |arm64| XCode 12.4 | - | | + | - | both | Azure | |
+| x86_64 | " |macOS11|gmake |arm | XCode 12.4 | - | | + | - | both | Azure | |
+| x86_64 | " |Alpine Linux(musl)|gmake| - | gcc | gfortran | pthreads | + | - | both | Azure | |
+| arm64 |Apple M1 |OSX |CMAKE/XCode| - | LLVM | - | OpenMP | - | - | static | Cirrus | |
+| arm64 |Apple M1 |OSX |CMAKE/Xcode| - | LLVM | - | OpenMP | - | + | static | Cirrus | |
+| arm64 |Apple M1 |OSX |CMAKE/XCode|x86_64| LLVM| - | - | + | - | static | Cirrus | |
+| arm64 |Neoverse N1|Linux |gmake | - |gcc10.2| -| pthreads| - | - | both | Cirrus | |
+| arm64 |Neoverse N1|Linux |gmake | - |gcc10.2| -| pthreads| - | + | both | Cirrus | |
+| arm64 |Neoverse N1|Linux |gmake |- |gcc10.2| -| OpenMP | - | - | both |Cirrus | 8 |
+| x86_64 | Ryzen| FreeBSD |gmake | - | gcc12.2|gfortran| pthreads| - | - | both | Cirrus | |
+| x86_64 | Ryzen| FreeBSD |gmake | | gcc12.2|gfortran| pthreads| - | + | both | Cirrus | |
+| x86_64 |GENERIC |QEMU |gmake| mips64 | gcc | gfortran | pthreads | - | - | static | Github | |
+| x86_64 |SICORTEX |QEMU |gmake| mips64 | gcc | gfortran | pthreads | - | - | static | Github | |
+| x86_64 |I6400 |QEMU |gmake| mips64 | gcc | gfortran | pthreads | - | - | static | Github | |
+| x86_64 |P6600 |QEMU |gmake| mips64 | gcc | gfortran | pthreads | - | - | static | Github | |
+| x86_64 |I6500 |QEMU |gmake| mips64 | gcc | gfortran | pthreads | - | - | static | Github | |
+| x86_64 |Intel |Ubuntu |CMAKE| - | gcc-11.3 | gfortran | pthreads | + | - | static | Github | |
+| x86_64 |Intel |Ubuntu |gmake| - | gcc-11.3 | gfortran | pthreads | + | - | both | Github | |
+| x86_64 |Intel |Ubuntu |CMAKE| - | gcc-11.3 | flang-classic | pthreads | + | - | static | Github | |
+| x86_64 |Intel |Ubuntu |gmake| - | gcc-11.3 | flang-classic | pthreads | + | - | both | Github | |
+| x86_64 |Intel |macOS12 | CMAKE| - | AppleClang 14 | gfortran | pthreads | + | - | static | Github | |
+| x86_64 |Intel |macOS12 | gmake| - | AppleClang 14 | gfortran | pthreads | + | - | both | Github | |
+| x86_64 |Intel |Windows2022 | CMAKE/Ninja| - | mingw gcc 13 | gfortran | | + | - | static | Github | |
+| x86_64 |Intel |Windows2022 | CMAKE/Ninja| - | mingw gcc 13 | gfortran | | + | + | static | Github | |
+| x86_64 |Intel 32bit|Windows2022 | CMAKE/Ninja| - | mingw gcc 13 | gfortran | | + | - | static | Github | |
+| x86_64 |Intel |Windows2022 | CMAKE/Ninja| - | LLVM 16 | - | | + | - | static | Github | |
+| x86_64 |Intel | Windows2022 |CMAKE/Ninja| - | LLVM 16 | - | | + | + | static | Github | |
+| x86_64 |Intel | Windows2022 |CMAKE/Ninja| - | gcc 13| - | | + | - | static | Github | |
+| x86_64 |Intel| Ubuntu |gmake |mips64|gcc|gfortran|pthreads|+|-|both|Github| |
+| x86_64 |generic|Ubuntu |gmake |riscv64|gcc|gfortran|pthreads|-|-|both|Github| |
+| x86_64 |Intel|Ubuntu |gmake |mips32|gcc|gfortran|pthreads|-|-|both|Github | |
+| x86_64 |Intel|Ubuntu |gmake |ia64|gcc|gfortran|pthreads|-|-|both|Github| |
+| x86_64 |C910V|QEmu |gmake |riscv64|gcc|gfortran|pthreads|-|-|both|Github| |
+|power |pwr9| Ubuntu |gmake | - |gcc|gfortran|OpenMP|-|-|both|OSUOSL| |
+|zarch |z14 | Ubuntu |gmake | - |gcc|gfortran|OpenMP|-|-|both|OSUOSL| |
diff --git a/docs/developers.md b/docs/developers.md
new file mode 100644
index 0000000000..08443b7e47
--- /dev/null
+++ b/docs/developers.md
@@ -0,0 +1,143 @@
+# Developer manual
+
+## Source codes Layout
+
+```
+OpenBLAS/
+├── benchmark Benchmark codes for BLAS
+├── cmake CMakefiles
+├── ctest Test codes for CBLAS interfaces
+├── driver Implemented in C
+│ ├── level2
+│ ├── level3
+│ ├── mapper
+│ └── others Memory management, threading, etc
+├── exports Generate shared library
+├── interface Implement BLAS and CBLAS interfaces (calling driver or kernel)
+│ ├── lapack
+│ └── netlib
+├── kernel Optimized assembly kernels for CPU architectures
+│ ├── alpha Original GotoBLAS kernels for DEC Alpha
+│ ├── arm ARMV5,V6,V7 kernels (including generic C codes used by other architectures)
+│ ├── arm64 ARMV8
+│ ├── generic General kernel codes written in plain C, parts used by many architectures.
+│ ├── ia64 Original GotoBLAS kernels for Intel Itanium
+│ ├── mips
+│ ├── mips64
+│ ├── power
+| ├── riscv64
+| ├── simd Common code for Universal Intrinsics, used by some x86_64 and arm64 kernels
+│ ├── sparc
+│ ├── x86
+│ ├── x86_64
+│ └── zarch
+├── lapack Optimized LAPACK codes (replacing those in regular LAPACK)
+│ ├── getf2
+│ ├── getrf
+│ ├── getrs
+│ ├── laswp
+│ ├── lauu2
+│ ├── lauum
+│ ├── potf2
+│ ├── potrf
+│ ├── trti2
+│ ├── trtri
+│ └── trtrs
+├── lapack-netlib LAPACK codes from netlib reference implementation
+├── reference BLAS Fortran reference implementation (unused)
+├── relapack Elmar Peise's recursive LAPACK (implemented on top of regular LAPACK)
+├── test Test codes for BLAS
+└── utest Regression test
+
+```
+
+A call tree for `dgemm` is as following.
+
+```
+interface/gemm.c
+ │
+driver/level3/level3.c
+ │
+gemm assembly kernels at kernel/
+```
+
+To find the kernel currently used for a particular supported cpu, please check the corresponding `kernel/$(ARCH)/KERNEL.$(CPU)` file.
+
+Here is an example for `kernel/x86_64/KERNEL.HASWELL`
+
+```
+...
+DTRMMKERNEL = dtrmm_kernel_4x8_haswell.c
+DGEMMKERNEL = dgemm_kernel_4x8_haswell.S
+...
+```
+According to the above `KERNEL.HASWELL`, OpenBLAS Haswell dgemm kernel file is `dgemm_kernel_4x8_haswell.S`.
+
+## Optimizing GEMM for a given hardware
+
+Read the Goto paper to understand the algorithm.
+
+Goto, Kazushige; van de Geijn, Robert A. (2008). ["Anatomy of High-Performance Matrix Multiplication"](http://delivery.acm.org/10.1145/1360000/1356053/a12-goto.pdf?ip=155.68.162.54&id=1356053&acc=ACTIVE%20SERVICE&key=A79D83B43E50B5B8%2EF070BBE7E45C3F17%2E4D4702B0C3E38B35%2E4D4702B0C3E38B35&__acm__=1517932837_edfe766f1e295d9a7830812371e1d173). ACM Transactions on Mathematical Software 34 (3): Article 12
+(The above link is available only to ACM members, but this and many related papers is also available on the pages
+of van de Geijn's FLAME project, http://www.cs.utexas.edu/~flame/web/FLAMEPublications.html )
+
+The `driver/level3/level3.c` is the implementation of Goto's algorithm. Meanwhile, you can look at `kernel/generic/gemmkernel_2x2.c`, which is a naive `2x2` register blocking gemm kernel in C.
+
+Then,
+* Write optimized assembly kernels. consider instruction pipeline, available registers, memory/cache accessing
+* Tuning cache block size, `Mc`, `Kc`, and `Nc`
+
+Note that not all of the cpu-specific parameters in param.h are actively used in algorithms. DNUMOPT only appears as a scale factor in profiling output of the level3 syrk interface code, while its counterpart SNUMOPT (aliased as NUMOPT in common.h) is not used anywhere at all.
+SYMV_P is only used in the generic kernels for the symv and chemv/zhemv functions - at least some of those are usually overridden by cpu-specific implementations, so if you start by cloning the existing implementation for a related cpu you need to check its KERNEL file to see if tuning SYMV_P would have any effect at all.
+GEMV_UNROLL is only used by some older x86_64 kernels, so not all sections in param.h define it.
+Similarly, not all of the cpu parameters like L2 or L3 cache sizes are necessarily used in current kernels for a given model - by all indications the cpu identification code was imported from some other project originally.
+
+## Run OpenBLAS Test
+
+We use netlib blas test, cblas test, and LAPACK test. Meanwhile, we use [BLAS-Tester](https://github.com/xianyi/BLAS-Tester), a modified test tool from ATLAS.
+
+* Run `test` and `ctest` at OpenBLAS. e.g. `make test` or `make ctest`.
+* Run regression test `utest` at OpenBLAS.
+* Run LAPACK test. e.g. `make lapack-test`.
+* Clone [BLAS-Tester](https://github.com/xianyi/BLAS-Tester), which can compare the OpenBLAS result with netlib reference BLAS.
+
+The project makes use of several Continuous Integration (CI) services conveniently interfaced with github to automatically check compilability on a number of platforms.
+Lastly, the testsuites included with "numerically heavy" projects like Julia, NumPy, Octave or QuantumEspresso can be used for regression testing.
+
+## Benchmarking
+
+Several simple C benchmarks for performance testing individual BLAS functions are available in the `benchmark` folder, and its `scripts` subdirectory contains corresponding versions for Python, Octave and R.
+Other options include
+
+* https://github.com/RoyiAvital/MatlabJuliaMatrixOperationsBenchmark (various matrix operations in Julia and Matlab)
+* https://github.com/mmperf/mmperf/ (single-core matrix multiplication)
+
+## Adding autodetection support for a new revision or variant of a supported cpu
+
+Especially relevant for x86_64, a new cpu model may be a "refresh" (die shrink and/or different number of cores) within an existing
+model family without significant changes to its instruction set. (e.g. Intel Skylake, Kaby Lake etc. still are fundamentally Haswell,
+low end Goldmont etc. are Nehalem). In this case, compilation with the appropriate older TARGET will already lead to a satisfactory build.
+
+To achieve autodetection of the new model, its CPUID (or an equivalent identifier) needs to be added in the `cpuid_.c`
+relevant for its general architecture, with the returned name for the new type set appropriately. For x86 which has the most complex
+cpuid file, there are two functions that need to be edited - get_cpuname() to return e.g. CPUTYPE_HASWELL and get_corename() for the (broader)
+core family returning e.g. CORE_HASWELL. (This information ends up in the Makefile.conf and config.h files generated by `getarch`. Failure to
+set either will typically lead to a missing definition of the GEMM_UNROLL parameters later in the build, as `getarch_2nd` will be unable to
+find a matching parameter section in param.h.)
+
+For architectures where "DYNAMIC_ARCH" builds are supported, a similar but simpler code section for the corresponding runtime detection of the cpu exists in `driver/others/dynamic.c` (for x86) and `driver/others/dynamic_.c` for other architectures.
+Note that for x86 the CPUID is compared after splitting it into its family, extended family, model and extended model parts, so the single decimal
+number returned by Linux in /proc/cpuinfo for the model has to be converted back to hexadecimal before splitting into its constituent
+digits, e.g. 142 = 8E , translates to extended model 8, model 14.
+
+## Adding dedicated support for a new cpu model
+
+Usually it will be possible to start from an existing model, clone its KERNEL configuration file to the new name to use for this TARGET and eventually replace individual kernels with versions better suited for peculiarities of the new cpu model. In addition, it is necessary to add
+(or clone at first) the corresponding section of GEMM_UNROLL parameters in the toplevel param.h, and possibly to add definitions such as USE_TRMM
+(governing whether TRMM functions use the respective GEMM kernel or a separate source file) to the Makefiles (and CMakeLists.txt) in the kernel
+directory. The new cpu name needs to be added to TargetLists.txt and the cpu autodetection code used by the `getarch` helper program - contained in
+the `cpuid_.c` file amended to include the CPUID (or equivalent) information processing required (see preceding section).
+
+## Adding support for an entirely new architecture
+
+This endeavour is best started by cloning the entire support structure for 32bit ARM, and within that the ARMV5 cpu in particular as this is implemented through plain C kernels only. An example providing a convenient "shopping list" can be seen in pull request #1526.
diff --git a/docs/distributing.md b/docs/distributing.md
index 1e6372a288..ff481b048d 100644
--- a/docs/distributing.md
+++ b/docs/distributing.md
@@ -1,11 +1,12 @@
-# Guidance for redistributing OpenBLAS
-
-*We note that this document contains recommendations only - packagers and other
-redistributors are in charge of how OpenBLAS is built and distributed in their
-systems, and may have good reasons to deviate from the guidance given on this
-page. These recommendations are aimed at general packaging systems, with a user
-base that typically is large, open source (or freely available at least), and
-doesn't behave uniformly or that the packager is directly connected with.*
+# Redistributing OpenBLAS
+
+!!! note
+ This document contains recommendations only - packagers and other
+ redistributors are in charge of how OpenBLAS is built and distributed in their
+ systems, and may have good reasons to deviate from the guidance given on this
+ page. These recommendations are aimed at general packaging systems, with a user
+ base that typically is large, open source (or freely available at least), and
+ doesn't behave uniformly or that the packager is directly connected with.*
OpenBLAS has a large number of build-time options which can be used to change
how it behaves at runtime, how artifacts or symbols are named, etc. Variation
diff --git a/docs/extensions.md b/docs/extensions.md
new file mode 100644
index 0000000000..3502f6487a
--- /dev/null
+++ b/docs/extensions.md
@@ -0,0 +1,28 @@
+* BLAS-like extensions
+
+| Routine | Data Types | Description |
+| ------------- |:------------- | :---------------|
+| ?axpby | s,d,c,z | like axpy with a multiplier for y |
+| ?gemm3m | c,z | gemm3m |
+| ?imatcopy | s,d,c,z | in-place transpositon/copying |
+| ?omatcopy | s,d,c,z | out-of-place transpositon/copying |
+| ?geadd | s,d,c,z | matrix add |
+| ?gemmt | s,d,c,z | gemm but only a triangular part updated|
+
+* BLAS-like and Conversion functions for bfloat16 (available when OpenBLAS was compiled with BUILD_BFLOAT16=1)
+ * `void cblas_sbstobf16` converts a float array to an array of bfloat16 values by rounding
+ * `void cblas_sbdtobf16` converts a double array to an array of bfloat16 values by rounding
+ * `void cblas_sbf16tos` converts a bfloat16 array to an array of floats
+ * `void cblas_dbf16tod` converts a bfloat16 array to an array of doubles
+ * `float cblas_sbdot` computes the dot product of two bfloat16 arrays
+ * `void cblas_sbgemv` performs the matrix-vector operations of GEMV with the input matrix and X vector as bfloat16
+ * `void cblas_sbgemm` performs the matrix-matrix operations of GEMM with both input arrays containing bfloat16
+
+* Utility functions
+ * openblas_get_num_threads
+ * openblas_set_num_threads
+ * `int openblas_get_num_procs(void)` returns the number of processors available on the system (may include "hyperthreading cores")
+ * `int openblas_get_parallel(void)` returns 0 for sequential use, 1 for platform-based threading and 2 for OpenMP-based threading
+ * `char * openblas_get_config()` returns the options OpenBLAS was built with, something like `NO_LAPACKE DYNAMIC_ARCH NO_AFFINITY Haswell`
+ * `int openblas_set_affinity(int thread_index, size_t cpusetsize, cpu_set_t *cpuset)` sets the cpu affinity mask of the given thread to the provided cpuset. (Only available under Linux, with semantics identical to pthread_setaffinity_np)
+
diff --git a/docs/faq.md b/docs/faq.md
new file mode 100644
index 0000000000..699042d512
--- /dev/null
+++ b/docs/faq.md
@@ -0,0 +1,345 @@
+---
+title: FAQ
+---
+
+
+
+[TOC]
+
+## General questions
+
+### What is BLAS? Why is it important?
+
+[BLAS](https://en.wikipedia.org/wiki/Basic_Linear_Algebra_Subprograms) stands for Basic Linear Algebra Subprograms. BLAS provides standard interfaces for [linear algebra](https://en.wikipedia.org/wiki/Linear_algebra), including BLAS1 (vector-vector operations), BLAS2 (matrix-vector operations), and BLAS3 (matrix-matrix operations). In general, BLAS is the computational kernel ("the bottom of the food chain") in linear algebra or scientific applications. Thus, if BLAS implementation is highly optimized, the whole application can get substantial benefit.
+
+### What functions are there and how can I call them from my C code?
+
+As BLAS is a standardized interface, you can refer to the documentation of its reference implementation at [netlib.org](http://netlib.org/blas/index.html#_blas_routines). Calls from C go through its CBLAS interface,
+so your code will need to include the provided cblas.h in addition to linking with -lopenblas.
+A single-precision matrix multiplication will look like
+```
+#include
+...
+cblas_sgemm(CblasRowMajor, CblasNoTrans, CblasNoTrans, M, N, K, 1.0, A, K, B, N, 0.0, result, N);
+```
+where M,N,K are the dimensions of your data - see https://petewarden.files.wordpress.com/2015/04/gemm_corrected.png
+ (This image is part of an article on GEMM in the context of deep learning that is well worth reading in full -
+https://petewarden.com/2015/04/20/why-gemm-is-at-the-heart-of-deep-learning/)
+
+### What is OpenBLAS? Why did you create this project?
+
+OpenBLAS is an open source BLAS library forked from the GotoBLAS2-1.13 BSD version. Since Mr. Kazushige Goto left TACC, GotoBLAS is no longer being maintained. Thus, we created this project to continue developing OpenBLAS/GotoBLAS.
+
+### What's the difference between OpenBLAS and GotoBLAS?
+
+In OpenBLAS 0.2.0, we optimized level 3 BLAS on the Intel Sandy Bridge 64-bit OS. We obtained a performance comparable with that Intel MKL.
+
+We optimized level 3 BLAS performance on the [ICT Loongson-3A](http://en.wikipedia.org/wiki/Loongson) CPU. It outperformed GotoBLAS by 135% in a single thread and 120% in 4 threads.
+
+We fixed some GotoBLAS bugs including a SEGFAULT bug on the new Linux kernel, MingW32/64 bugs, and a ztrmm computing error bug on Intel Nehalem.
+
+We also added some minor features, e.g. supporting "make install", compiling without LAPACK and upgrading the LAPACK version to 3.4.2.
+
+You can find the full list of modifications in Changelog.txt.
+
+### Where do parameters GEMM_P, GEMM_Q, GEMM_R come from?
+
+The detailed explanation is probably in the original publication authored by Kazushige Goto - Goto, Kazushige; van de Geijn, Robert A; Anatomy of high-performance matrix multiplication. ACM Transactions on Mathematical Software (TOMS). Volume 34 Issue 3, May 2008
+While this article is paywalled and too old for preprints to be available on arxiv.org, more recent
+publications like https://arxiv.org/pdf/1609.00076 contain at least a brief description of the algorithm.
+In practice, the values are derived by experimentation to yield the block sizes that give the highest performance. A general rule of thumb for selecting a starting point seems to be that PxQ is about half the size of L2 cache.
+
+### How can I report a bug?
+
+Please file an issue at this [issue page](https://github.com/xianyi/OpenBLAS/issues) or send mail to the [OpenBLAS mailing list](https://groups.google.com/forum/#!forum/openblas-users).
+
+Please provide the following information: CPU, OS, compiler, and OpenBLAS compiling flags (Makefile.rule). In addition, please describe how to reproduce this bug.
+
+### How to reference OpenBLAS.
+
+You can reference our papers in [this page](about.md#publications). Alternatively, you can cite the OpenBLAS homepage http://www.openblas.net.
+
+### How can I use OpenBLAS in multi-threaded applications?
+
+If your application is already multi-threaded, it will conflict with OpenBLAS multi-threading. Thus, you must set OpenBLAS to use single thread as following.
+
+ * export OPENBLAS_NUM_THREADS=1 in the environment variables.
+Or
+ * Call openblas_set_num_threads(1) in the application on runtime.
+Or
+ * Build OpenBLAS single thread version, e.g. make USE_THREAD=0 USE_LOCKING=1 (see comment below)
+
+If the application is parallelized by OpenMP, please build OpenBLAS with USE_OPENMP=1
+
+With the increased availability of fast multicore hardware it has unfortunately become clear that the thread management provided by OpenMP is not sufficient to prevent race conditions when OpenBLAS was built single-threaded by USE_THREAD=0 and there are concurrent calls from multiple threads to OpenBLAS functions. In this case,
+it is vital to also specify USE_LOCKING=1 (introduced with OpenBLAS 0.3.7).
+
+### Does OpenBLAS support sparse matrices and/or vectors ?
+
+OpenBLAS implements only the standard (dense) BLAS and LAPACK functions with a select few extensions popularized by Intel's MKL. Some
+cases can probably be made to work using e.g. GEMV or AXPBY, in general using a dedicated package like SuiteSparse (which can make use of OpenBLAS or equivalent for standard operations) is recommended.
+
+### What support is there for recent PC hardware ? What about GPU ?
+
+ As OpenBLAS is a volunteer project, it can take some time for the combination of a capable developer,
+free time, and particular hardware to come along, even for relatively common processors. Starting from 0.3.1, support
+is being added for AVX 512 (TARGET=SKYLAKEX), requiring a compiler that is capable of handling avx512 intrinsics.
+While AMD Zen processors should be autodetected by the build system, as of 0.3.2 they are still handled exactly
+like Intel Haswell. There once was an effort to build an OpenCL implementation that one can still find at https://github.com/xianyi/clOpenBLAS , but work on this stopped in 2015.
+
+### How about the level 3 BLAS performance on Intel Sandy Bridge?
+
+We obtained a performance comparable with Intel MKL that actually outperformed Intel MKL in some cases.
+Here is the result of the DGEMM subroutine's performance on Intel Core i5-2500K Windows 7 SP1 64-bit:
+![Single Thread DGEMM Performance on Intel Desktop Sandy Bridge](http://xianyi.github.com/OpenBLAS/dgemm_snb_1thread.png)
+
+
+
+## OS and Compiler
+
+### How can I call an OpenBLAS function in Microsoft Visual Studio?
+
+Please read [this page](install.md#visual-studio).
+
+### How can I use CBLAS and LAPACKE without C99 complex number support (e.g. in Visual Studio)?
+
+Zaheer has fixed this bug. You can now use the structure instead of C99 complex numbers. Please read [this issue page](http://github.com/xianyi/OpenBLAS/issues/95) for details.
+
+[This issue](https://github.com/xianyi/OpenBLAS/issues/305) is for using LAPACKE in Visual Studio.
+
+### I get a SEGFAULT with multi-threading on Linux. What's wrong?
+
+This may be related to a bug in the Linux kernel 2.6.32 (?). Try applying the patch segaults.patch to disable mbind using
+
+ patch < segfaults.patch
+
+and see if the crashes persist. Note that this patch will lead to many compiler warnings.
+
+### When I make the library, there is no such instruction: `xgetbv' error. What's wrong?
+
+Please use GCC 4.4 and later version. This version supports xgetbv instruction. If you use the library for Sandy Bridge with AVX instructions, you should use GCC 4.6 and later version.
+
+On Mac OS X, please use Clang 3.1 and later version. For example, make CC=clang
+
+For the compatibility with old compilers (GCC < 4.4), you can enable NO_AVX flag. For example, make NO_AVX=1
+
+### My build fails due to the linker error "multiple definition of `dlamc3_'". What is the problem?
+
+This linker error occurs if GNU patch is missing or if our patch for LAPACK fails to apply.
+
+Background: OpenBLAS implements optimized versions of some LAPACK functions, so we need to disable the reference versions. If this process fails we end with duplicated implementations of the same function.
+
+### My build worked fine and passed all tests, but running `make lapack-test` ends with segfaults
+
+Some of the LAPACK tests, notably in xeigtstz, try to allocate around 10MB on the stack. You may need to use
+`ulimit -s` to change the default limits on your system to allow this.
+
+### How could I disable OpenBLAS threading affinity on runtime?
+
+You can define the OPENBLAS_MAIN_FREE or GOTOBLAS_MAIN_FREE environment variable to disable threading affinity on runtime. For example, before the running,
+```
+export OPENBLAS_MAIN_FREE=1
+```
+
+Alternatively, you can disable affinity feature with enabling NO_AFFINITY=1 in Makefile.rule.
+
+### How to solve undefined reference errors when statically linking against libopenblas.a
+
+On Linux, if OpenBLAS was compiled with threading support (`USE_THREAD=1` by default), custom programs statically linked against `libopenblas.a` should also link to the pthread library e.g.:
+
+```
+gcc -static -I/opt/OpenBLAS/include -L/opt/OpenBLAS/lib -o my_program my_program.c -lopenblas -lpthread
+```
+
+Failing to add the `-lpthread` flag will cause errors such as:
+
+```
+/opt/OpenBLAS/libopenblas.a(memory.o): In function `_touch_memory':
+memory.c:(.text+0x15): undefined reference to `pthread_mutex_lock'
+memory.c:(.text+0x41): undefined reference to `pthread_mutex_unlock'
+/opt/OpenBLAS/libopenblas.a(memory.o): In function `openblas_fork_handler':
+memory.c:(.text+0x440): undefined reference to `pthread_atfork'
+/opt/OpenBLAS/libopenblas.a(memory.o): In function `blas_memory_alloc':
+memory.c:(.text+0x7a5): undefined reference to `pthread_mutex_lock'
+memory.c:(.text+0x825): undefined reference to `pthread_mutex_unlock'
+/opt/OpenBLAS/libopenblas.a(memory.o): In function `blas_shutdown':
+memory.c:(.text+0x9e1): undefined reference to `pthread_mutex_lock'
+memory.c:(.text+0xa6e): undefined reference to `pthread_mutex_unlock'
+/opt/OpenBLAS/libopenblas.a(blas_server.o): In function `blas_thread_server':
+blas_server.c:(.text+0x273): undefined reference to `pthread_mutex_lock'
+blas_server.c:(.text+0x287): undefined reference to `pthread_mutex_unlock'
+blas_server.c:(.text+0x33f): undefined reference to `pthread_cond_wait'
+/opt/OpenBLAS/libopenblas.a(blas_server.o): In function `blas_thread_init':
+blas_server.c:(.text+0x416): undefined reference to `pthread_mutex_lock'
+blas_server.c:(.text+0x4be): undefined reference to `pthread_mutex_init'
+blas_server.c:(.text+0x4ca): undefined reference to `pthread_cond_init'
+blas_server.c:(.text+0x4e0): undefined reference to `pthread_create'
+blas_server.c:(.text+0x50f): undefined reference to `pthread_mutex_unlock'
+...
+```
+
+The `-lpthread` is not required when linking dynamically against `libopenblas.so.0`.
+
+### Building OpenBLAS for Haswell or Dynamic Arch on RHEL-6, CentOS-6, Rocks-6.1,Scientific Linux 6
+
+Minimum requirement to actually run AVX2-enabled software like OpenBLAS is kernel-2.6.32-358, shipped with EL6U4 in 2013
+
+The `binutils` package from RHEL6 does not know the instruction `vpermpd` or any other AVX2 instruction. You can download a newer `binutils` package from Enterprise Linux software collections, following instructions here:
+https://www.softwarecollections.org/en/scls/rhscl/devtoolset-3/
+After configuring repository you need to install devtoolset-?-binutils to get later usable binutils package
+```
+$ yum search devtoolset-\?-binutils
+$ sudo yum install devtoolset-3-binutils
+```
+once packages are installed check the correct name for SCL redirection set to enable new version
+```
+$ scl --list
+devtoolset-3
+rh-python35
+```
+Now just prefix your build commands with respective redirection:
+```
+$ scl enable devtoolset-3 -- make DYNAMIC_ARCH=1
+```
+AVX-512 (SKYLAKEX) support requires devtoolset-8-gcc-gfortran (which exceeds formal requirement for AVX-512 because of packaging issues in earlier packages) which dependency-installs respective binutils and gcc or later and kernel 2.6.32-696 aka 6U9 or 3.10.0-327 aka 7U2 or later to run. In absence of abovementioned toolset OpenBLAS will fall back to AVX2 instructions in place of AVX512 sacrificing some performance on SKYLAKE-X platform.
+
+### Building OpenBLAS in QEMU/KVM/XEN
+
+By default, QEMU reports the CPU as "QEMU Virtual CPU version 2.2.0", which shares CPUID with existing 32bit CPU even in 64bit virtual machine, and OpenBLAS recognizes it as PENTIUM2. Depending on the exact combination of CPU features the hypervisor choses to expose, this may not correspond to any CPU that exists, and OpenBLAS will error when trying to build. To fix this, pass `-cpu host` or `-cpu passthough` to QEMU, or another CPU model.
+Similarly, the XEN hypervisor may not pass through all features of the host cpu while reporting the cpu type itself correctly, which can
+lead to compiler error messages about an "ABI change" when compiling AVX512 code. Again changing the Xen configuration by running e.g.
+"xen-cmdline --set-xen cpuid=avx512" should get around this (as would building OpenBLAS for an older cpu lacking that particular feature, e.g. TARGET=HASWELL)
+
+### Building OpenBLAS on POWER fails with IBM XL
+
+ Trying to compile OpenBLAS with IBM XL ends with error messages about unknown register names
+like "vs32". Working around these by using known alternate names for the vector registers only leads to another assembler error about unsupported constraints. This is a known deficiency in the IBM compiler at least up to and including 16.1.0 (and in the POWER version of clang, from which it is derived) - use gcc instead. (See issues #1078
+and #1699 for related discussions)
+
+### Replacing system BLAS/updating APT OpenBLAS in Mint/Ubuntu/Debian
+
+Debian and Ubuntu LTS versions provide OpenBLAS package which is not updated after initial release, and under circumstances one might want to use more recent version of OpenBLAS e.g. to get support for newer CPUs
+
+Ubuntu and Debian provides 'alternatives' mechanism to comfortably replace BLAS and LAPACK libraries systemwide.
+
+After successful build of OpenBLAS (with DYNAMIC_ARCH set to 1)
+
+```
+$ make clean
+$ make DYNAMIC_ARCH=1
+$ sudo make DYNAMIC_ARCH=1 install
+```
+One can redirect BLAS and LAPACK alternatives to point to source-built OpenBLAS
+First you have to install NetLib LAPACK reference implementation (to have alternatives to replace):
+```
+$ sudo apt install libblas-dev liblapack-dev
+```
+Then we can set alternative to our freshly-built library:
+```
+$ sudo update-alternatives --install /usr/lib/libblas.so.3 libblas.so.3 /opt/OpenBLAS/lib/libopenblas.so.0 41 \
+ --slave /usr/lib/liblapack.so.3 liblapack.so.3 /opt/OpenBLAS/lib/libopenblas.so.0
+```
+Or remove redirection and switch back to APT-provided BLAS implementation order:
+```
+$ sudo update-alternatives --remove libblas.so.3 /opt/OpenBLAS/lib/libopenblas.so.0
+```
+In recent versions of the distributions, the installation path for the libraries has been changed to include the name of the host architecture, like /usr/lib/x86_64-linux-gnu/blas/libblas.so.3 or libblas.so.3.x86_64-linux-gnu. Use ```$ update-alternatives --display libblas.so.3```
+to find out what layout your system has.
+
+### I built OpenBLAS for use with some other software, but that software cannot find it
+
+Openblas installs as a single library named libopenblas.so, while some programs may be searching for a separate libblas.so and liblapack.so so you may need to create appropriate symbolic links (`ln -s libopenblas.so libblas.so;
+ln -s libopenblas.so liblapack.so`) or copies. Also make sure that the installation location (usually /opt/OpenBLAS/lib or /usr/local/lib) is among the library search paths of your system.
+
+### I included cblas.h in my program, but the compiler complains about a missing common.h or functions from it
+
+You probably tried to include a cblas.h that you simply copied from the OpenBLAS source, instead you need to run
+`make install` after building OpenBLAS and then use the modified cblas.h that this step builds in the installation
+path (usually either /usr/local/include, /opt/OpenBLAS/include or whatever you specified as PREFIX= on the `make install`)
+
+### Compiling OpenBLAS with gcc's -fbounds-check actually triggers aborts in programs
+
+This is due to different interpretations of the (informal) standard for passing characters as arguments between C and FORTRAN functions. As the method for storing text differs in the two languages, when C calls Fortran the text length is passed as an "invisible" additional parameter.
+Historically, this has not been required when the text is just a single character, so older code like the Reference-LAPACK bundled with OpenBLAS
+does not do it. Recently gcc's checking has changed to require it, but there is no consensus yet if and how the existing LAPACK (and many other codebases) should adapt. (And for actual compilation, gcc has mostly backtracked and provided compatibility options - hence the default build settings in the OpenBLAS Makefiles add -fno-optimize-sibling-calls to the gfortran options to prevent miscompilation with "affected" versions. See ticket 2154 in the issue tracker for more details and links)
+
+
+### Build fails with lots of errors about undefined ?GEMM_UNROLL_M
+
+Your cpu is apparently too new to be recognized by the build scripts, so they failed to assign appropriate parameters for the block algorithm.
+Do a `make clean` and try again with TARGET set to one of the cpu models listed in `TargetList.txt` - for x86_64 this will usually be HASWELL.
+
+### CMAKE/OSX: Build fails with 'argument list too long'
+
+This is a limitation in the maximum length of a command on OSX, coupled with how CMAKE works. You should be able to work around this
+by adding the option `-DCMAKE_Fortran_USE_RESPONSE_FILE_FOR_OBJECTS=1` to your CMAKE arguments.
+
+### Likely problems with AVX2 support in Docker Desktop for OSX
+
+There have been a few reports of wrong calculation results and build-time test failures when building in a container environment managed by the OSX version of Docker Desktop, which uses the xhyve virtualizer underneath. Judging from these reports, AVX2 support in xhyve appears to be subtly broken but a corresponding ticket in the xhyve issue tracker has not drawn any reaction or comment since 2019. Therefore it is strongly recommended to build OpenBLAS with the NO_AVX2=1 option when inside a container under (or for later use with) the Docker Desktop environment on Intel-based Apple hardware.
+
+## Usage
+
+### Program is Terminated. Because you tried to allocate too many memory regions
+
+In OpenBLAS, we mange a pool of memory buffers and allocate the number of buffers as the following.
+```
+#define NUM_BUFFERS (MAX_CPU_NUMBER * 2)
+```
+This error indicates that the program exceeded the number of buffers.
+
+Please build OpenBLAS with larger `NUM_THREADS`. For example, `make NUM_THREADS=32` or `make NUM_THREADS=64`.
+In `Makefile.system`, we will set `MAX_CPU_NUMBER=NUM_THREADS`.
+
+### How to choose TARGET manually at runtime when compiled with DYNAMIC_ARCH
+
+The environment variable which control the kernel selection is `OPENBLAS_CORETYPE` (see `driver/others/dynamic.c`)
+e.g. `export OPENBLAS_CORETYPE=Haswell`. And the function `char* openblas_get_corename()` returns the used target.
+
+### After updating the installed OpenBLAS, a program complains about "undefined symbol gotoblas"
+
+This symbol gets defined only when OpenBLAS is built with "make DYNAMIC_ARCH=1" (which is what distributors will choose to ensure support for more than just one CPU type).
+
+### How can I find out at runtime what options the library was built with ?
+
+OpenBLAS has two utility functions that may come in here:
+
+openblas_get_parallel() will return 0 for a single-threaded library, 1 if multithreading without OpenMP, 2 if built with USE_OPENMP=1
+
+openblas_get_config() will return a string containing settings such as USE64BITINT or DYNAMIC_ARCH that were active at build time, as well as the target cpu (or in case of a dynamic_arch build, the currently detected one).
+
+### After making OpenBLAS, I find that the static library is multithreaded, but the dynamic one is not ?
+
+The shared OpenBLAS library you built is probably working fine as well, but your program may be picking up a different (probably single-threaded) version from one of the standard system paths like /usr/lib on startup.
+Running `ldd /path/to/your/program` will tell you which library the linkage loader will actually use.
+
+Specifying the "correct" library location with the `-L` flag (like `-L /opt/OpenBLAS/lib`) when linking your program only defines which library will be used to see if all symbols _can_ be resolved, you will need to add an rpath entry to the binary (using `-Wl,rpath=/opt/OpenBLAS/lib`) to make it request searching that location. Alternatively, remove the "wrong old" library (if you can), or set LD_LIBRARY_PATH to the desired location before running your program.
+
+### I want to use OpenBLAS with CUDA in the HPL 2.3 benchmark code but it keeps looking for Intel MKL
+
+You need to edit file src/cuda/cuda_dgemm.c in the NVIDIA version of HPL, change the "handle2" and "handle" dlopen calls to use libopenblas.so instead of libmkl_intel_lp64.so, and add an trailing underscore in the dlsym lines for dgemm_mkl and dtrsm_mkl (like `dgemm_mkl = (void(*)())dlsym(handle, “dgemm_”);`)
+
+### Multithreaded OpenBLAS runs no faster or is even slower than singlethreaded on my ARMV7 board
+
+The power saving mechanisms of your board may have shut down some cores, making them invisible to OpenBLAS in its startup phase. Try bringing them online before starting your calculation.
+
+### Speed varies wildly between individual runs on a typical ARMV8 smartphone processor
+
+Check the technical specifications, it could be that the SoC combines fast and slow cpus and threads can end up on either. In that case, binding the process to specific cores e.g. by setting `OMP_PLACES=cores` may help. (You may need to experiment with OpenMP options, it has been reported that using `OMP_NUM_THREADS=2 OMP_PLACES=cores` caused
+a huge drop in performance on a 4+4 core chip while `OMP_NUM_THREADS=2 OMP_PLACES=cores(2)` worked as intended - as did OMP_PLACES=cores with 4 threads)
+
+### I cannot get OpenBLAS to use more than a small subset of available cores on a big system
+
+Multithreading support in OpenBLAS requires the use of internal buffers for sharing partial results, the number and size of which is defined at compile time. Unless you specify NUM_THREADS in your make or cmake command, the build scripts try to autodetect the number of cores available in your build host to size the library to match. This unfortunately means that if you move the resulting binary from a small "front-end node" to a larger "compute node" later, it will still be limited to the hardware capabilities of the original system. The solution is to set NUM_THREADS to a number big enough to encompass the biggest systems you expect to run the binary on - at runtime, it will scale down the maximum number of threads it uses to match the number of cores physically available.
+
+### Getting "ELF load command address/offset not properly aligned" when loading libopenblas.so
+
+If you get a message "error while loading shared libraries: libopenblas.so.0: ELF load command address/offset not properly aligned" when starting a program that is (dynamically) linked to OpenBLAS, this is very likely due to a bug in the GNU linker (ld) that is part of the
+GNU binutils package. This error was specifically observed on older versions of Ubuntu Linux updated with the (at the time) most recent binutils version 2.38, but an internet search turned up sporadic reports involving various other libraries dating back several years. A bugfix was created by the binutils developers and should be available in later versions of binutils.(See issue 3708 for details)
+
+#### Using OpenBLAS with OpenMP
+
+OpenMP provides its own locking mechanisms, so when your code makes BLAS/LAPACK calls from inside OpenMP parallel regions it is imperative
+that you use an OpenBLAS that is built with USE_OPENMP=1, as otherwise deadlocks might occur. Furthermore, OpenBLAS will automatically restrict itself to using only a single thread when called from an OpenMP parallel region. When it is certain that calls will only occur
+from the main thread of your program (i.e. outside of omp parallel constructs), a standard pthreads build of OpenBLAS can be used as well. In that case it may be useful to tune the linger behaviour of idle threads in both your OpenMP program (e.g. set OMP_WAIT_POLICY=passive) and OpenBLAS (by redefining the THREAD_TIMEOUT variable at build time, or setting the environment variable OPENBLAS_THREAD_TIMEOUT smaller than the default 26) so that the two alternating thread pools do not unnecessarily hog the cpu during the handover.
+
diff --git a/docs/index.md b/docs/index.md
new file mode 100644
index 0000000000..3358491d59
--- /dev/null
+++ b/docs/index.md
@@ -0,0 +1,11 @@
+## Introduction
+
+OpenBLAS is an optimized Basic Linear Algebra Subprograms (BLAS) library based on [GotoBLAS2](https://www.tacc.utexas.edu/research-development/tacc-software/gotoblas2) 1.13 BSD version.
+
+OpenBLAS implements low-level routines for performing linear algebra operations such as vector addition, scalar multiplication, dot products, linear combinations, and matrix multiplication. OpenBLAS makes these routines available on multiple platforms, covering server, desktop and mobile operating systems, as well as different architectures including x86, ARM, MIPS, PPC, RISC-V, and zarch.
+
+The old GotoBLAS documentation can be found [on GitHub](https://github.com/OpenMathLib/OpenBLAS/blob/develop/GotoBLAS_01Readme.txt).
+
+## License
+
+OpenBLAS is licensed under the 3-clause BSD license. The full license can be found [on GitHub](https://github.com/OpenMathLib/OpenBLAS/blob/develop/LICENSE).
diff --git a/docs/install.md b/docs/install.md
new file mode 100644
index 0000000000..dff18e1507
--- /dev/null
+++ b/docs/install.md
@@ -0,0 +1,699 @@
+# Install OpenBLAS
+
+!!! note
+ Lists of precompiled packages are not comprehensive, is not meant to validate nor endorse a particular third-party build over others, and may not always lead to the newest version
+
+
+## Quick install
+
+Precompiled packages have recently become available for a number of platforms through their normal installation procedures, so for users of desktop devices at least, the instructions below are mostly relevant when you want to try the most recent development snapshot from git. See your platform's relevant "Precompiled packages" section.
+
+The [Conda-Forge](https://github.com/conda-forge) project maintains packages for the conda package manager at .
+
+## Source
+Download the latest [stable version](https://github.com/xianyi/OpenBLAS/releases) from release page.
+
+## Platforms
+
+### Linux
+
+Just type `make` to compile the library.
+
+Notes:
+
+* OpenBLAS doesn't support g77. Please use gfortran or other Fortran compilers. e.g. `make FC=gfortran`.
+* When building in an emulator (KVM,QEMU etc.) make sure that the combination of CPU features exposed to
+ the virtual environment matches that of an existing CPU to allow detection of the cpu model to succeed.
+ (With qemu, this can be done by passing `-cpu host` or a supported model name at invocation)
+
+
+#### Precompiled packages
+
+##### Debian/Ubuntu/Mint/Kali
+ OpenBLAS package is available in default repositories and can act as default BLAS in system
+
+Example installation commands:
+```bash
+$ sudo apt update
+$ apt search openblas
+$ sudo apt install libopenblas-dev
+$ sudo update-alternatives --config libblas.so.3
+```
+ Alternatively, if distributor's package proves unsatisfactory, you may try latest version of OpenBLAS, [Following guide in OpenBLAS FAQ](faq.md#debianlts)
+
+##### openSuSE/SLE
+ Recent OpenSUSE versions include OpenBLAS in default repositories and also permit OpenBLAS to act as replacement of system-wide BLAS.
+
+ Example installation commands:
+```bash
+$ sudo zypper ref
+$ zypper se openblas
+$ sudo zypper in openblas-devel
+$ sudo update-alternatives --config libblas.so.3
+```
+Should you be using older OpenSUSE or SLE that provides no OpenBLAS, you can attach optional or experimental openSUSE repository as a new package source to acquire recent build of OpenBLAS following [instructions on openSUSE software site](https://software.opensuse.org/package/openblas)
+
+##### Fedora/CentOS/RHEL
+Fedora provides OpenBLAS in default installation repositories.
+
+To install it try following:
+```bash
+$ dnf search openblas
+$ dnf install openblas-devel
+```
+For CentOS/RHEL/Scientific Linux packages are provided via [Fedora EPEL repository](https://fedoraproject.org/wiki/EPEL)
+
+After adding repository and repository keys installation is pretty straightforward:
+```bash
+$ yum search openblas
+$ yum install openblas-devel
+```
+No alternatives mechanism is provided for BLAS, and packages in system repositories are linked against NetLib BLAS or ATLAS BLAS libraries. You may wish to re-package RPMs to use OpenBLAS instead [as described here](https://fedoraproject.org/wiki/How_to_create_an_RPM_package)
+
+##### Mageia
+Mageia offers ATLAS and NetLIB LAPACK in base repositories.
+You can build your own OpenBLAS replacement, and once installed in /opt
+TODO: populate /usr/lib64 /usr/include accurately to replicate netlib with update-alternatives
+
+##### Arch/Manjaro/Antergos
+```bash
+$ sudo pacman -S openblas
+```
+
+### Windows
+
+The precompiled binaries available with each release (in ) are
+created with MinGW using an option list of
+"NUM_THREADS=64 TARGET=GENERIC DYNAMIC_ARCH=1 DYNAMIC_OLDER=1 CONSISTENT_FPCSR=1" - they should work on
+any x86 or x86_64 computer. The zip archive contains the include files, static and dll libraries as well
+as configuration files for getting them found via CMAKE or pkgconfig - just create a suitable folder for
+your OpenBLAS installation and unzip it there. (Note that you will need to edit the provided openblas.pc
+and OpenBLASConfig.cmake to reflect the installation path on your computer, as distributed they have "win"
+or "win64" reflecting the local paths on the system they were built on). Some programs will expect the DLL
+name to be lapack.dll, blas.dll, or (in the case of the statistics package "R") even Rblas.dll to act as a
+direct replacement for whatever other implementation of BLAS and LAPACK they use by default. Just copy the
+openblas.dll to the desired name(s).
+Note that the provided binaries are built with INTERFACE64=0, meaning they use standard 32bit integers for
+array indexing and the like (as is the default for most if not all BLAS and LAPACK implementations). If the
+documentation of whatever program you are using with OpenBLAS mentions 64bit integers (INTERFACE64=1) for
+addressing huge matrix sizes, you will need to build OpenBLAS from source (or open an issue ticket to make
+the demand for such a precompiled build known).
+
+#### Precompiled packages
+
+*
+*
+
+#### Visual Studio
+
+As of OpenBLAS v0.2.15, we support MinGW and Visual Studio (using CMake to generate visual studio solution files – note that you will need at least version 3.11 of CMake for linking to work correctly) to build OpenBLAS on Windows.
+
+Note that you need a Fortran compiler if you plan to build and use the LAPACK functions included with OpenBLAS. The sections below describe using either `flang` as an add-on to clang/LLVM or `gfortran` as part of MinGW for this purpose. If you want to use the Intel Fortran compiler `ifort` for this, be sure to also use the Intel C compiler `icc` for building the C parts, as the ABI imposed by `ifort` is incompatible with `msvc`.
+
+##### 1. Native (MSVC) ABI
+
+A fully-optimized OpenBLAS that can be statically or dynamically linked to your application can currently be built for the 64-bit architecture with the LLVM compiler infrastructure. We're going to use Miniconda3 to grab all of the tools we need, since some of them are in an experimental status. Before you begin, you'll need to have Microsoft Visual Studio 2015 or newer installed.
+
+1. Install Miniconda3 for 64 bits using `winget install --id Anaconda.Miniconda3` or easily download from [conda.io](https://docs.conda.io/en/latest/miniconda.html).
+2. Open the "Anaconda Command Prompt," now available in the Start Menu, or at `%USERPROFILE%\miniconda3\shell\condabin\conda-hook.ps1`.
+3. In that command prompt window, use `cd` to change to the directory where you want to build OpenBLAS
+4. Now install all of the tools we need:
+
+ ```
+ conda update -n base conda
+ conda config --add channels conda-forge
+ conda install -y cmake flang clangdev perl libflang ninja
+ ```
+
+5. Still in the Anaconda Command Prompt window, activate the MSVC environment for 64 bits with `vcvarsall x64`. On Windows 11 with Visual Studio 2022, this would be done by invoking:
+
+ ```shell
+ "c:\Program Files\Microsoft Visual Studio\2022\Preview\vc\Auxiliary\Build\vcvars64.bat"
+ ```
+
+ With VS2019, the command should be the same – except for the year number, obviously. For other/older versions of MSVC,
+ the VS documentation or a quick search on the web should turn up the exact wording you need.
+
+ Confirm that the environment is active by typing `link` – this should return a long list of possible options for the `link` command. If it just
+ returns "command not found" or similar, review and retype the call to vcvars64.bat.
+ **NOTE:** if you are working from a Visual Studio Command prompt window instead (so that you do not have to do the vcvars call), you need to invoke
+ `conda activate` so that CONDA_PREFIX etc. get set up correctly before proceeding to step 6. Failing to do so will lead to link errors like
+ libflangmain.lib not getting found later in the build.
+
+6. Now configure the project with CMake. Starting in the project directory, execute the following:
+
+ ```
+ set "LIB=%CONDA_PREFIX%\Library\lib;%LIB%"
+ set "CPATH=%CONDA_PREFIX%\Library\include;%CPATH%"
+ mkdir build
+ cd build
+ cmake .. -G "Ninja" -DCMAKE_CXX_COMPILER=clang-cl -DCMAKE_C_COMPILER=clang-cl -DCMAKE_Fortran_COMPILER=flang -DCMAKE_MT=mt -DBUILD_WITHOUT_LAPACK=no -DNOFORTRAN=0 -DDYNAMIC_ARCH=ON -DCMAKE_BUILD_TYPE=Release
+ ```
+
+ You may want to add further options in the `cmake` command here – for instance, the default only produces a static .lib version of the library. If you would rather have a DLL, add -DBUILD_SHARED_LIBS=ON above. Note that this step only creates some command files and directories, the actual build happens next.
+
+
+7. Build the project:
+
+ ```
+ cmake --build . --config Release
+ ```
+ This step will create the OpenBLAS library in the "lib" directory, and various build-time tests in the `test`, `ctest` and `openblas_utest` directories. However it will not separate the header files you might need for building your own programs from those used internally. To put all relevant files in a more convenient arrangement, run the next step.
+
+8. Install all relevant files created by the build
+
+ ```
+ cmake --install . --prefix c:\opt -v
+ ```
+ This will copy all files that are needed for building and running your own programs with OpenBLAS to the given location, creating appropriate subdirectories for the individual kinds of files. In the case of "C:\opt" as given above, this would be C:\opt\include\openblas for the header files,
+ C:\opt\bin for the libopenblas.dll and C:\opt\lib for the static library. C:\opt\share holds various support files that enable other cmake-based build scripts to find OpenBLAS automatically.
+
+###### Visual studio 2017+ (C++2017 standard)
+
+In newer visual studio versions, Microsoft has changed [how it handles complex types](https://docs.microsoft.com/en-us/cpp/c-runtime-library/complex-math-support?view=msvc-170#types-used-in-complex-math). Even when using a precompiled version of OpenBLAS, you might need to define `LAPACK_COMPLEX_CUSTOM` in order to define complex types properly for MSVC. For example, some variant of the following might help:
+
+```
+#if defined(_MSC_VER)
+ #include
+ #define LAPACK_COMPLEX_CUSTOM
+ #define lapack_complex_float _Fcomplex
+ #define lapack_complex_double _Dcomplex
+#endif
+```
+
+For reference, see https://github.com/xianyi/OpenBLAS/issues/3661, https://github.com/Reference-LAPACK/lapack/issues/683, and https://stackoverflow.com/questions/47520244/using-openblas-lapacke-in-visual-studio.
+
+###### CMake and Visual Studio
+
+To build OpenBLAS for the 32-bit architecture, you'll need to use the builtin Visual Studio compilers.
+
+!!! note
+ This method may produce binaries which demonstrate significantly lower performance than those built with the other methods. (The Visual Studio compiler does not support the dialect of assembly used in the cpu-specific optimized files, so only the "generic" TARGET which is
+ written in pure C will get built. For the same reason it is not possible (and not necessary) to use -DDYNAMIC_ARCH=ON in a Visual Studio build) You may consider building for the 32-bit architecture using the GNU (MinGW) ABI.
+
+####### 1. Install CMake at Windows
+
+####### 2. Use CMake to generate Visual Studio solution files
+
+```
+# Do this from Powershell so cmake can find visual studio
+cmake -G "Visual Studio 14 Win64" -DCMAKE_BUILD_TYPE=Release .
+```
+
+###### Build the solution at Visual Studio
+
+Note that this step depends on perl, so you'll need to install perl for windows, and put perl on your path so VS can start perl (http://stackoverflow.com/questions/3051049/active-perl-installation-on-windows-operating-system).
+
+Step 2 will build the OpenBLAS solution, open it in VS, and build the projects. Note that the dependencies do not seem to be automatically configured: if you try to build libopenblas directly, it will fail with a message saying that some .obj files aren't found, but if you build the projects libopenblas depends on before building libopenblas, the build will succeed.
+
+###### Build OpenBLAS for Universal Windows Platform
+
+OpenBLAS can be built for use on the [Universal Windows Platform](https://en.wikipedia.org/wiki/Universal_Windows_Platform) using a two step process since commit [c66b842](https://github.com/xianyi/OpenBLAS/commit/c66b842d66c5516e52804bf5a0544d18b1da1b44).
+
+####### 1. Follow steps 1 and 2 above to build the Visual Studio solution files for Windows. This builds the helper executables which are required when building the OpenBLAS Visual Studio solution files for UWP in step 2.
+
+####### 2. Remove the generated CMakeCache.txt and CMakeFiles directory from the OpenBLAS source directory and re-run CMake with the following options:
+
+```
+# do this to build UWP compatible solution files
+cmake -G "Visual Studio 14 Win64" -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION="10.0" -DCMAKE_SYSTEM_PROCESSOR=AMD64 -DVS_WINRT_COMPONENT=TRUE -DCMAKE_BUILD_TYPE=Release .
+```
+
+####### Build the solution with Visual Studio
+
+This will build the OpenBLAS binaries with the required settings for use with UWP.
+
+##### 2. GNU (MinGW) ABI
+
+The resulting library can be used in Visual Studio, but it can only be linked dynamically. This configuration has not been thoroughly tested and should be considered experimental.
+
+###### Incompatible x86 calling conventions
+
+Due to incompatibilities between the calling conventions of MinGW and Visual Studio you will need to make the following modifications ( **32-bit only** ):
+
+1. Use the newer GCC 4.7.0. The older GCC (<4.7.0) has an ABI incompatibility for returning aggregate structures larger than 8 bytes with MSVC.
+
+
+###### Build OpenBLAS on Windows OS
+1. Install the MinGW (GCC) compiler suite, either 32-bit (http://www.mingw.org/) or 64-bit (http://mingw-w64.sourceforge.net/). Be sure to install its gfortran package as well (unless you really want to build the BLAS part of OpenBLAS only) and check that gcc and gfortran are the same version – mixing compilers from different sources or release versions can lead to strange error messages in the linking stage. In addition, please install MSYS with MinGW.
+1. Build OpenBLAS in the MSYS shell. Usually, you can just type "make". OpenBLAS will detect the compiler and CPU automatically.
+1. After the build is complete, OpenBLAS will generate the static library "libopenblas.a" and the shared dll library "libopenblas.dll" in the folder. You can type "make PREFIX=/your/installation/path install" to install the library to a certain location.
+
+!!! note
+ We suggest using official MinGW or MinGW-w64 compilers. A user reported that s/he met `Unhandled exception` by other compiler suite. https://groups.google.com/forum/#!topic/openblas-users/me2S4LkE55w
+
+Note also that older versions of the alternative builds of mingw-w64 available through http://www.msys2.org may contain a defect that leads to a compilation failure accompanied by the error message
+```
+:0:4: error: expected identifier or '(' before numeric constant
+```
+If you encounter this, please upgrade your msys2 setup or see https://github.com/xianyi/OpenBLAS/issues/1503 for a workaround.
+
+###### Generate import library (before 0.2.10 version)
+
+1. First, you will need to have the `lib.exe` tool in the Visual Studio command prompt.
+1. Open the command prompt and type `cd OPENBLAS_TOP_DIR/exports`, where OPENBLAS_TOP_DIR is the main folder of your OpenBLAS installation.
+1. For a 32-bit library, type `lib /machine:i386 /def:libopenblas.def`. For 64-bit, type `lib /machine:X64 /def:libopenblas.def`.
+1. This will generate the import library "libopenblas.lib" and the export library "libopenblas.exp" in OPENBLAS_TOP_DIR/exports. Although these two files have the same name, they are totally different.
+
+###### Generate import library (0.2.10 and after version)
+1. OpenBLAS already generated the import library "libopenblas.dll.a" for "libopenblas.dll".
+
+###### generate windows native PDB files from gcc/gfortran build
+Tool to do so is available at https://github.com/rainers/cv2pdb
+
+###### Use OpenBLAS .dll library in Visual Studio
+1. Copy the import library (before 0.2.10: "OPENBLAS_TOP_DIR/exports/libopenblas.lib", 0.2.10 and after: "OPENBLAS_TOP_DIR/libopenblas.dll.a") and .dll library "libopenblas.dll" into the same folder(The folder of your project that is going to use the BLAS library. You may need to add the libopenblas.dll.a to the linker input list: properties->Linker->Input).
+1. Please follow the documentation about using third-party .dll libraries in MS Visual Studio 2008 or 2010. Make sure to link against a library for the correct architecture. For example, you may receive an error such as "The application was unable to start correctly (0xc000007b)" which typically indicates a mismatch between 32/64-bit libraries.
+
+!!! note
+ If you need CBLAS, you should include cblas.h in /your/installation/path/include in Visual Studio. Please read [this page](http://github.com/xianyi/OpenBLAS/issues/95).
+
+###### Limitations
+* Both static and dynamic linking are supported with MinGW. With Visual Studio, however, only dynamic linking is supported and so you should use the import library.
+* Debugging from Visual Studio does not work because MinGW and Visual Studio have incompatible formats for debug information (PDB vs. DWARF/STABS). You should either debug with GDB on the command-line or with a visual frontend, for instance [Eclipse](http://www.eclipse.org/cdt/) or [Qt Creator](http://qt.nokia.com/products/developer-tools/).
+
+
+#### Windows on Arm
+
+##### Prerequisites
+
+Following tools needs to be installed
+
+###### 1. Download and install clang for windows on arm
+
+Find the latest LLVM build for WoA from [LLVM release page](https://releases.llvm.org/)
+
+E.g: LLVM 12 build for WoA64 can be found [here](https://github.com/llvm/llvm-project/releases/download/llvmorg-12.0.0/LLVM-12.0.0-woa64.exe)
+
+Run the LLVM installer and ensure that LLVM is added to environment PATH.
+
+###### 2. Download and install classic flang for windows on arm
+
+Classic flang is the only available FORTRAN compiler for windows on arm for now and a pre-release build can be found [here](https://github.com/kaadam/flang/releases/tag/v0.1)
+
+There is no installer for classic flang and the zip package can be extracted and the path needs to be added to environment PATH.
+
+E.g: on PowerShell
+
+```
+$env:Path += ";C:\flang_woa\bin"
+```
+
+##### Build
+
+The following steps describe how to build the static library for OpenBLAS with and without LAPACK
+
+###### 1. Build OpenBLAS static library with BLAS and LAPACK routines with Make
+
+Following command can be used to build OpenBLAS static library with BLAS and LAPACK routines
+
+```bash
+$ make CC="clang-cl" HOSTCC="clang-cl" AR="llvm-ar" BUILD_WITHOUT_LAPACK=0 NOFORTRAN=0 DYNAMIC_ARCH=0 TARGET=ARMV8 ARCH=arm64 BINARY=64 USE_OPENMP=0 PARALLEL=1 RANLIB="llvm-ranlib" MAKE=make F_COMPILER=FLANG FC=FLANG FFLAGS_NOOPT="-march=armv8-a -cpp" FFLAGS="-march=armv8-a -cpp" NEED_PIC=0 HOSTARCH=arm64 libs netlib
+```
+
+###### 2. Build static library with BLAS routines using CMake
+
+Classic flang has compatibility issues with cmake hence only BLAS routines can be compiled with CMake
+
+```bash
+$ mkdir build
+$ cd build
+$ cmake .. -G Ninja -DCMAKE_C_COMPILER=clang -DBUILD_WITHOUT_LAPACK=1 -DNOFORTRAN=1 -DDYNAMIC_ARCH=0 -DTARGET=ARMV8 -DARCH=arm64 -DBINARY=64 -DUSE_OPENMP=0 -DCMAKE_SYSTEM_PROCESSOR=ARM64 -DCMAKE_CROSSCOMPILING=1 -DCMAKE_SYSTEM_NAME=Windows
+$ cmake --build . --config Release
+```
+
+###### `getarch.exe` execution error
+
+If you notice that platform-specific headers by `getarch.exe` are not generated correctly, It could be due to a known debug runtime DLL issue for arm64 platforms. Please check out [link](https://linaro.atlassian.net/wiki/spaces/WOAR/pages/28677636097/Debug+run-time+DLL+issue#Workaround) for the workaround.
+
+#### MinGW import library
+
+Microsoft Windows has this thing called "import libraries". You don't need it in MinGW because the `ld` linker from GNU Binutils is smart, but you may still want it for whatever reason.
+
+##### Make the `.def`
+
+Import libraries are compiled from a list of what symbols to use, `.def`. This should be already in your `exports` directory: `cd OPENBLAS_TOP_DIR/exports`.
+
+##### Making a MinGW import library
+
+MinGW import libraries have the suffix `.a`, same as static libraries. (It's actually more common to do `.dll.a`...)
+
+You need to first prepend `libopenblas.def` with a line `LIBRARY libopenblas.dll`:
+
+ cat <(echo "LIBRARY libopenblas.dll") libopenblas.def > libopenblas.def.1
+ mv libopenblas.def.1 libopenblas.def
+
+Now it probably looks like:
+
+ LIBRARY libopenblas.dll
+ EXPORTS
+ caxpy=caxpy_ @1
+ caxpy_=caxpy_ @2
+ ...
+
+Then, generate the import library: `dlltool -d libopenblas.def -l libopenblas.a`
+
+Again, there is basically **no point** in making an import library for use in MinGW. It actually slows down linking.
+
+##### Making a MSVC import library
+
+Unlike MinGW, MSVC absolutely requires an import library. Now the C ABI of MSVC and MinGW are actually identical, so linking is actually okay. (Any incompatibility in the C ABI would be a bug.)
+
+The import libraries of MSVC have the suffix `.lib`. They are generated from a `.def` file using MSVC's `lib.exe`. See [the MSVC instructions](use_visual_studio.md#generate-import-library-before-0210-version).
+
+##### Notes
+
+* Always remember that MinGW is **not the same** as MSYS2 or Cygwin. MSYS2 and Cygwin are full POSIX environments with a lot of magic such as `fork()` and its own `malloc()`. MinGW, which builds on the normal Microsoft C Runtime, has none of that. Be clear about which one you are building for.
+
+### Mac OSX
+
+If your CPU is Sandy Bridge, please use Clang version 3.1 and above. The Clang 3.0 will generate the wrong AVX binary code of OpenBLAS.
+
+#### Precompiled packages
+
+
+
+`brew install openblas`
+
+or using the conda package manager from
+
+(which also has packages for the new M1 cpu)
+
+ `conda install openblas`
+
+#### Build on Apple M1
+
+On newer versions of Xcode and on arm64, you might need to compile with a newer macOS target (11.0) than the default (10.8) with `MACOSX_DEPLOYMENT_TARGET=11.0`, or switch your command-line tools to use an older SDK (e.g., [13.1](https://developer.apple.com/download/all/?q=Xcode%2013)).
+
+* without Fortran compiler (cannot build LAPACK)
+ ```bash
+ $ make CC=cc NOFORTRAN=1
+ ```
+* with Fortran compiler (you could `brew install gfortran`) https://github.com/xianyi/OpenBLAS/issues/3032
+ ```bash
+ $ export MACOSX_DEPLOYMENT_TARGET=11.0
+ $ make CC=cc FC=gfortran
+ ```
+
+### Android
+
+#### Prerequisites
+
+In addition to the Android NDK, you will need both Perl and a C compiler on the build host as these are currently
+required by the OpenBLAS build environment.
+
+
+#### Building with android NDK using clang compiler
+Around version 11 Android NDKs stopped supporting gcc, so you would need to use clang to compile OpenBLAS. clang is supported from OpenBLAS 0.2.20 version onwards. See below sections on how to build with clang for ARMV7 and ARMV8 targets. The same basic principles as described below for ARMV8 should also apply to building an x86 or x86_64 version (substitute something like NEHALEM for the target instead of ARMV8 and replace all the aarch64 in the toolchain paths obviously)
+"Historic" notes:
+Since version 19 the default toolchain is provided as a standalone toolchain, so building one yourself following [building a standalone toolchain](http://developer.android.com/ndk/guides/standalone_toolchain.html) should no longer be necessary.
+If you want to use static linking with an old NDK version older than about r17, you need to choose an API level below 23 currently due to NDK bug 272 (https://github.com/android-ndk/ndk/issues/272 , the libc.a lacks a definition of stderr) that will probably be fixed in r17 of the NDK.
+
+#### Build ARMV7 with clang
+```
+## Set path to ndk-bundle
+export NDK_BUNDLE_DIR=/path/to/ndk-bundle
+
+## Set the PATH to contain paths to clang and arm-linux-androideabi-* utilities
+export PATH=${NDK_BUNDLE_DIR}/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin:${NDK_BUNDLE_DIR}/toolchains/llvm/prebuilt/linux-x86_64/bin:$PATH
+
+## Set LDFLAGS so that the linker finds the appropriate libgcc
+export LDFLAGS="-L${NDK_BUNDLE_DIR}/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x"
+
+## Set the clang cross compile flags
+export CLANG_FLAGS="-target arm-linux-androideabi -marm -mfpu=vfp -mfloat-abi=softfp --sysroot ${NDK_BUNDLE_DIR}/platforms/android-23/arch-arm -gcc-toolchain ${NDK_BUNDLE_DIR}/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/"
+
+#OpenBLAS Compile
+make TARGET=ARMV7 ONLY_CBLAS=1 AR=ar CC="clang ${CLANG_FLAGS}" HOSTCC=gcc ARM_SOFTFP_ABI=1 -j4
+```
+On a Mac, it may also be necessary to give the complete path to the `ar` utility in the make command above, like so:
+```
+AR=${NDK_BUNDLE_DIR}/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc-ar
+```
+otherwise you may get a linker error complaining about a "malformed archive header name at 8" when the native OSX ar command was invoked instead.
+
+#### Build ARMV8 with clang
+```
+## Set path to ndk-bundle
+export NDK_BUNDLE_DIR=/path/to/ndk-bundle/
+
+## Export PATH to contain directories of clang and aarch64-linux-android-* utilities
+export PATH=${NDK_BUNDLE_DIR}/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/:${NDK_BUNDLE_DIR}/toolchains/llvm/prebuilt/linux-x86_64/bin:$PATH
+
+## Setup LDFLAGS so that loader can find libgcc and pass -lm for sqrt
+export LDFLAGS="-L${NDK_BUNDLE_DIR}/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/lib/gcc/aarch64-linux-android/4.9.x -lm"
+
+## Setup the clang cross compile options
+export CLANG_FLAGS="-target aarch64-linux-android --sysroot ${NDK_BUNDLE_DIR}/platforms/android-23/arch-arm64 -gcc-toolchain ${NDK_BUNDLE_DIR}/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/"
+
+## Compile
+make TARGET=ARMV8 ONLY_CBLAS=1 AR=ar CC="clang ${CLANG_FLAGS}" HOSTCC=gcc -j4
+```
+Note: Using TARGET=CORTEXA57 in place of ARMV8 will pick up better optimized routines. Implementations for CORTEXA57 target is compatible with all other armv8 targets.
+
+Note: For NDK 23b, something as simple as
+```
+export PATH=/opt/android-ndk-r23b/toolchains/llvm/prebuilt/linux-x86_64/bin/:$PATH
+make HOSTCC=gcc CC=/opt/android-ndk-r23b/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android31-clang ONLY_CBLAS=1 TARGET=ARMV8
+```
+appears to be sufficient on Linux.
+
+#### Alternative script which was tested on OSX with NDK(21.3.6528147)
+This script will build openblas for 3 architecture (ARMV7,ARMV8,X86) and put them with `sudo make install` to `/opt/OpenBLAS/lib`
+```
+export NDK=YOUR_PATH_TO_SDK/Android/sdk/ndk/21.3.6528147
+export TOOLCHAIN=$NDK/toolchains/llvm/prebuilt/darwin-x86_64
+
+make clean
+make \
+ TARGET=ARMV7 \
+ ONLY_CBLAS=1 \
+ CC="$TOOLCHAIN"/bin/armv7a-linux-androideabi21-clang \
+ AR="$TOOLCHAIN"/bin/arm-linux-androideabi-ar \
+ HOSTCC=gcc \
+ ARM_SOFTFP_ABI=1 \
+ -j4
+sudo make install
+
+make clean
+make \
+ TARGET=CORTEXA57 \
+ ONLY_CBLAS=1 \
+ CC=$TOOLCHAIN/bin/aarch64-linux-android21-clang \
+ AR=$TOOLCHAIN/bin/aarch64-linux-android-ar \
+ HOSTCC=gcc \
+ -j4
+sudo make install
+
+make clean
+make \
+ TARGET=ATOM \
+ ONLY_CBLAS=1 \
+ CC="$TOOLCHAIN"/bin/i686-linux-android21-clang \
+ AR="$TOOLCHAIN"/bin/i686-linux-android-ar \
+ HOSTCC=gcc \
+ ARM_SOFTFP_ABI=1 \
+ -j4
+sudo make install
+
+## This will build for x86_64
+make clean
+make \
+ TARGET=ATOM BINARY=64\
+ ONLY_CBLAS=1 \
+ CC="$TOOLCHAIN"/bin/x86_64-linux-android21-clang \
+ AR="$TOOLCHAIN"/bin/x86_64-linux-android-ar \
+ HOSTCC=gcc \
+ ARM_SOFTFP_ABI=1 \
+ -j4
+sudo make install
+```
+Also you can find full list of target architectures in [TargetsList.txt](https://github.com/xianyi/OpenBLAS/blob/develop/TargetList.txt)
+
+***
+anything below this line should be irrelevant nowadays unless you need to perform software archeology
+***
+#### Building OpenBLAS with very old gcc-based versions of the NDK, without Fortran
+
+The prebuilt Android NDK toolchains do not include Fortran, hence parts like LAPACK cannot be built. You can still build OpenBLAS without it. For instructions on how to build OpenBLAS with Fortran, see the [next section](#building-openblas-with-fortran).
+
+To use easily the prebuilt toolchains, follow [building a standalone toolchain](http://developer.android.com/ndk/guides/standalone_toolchain.html) for your desired architecture.
+This would be `arm-linux-androideabi-gcc-4.9` for ARMV7 and `aarch64-linux-android-gcc-4.9` for ARMV8.
+
+You can build OpenBLAS (0.2.19 and earlier) with:
+```
+## Add the toolchain to your path
+export PATH=/path/to/standalone-toolchain/bin:$PATH
+
+## Build without Fortran for ARMV7
+make TARGET=ARMV7 HOSTCC=gcc CC=arm-linux-androideabi-gcc NOFORTRAN=1 libs
+## Build without Fortran for ARMV8
+make TARGET=ARMV8 BINARY=64 HOSTCC=gcc CC=aarch64-linux-android-gcc NOFORTRAN=1 libs
+```
+
+Since we are cross-compiling, we make the `libs` recipe, not `all`. Otherwise you will get errors when trying to link/run tests as versions up to and including 0.2.19 cannot build a shared library for Android.
+
+From 0.2.20 on, you should leave off the "libs" to get a full build, and you may want to use the softfp ABI instead of the deprecated hardfp one on ARMV7 so you would use
+```
+## Add the toolchain to your path
+export PATH=/path/to/standalone-toolchain/bin:$PATH
+
+## Build without Fortran for ARMV7
+make TARGET=ARMV7 ARM_SOFTFP_ABI=1 HOSTCC=gcc CC=arm-linux-androideabi-gcc NOFORTRAN=1
+## Build without Fortran for ARMV8
+make TARGET=ARMV8 BINARY=64 HOSTCC=gcc CC=aarch64-linux-android-gcc NOFORTRAN=1
+```
+
+If you get an error about stdio.h not being found, you need to specify your sysroot in the CFLAGS argument to `make` like
+```CFLAGS=--sysroot=$NDK/platforms/android-16/arch-arm```
+When you are done, install OpenBLAS into the desired directory. Be sure to also use all command line options
+here that you specified for building, otherwise errors may occur as it tries to install things you did not build:
+```
+make PREFIX=/path/to/install-dir TARGET=... install
+```
+
+#### Building OpenBLAS with Fortran
+
+Instructions on how to build the GNU toolchains with Fortran can be found [here](https://github.com/buffer51/android-gfortran). The [Releases section](https://github.com/buffer51/android-gfortran/releases) provides prebuilt versions, use the standalone one.
+
+You can build OpenBLAS with:
+```
+## Add the toolchain to your path
+export PATH=/path/to/standalone-toolchain-with-fortran/bin:$PATH
+
+## Build with Fortran for ARMV7
+make TARGET=ARMV7 HOSTCC=gcc CC=arm-linux-androideabi-gcc FC=arm-linux-androideabi-gfortran libs
+## Build with LAPACK for ARMV8
+make TARGET=ARMV8 BINARY=64 HOSTCC=gcc CC=aarch64-linux-android-gcc FC=aarch64-linux-android-gfortran libs
+```
+
+As mentioned above you can leave off the `libs` argument here when building 0.2.20 and later, and you may want to add ARM_SOFTFP_ABI=1 when building for ARMV7.
+
+#### Linking OpenBLAS (0.2.19 and earlier) for ARMV7
+
+If you are using `ndk-build`, you need to set the ABI to hard floating points in your Application.mk:
+```
+APP_ABI := armeabi-v7a-hard
+```
+
+This will set the appropriate flags for you. If you are not using `ndk-build`, you will want to add the following flags:
+```
+TARGET_CFLAGS += -mhard-float -D_NDK_MATH_NO_SOFTFP=1
+TARGET_LDFLAGS += -Wl,--no-warn-mismatch -lm_hard
+```
+
+From 0.2.20 on, it is also possible to build for the softfp ABI by specifying ARM_SOFTFP_ABI=1 during the build.
+In that case, also make sure that all your dependencies are compiled with -mfloat-abi=softfp as well, as mixing
+"hard" and "soft" floating point ABIs in a program will make it crash.
+
+### iPhone/iOS
+
+As none of the current developers uses iOS, the following instructions are what was found to work in our Azure CI setup, but as far as we know this builds a fully working OpenBLAS for this platform.
+
+Go to the directory where you unpacked OpenBLAS,and enter the following commands:
+```
+ CC=/Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
+
+CFLAGS= -O2 -Wno-macro-redefined -isysroot /Applications/Xcode_12.4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.4.sdk -arch arm64 -miphoneos-version-min=10.0
+
+make TARGET=ARMV8 DYNAMIC_ARCH=1 NUM_THREADS=32 HOSTCC=clang NOFORTRAN=1
+```
+Adjust MIN_IOS_VERSION as necessary for your installation, e.g. change the version number
+to the minimum iOS version you want to target and execute this file to build the library.
+
+### MIPS
+
+For mips targets you will need latest toolchains
+P5600 - MTI GNU/Linux Toolchain
+I6400, P6600 - IMG GNU/Linux Toolchain
+
+The download link is below
+(http://codescape-mips-sdk.imgtec.com/components/toolchain/2016.05-03/downloads.html)
+
+You can use following commandlines for builds
+
+
+ IMG_TOOLCHAIN_DIR={full IMG GNU/Linux Toolchain path including "bin" directory -- for example, /opt/linux_toolchain/bin}
+ IMG_GCC_PREFIX=mips-img-linux-gnu
+ IMG_TOOLCHAIN=${IMG_TOOLCHAIN_DIR}/${IMG_GCC_PREFIX}
+
+ I6400 Build (n32):
+ make BINARY=32 BINARY32=1 CC=$IMG_TOOLCHAIN-gcc AR=$IMG_TOOLCHAIN-ar FC="$IMG_TOOLCHAIN-gfortran -EL -mabi=n32" RANLIB=$IMG_TOOLCHAIN-ranlib HOSTCC=gcc CFLAGS="-EL" FFLAGS=$CFLAGS LDFLAGS=$CFLAGS TARGET=I6400
+
+ I6400 Build (n64):
+ make BINARY=64 BINARY64=1 CC=$IMG_TOOLCHAIN-gcc AR=$IMG_TOOLCHAIN-ar FC="$IMG_TOOLCHAIN-gfortran -EL" RANLIB=$IMG_TOOLCHAIN-ranlib HOSTCC=gcc CFLAGS="-EL" FFLAGS=$CFLAGS LDFLAGS=$CFLAGS TARGET=I6400
+
+ P6600 Build (n32):
+ make BINARY=32 BINARY32=1 CC=$IMG_TOOLCHAIN-gcc AR=$IMG_TOOLCHAIN-ar FC="$IMG_TOOLCHAIN-gfortran -EL -mabi=n32" RANLIB=$IMG_TOOLCHAIN-ranlib HOSTCC=gcc CFLAGS="-EL" FFLAGS=$CFLAGS LDFLAGS=$CFLAGS TARGET=P6600
+
+ P6600 Build (n64):
+ make BINARY=64 BINARY64=1 CC=$IMG_TOOLCHAIN-gcc AR=$IMG_TOOLCHAIN-ar FC="$IMG_TOOLCHAIN-gfortran -EL" RANLIB=$IMG_TOOLCHAIN-ranlib HOSTCC=gcc CFLAGS="-EL" FFLAGS="$CFLAGS" LDFLAGS="$CFLAGS" TARGET=P6600
+
+ MTI_TOOLCHAIN_DIR={full MTI GNU/Linux Toolchain path including "bin" directory -- for example, /opt/linux_toolchain/bin}
+ MTI_GCC_PREFIX=mips-mti-linux-gnu
+ MTI_TOOLCHAIN=${IMG_TOOLCHAIN_DIR}/${IMG_GCC_PREFIX}
+
+ P5600 Build:
+
+ make BINARY=32 BINARY32=1 CC=$MTI_TOOLCHAIN-gcc AR=$MTI_TOOLCHAIN-ar FC="$MTI_TOOLCHAIN-gfortran -EL" RANLIB=$MTI_TOOLCHAIN-ranlib HOSTCC=gcc CFLAGS="-EL" FFLAGS=$CFLAGS LDFLAGS=$CFLAGS TARGET=P5600
+
+### FreeBSD
+
+You will need to install the following tools from the FreeBSD ports tree:
+* lang/gcc [1]
+* lang/perl5.12
+* ftp/curl
+* devel/gmake
+* devel/patch
+
+To compile run the command:
+
+ $ gmake CC=gcc46 FC=gfortran46
+
+Note that you need to build with GNU make and manually specify the compiler, otherwhise gcc 4.2 from the base system would be used.
+
+[1]: [Removal of Fortran from the FreeBSD base system](http://www.bsdunix.ch/serendipity/index.php?/archives/345-Removal-of-Fortran-from-the-FreeBSD-base-system.html)
+
+
+```
+pkg install openblas
+```
+
+see
+
+### Cortex-M
+
+Cortex-M is a widely used microcontroller that is present in a variety of industrial and consumer electronics.
+A common variant of the Cortex-M is the STM32F4xx series. Here, we will give instructions for building for
+the STM32F4xx.
+
+First, install the embedded arm gcc compiler from the arm website. Then, create the following toolchain file and build as follows.
+
+```cmake
+# cmake .. -G Ninja -DCMAKE_C_COMPILER=arm-none-eabi-gcc -DCMAKE_TOOLCHAIN_FILE:PATH="toolchain.cmake" -DNOFORTRAN=1 -DTARGET=ARMV5 -DEMBEDDED=1
+
+set(CMAKE_SYSTEM_NAME Generic)
+set(CMAKE_SYSTEM_PROCESSOR arm)
+
+set(CMAKE_C_COMPILER "arm-none-eabi-gcc.exe")
+set(CMAKE_CXX_COMPILER "arm-none-eabi-g++.exe")
+
+set(CMAKE_EXE_LINKER_FLAGS "--specs=nosys.specs" CACHE INTERNAL "")
+
+set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
+set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
+set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
+set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)
+```
+
+In your embedded application, the following functions need to be provided for OpenBLAS to work correctly:
+
+```C
+void free(void* ptr);
+void* malloc(size_t size);
+```
+
+!!! note
+ If you are developing for an embedded platform, it is your responsibility to make sure that the device has sufficient memory for malloc calls. [Libmemory][2] provides one implementation of malloc for embedded platforms.
+
+[2]: https://github.com/embeddedartistry/libmemory
diff --git a/docs/logo.svg b/docs/logo.svg
new file mode 100644
index 0000000000..e5a5df296b
--- /dev/null
+++ b/docs/logo.svg
@@ -0,0 +1,450 @@
+
+
diff --git a/docs/user_manual.md b/docs/user_manual.md
new file mode 100644
index 0000000000..b5cd632f15
--- /dev/null
+++ b/docs/user_manual.md
@@ -0,0 +1,179 @@
+## Compile the library
+### Normal compile
+ * type `make` to detect the CPU automatically.
+ or
+ * type `make TARGET=xxx` to set target CPU, e.g. `make TARGET=NEHALEM`. The full target list is in file TargetList.txt.
+
+### Cross compile
+Please set `CC` and `FC` with the cross toolchains. Then, set `HOSTCC` with your host C compiler. At last, set `TARGET` explicitly.
+
+Examples:
+
+* On x86 box, compile the library for ARM Cortex-A9 linux.
+
+Install only gnueabihf versions. Please check https://github.com/xianyi/OpenBLAS/issues/936#issuecomment-237596847
+
+ make CC=arm-linux-gnueabihf-gcc FC=arm-linux-gnueabihf-gfortran HOSTCC=gcc TARGET=CORTEXA9
+
+* On X86 box, compile this library for loongson3a CPU.
+
+```
+make BINARY=64 CC=mips64el-unknown-linux-gnu-gcc FC=mips64el-unknown-linux-gnu-gfortran HOSTCC=gcc TARGET=LOONGSON3A
+```
+
+* On X86 box, compile this library for loongson3a CPU with loongcc (based on Open64) compiler.
+
+```
+make CC=loongcc FC=loongf95 HOSTCC=gcc TARGET=LOONGSON3A CROSS=1 CROSS_SUFFIX=mips64el-st-linux-gnu- NO_LAPACKE=1 NO_SHARED=1 BINARY=32
+```
+
+### Debug version
+
+ make DEBUG=1
+
+### Install to the directory (optional)
+
+Example:
+
+ make install PREFIX=your_installation_directory
+
+The default directory is /opt/OpenBLAS. Note that any flags passed to `make` during build should also be passed to `make install` to circumvent any install errors, i.e. some headers not being copied over correctly.
+
+For more information, please read [Installation Guide](install.md).
+
+## Link the library
+
+* Link shared library
+
+```
+gcc -o test test.c -I/your_path/OpenBLAS/include/ -L/your_path/OpenBLAS/lib -Wl,-rpath,/your_path/OpenBLAS/lib -lopenblas
+```
+
+The `-Wl,-rpath,/your_path/OpenBLAS/lib` option to linker can be omitted if you ran `ldconfig` to update linker cache, put `/your_path/OpenBLAS/lib` in `/etc/ld.so.conf` or a file in `/etc/ld.so.conf.d`, or installed OpenBLAS in a location part of `ld.so` default search path. Otherwise, linking at runtime will fail.
+
+If the library is multithreaded, please add `-lpthread`. If the library contains LAPACK functions, please add `-lgfortran` or other Fortran libs, although if you only make calls to LAPACKE routines, i.e. your code has `#include "lapacke.h"` and makes calls to methods like `LAPACKE_dgeqrf`, `-lgfortran` is not needed.
+
+* Link static library
+
+```
+gcc -o test test.c /your/path/libopenblas.a
+```
+
+You can download `test.c` from https://gist.github.com/xianyi/5780018
+
+## Code examples
+
+### Call CBLAS interface
+This example shows calling cblas_dgemm in C. https://gist.github.com/xianyi/6930656
+```c
+#include
+#include
+
+void main()
+{
+ int i=0;
+ double A[6] = {1.0,2.0,1.0,-3.0,4.0,-1.0};
+ double B[6] = {1.0,2.0,1.0,-3.0,4.0,-1.0};
+ double C[9] = {.5,.5,.5,.5,.5,.5,.5,.5,.5};
+ cblas_dgemm(CblasColMajor, CblasNoTrans, CblasTrans,3,3,2,1,A, 3, B, 3,2,C,3);
+
+ for(i=0; i<9; i++)
+ printf("%lf ", C[i]);
+ printf("\n");
+}
+```
+
+```
+gcc -o test_cblas_open test_cblas_dgemm.c -I /your_path/OpenBLAS/include/ -L/your_path/OpenBLAS/lib -lopenblas -lpthread -lgfortran
+```
+
+### Call BLAS Fortran interface
+
+This example shows calling dgemm Fortran interface in C. https://gist.github.com/xianyi/5780018
+
+```c
+#include "stdio.h"
+#include "stdlib.h"
+#include "sys/time.h"
+#include "time.h"
+
+extern void dgemm_(char*, char*, int*, int*,int*, double*, double*, int*, double*, int*, double*, double*, int*);
+
+int main(int argc, char* argv[])
+{
+ int i;
+ printf("test!\n");
+ if(argc<4){
+ printf("Input Error\n");
+ return 1;
+ }
+
+ int m = atoi(argv[1]);
+ int n = atoi(argv[2]);
+ int k = atoi(argv[3]);
+ int sizeofa = m * k;
+ int sizeofb = k * n;
+ int sizeofc = m * n;
+ char ta = 'N';
+ char tb = 'N';
+ double alpha = 1.2;
+ double beta = 0.001;
+
+ struct timeval start,finish;
+ double duration;
+
+ double* A = (double*)malloc(sizeof(double) * sizeofa);
+ double* B = (double*)malloc(sizeof(double) * sizeofb);
+ double* C = (double*)malloc(sizeof(double) * sizeofc);
+
+ srand((unsigned)time(NULL));
+
+ for (i=0; i
+```
+
+## Troubleshooting
+
+* Please read [Faq](faq.md) at first.
+* Please use gcc version 4.6 and above to compile Sandy Bridge AVX kernels on Linux/MingW/BSD.
+* Please use Clang version 3.1 and above to compile the library on Sandy Bridge microarchitecture. The Clang 3.0 will generate the wrong AVX binary code.
+* The number of CPUs/Cores should less than or equal to 256. On Linux x86_64(amd64), there is experimental support for up to 1024 CPUs/Cores and 128 numa nodes if you build the library with BIGNUMA=1.
+* OpenBLAS does not set processor affinity by default. On Linux, you can enable processor affinity by commenting the line NO_AFFINITY=1 in Makefile.rule. But this may cause [the conflict with R parallel](https://stat.ethz.ch/pipermail/r-sig-hpc/2012-April/001348.html).
+* On Loongson 3A. make test would be failed because of pthread_create error. The error code is EAGAIN. However, it will be OK when you run the same testcase on shell.
+
+## BLAS reference manual
+
+If you want to understand every BLAS function and definition, please read [Intel MKL reference manual](https://software.intel.com/en-us/intel-mkl/documentation) or [netlib.org](http://netlib.org/blas/)
+
+Here are [OpenBLAS extension functions](extensions.md)
diff --git a/mkdocs.yml b/mkdocs.yml
new file mode 100644
index 0000000000..74a18a5bb8
--- /dev/null
+++ b/mkdocs.yml
@@ -0,0 +1,25 @@
+site_name: OpenBLAS
+site_url: https://openblas.net/docs/
+theme:
+ name: material
+ logo: logo.svg
+ favicon: logo.svg
+ palette:
+ primary: grey
+markdown_extensions:
+ - admonition
+ - pymdownx.details
+ - pymdownx.superfences
+ - toc:
+ toc_depth: 4
+nav:
+ - index.md
+ - install.md
+ - user_manual.md
+ - extensions.md
+ - developers.md
+ - build_system.md
+ - distributing.md
+ - ci.md
+ - about.md
+ - faq.md