tahoma2d/thirdparty/openblas/xianyi-OpenBLAS-e6e87a2
2022-04-10 23:45:17 -04:00
..
benchmark Add OpenBLAS 2016-03-24 02:47:04 +09:00
ctest Add OpenBLAS 2016-03-24 02:47:04 +09:00
driver Add OpenBLAS 2016-03-24 02:47:04 +09:00
exports Add OpenBLAS 2016-03-24 02:47:04 +09:00
interface Add OpenBLAS 2016-03-24 02:47:04 +09:00
kernel Add OpenBLAS 2016-03-24 02:47:04 +09:00
lapack Add OpenBLAS 2016-03-24 02:47:04 +09:00
reference Add OpenBLAS 2016-03-24 02:47:04 +09:00
test Add OpenBLAS 2016-03-24 02:47:04 +09:00
utest Add OpenBLAS 2016-03-24 02:47:04 +09:00
.gitignore Add OpenBLAS 2016-03-24 02:47:04 +09:00
c_check Add OpenBLAS 2016-03-24 02:47:04 +09:00
cblas.h Add OpenBLAS 2016-03-24 02:47:04 +09:00
Changelog.txt Add OpenBLAS 2016-03-24 02:47:04 +09:00
common.h Add OpenBLAS 2016-03-24 02:47:04 +09:00
common_alpha.h Add OpenBLAS 2016-03-24 02:47:04 +09:00
common_c.h Add OpenBLAS 2016-03-24 02:47:04 +09:00
common_d.h Add OpenBLAS 2016-03-24 02:47:04 +09:00
common_ia64.h Add OpenBLAS 2016-03-24 02:47:04 +09:00
common_interface.h Add OpenBLAS 2016-03-24 02:47:04 +09:00
common_lapack.h Add OpenBLAS 2016-03-24 02:47:04 +09:00
common_level1.h Add OpenBLAS 2016-03-24 02:47:04 +09:00
common_level2.h Add OpenBLAS 2016-03-24 02:47:04 +09:00
common_level3.h Add OpenBLAS 2016-03-24 02:47:04 +09:00
common_linux.h Add OpenBLAS 2016-03-24 02:47:04 +09:00
common_macro.h Add OpenBLAS 2016-03-24 02:47:04 +09:00
common_mips64.h Add OpenBLAS 2016-03-24 02:47:04 +09:00
common_param.h Add OpenBLAS 2016-03-24 02:47:04 +09:00
common_power.h Add OpenBLAS 2016-03-24 02:47:04 +09:00
common_q.h Add OpenBLAS 2016-03-24 02:47:04 +09:00
common_reference.h Add OpenBLAS 2016-03-24 02:47:04 +09:00
common_s.h Add OpenBLAS 2016-03-24 02:47:04 +09:00
common_sparc.h Add OpenBLAS 2016-03-24 02:47:04 +09:00
common_thread.h Add OpenBLAS 2016-03-24 02:47:04 +09:00
common_x.h Add OpenBLAS 2016-03-24 02:47:04 +09:00
common_x86.h Add OpenBLAS 2016-03-24 02:47:04 +09:00
common_x86_64.h Add OpenBLAS 2016-03-24 02:47:04 +09:00
common_z.h Add OpenBLAS 2016-03-24 02:47:04 +09:00
cpuid.h Add OpenBLAS 2016-03-24 02:47:04 +09:00
cpuid.S Add OpenBLAS 2016-03-24 02:47:04 +09:00
cpuid_alpha.c Add OpenBLAS 2016-03-24 02:47:04 +09:00
cpuid_ia64.c Add OpenBLAS 2016-03-24 02:47:04 +09:00
cpuid_mips.c Add OpenBLAS 2016-03-24 02:47:04 +09:00
cpuid_power.c Add OpenBLAS 2016-03-24 02:47:04 +09:00
cpuid_sparc.c Add OpenBLAS 2016-03-24 02:47:04 +09:00
cpuid_x86.c Add OpenBLAS 2016-03-24 02:47:04 +09:00
ctest.c Add OpenBLAS 2016-03-24 02:47:04 +09:00
ctest1.c Add OpenBLAS 2016-03-24 02:47:04 +09:00
ctest2.c Add OpenBLAS 2016-03-24 02:47:04 +09:00
f_check Add OpenBLAS 2016-03-24 02:47:04 +09:00
ftest.f Add OpenBLAS 2016-03-24 02:47:04 +09:00
ftest2.f Add OpenBLAS 2016-03-24 02:47:04 +09:00
getarch.c Add OpenBLAS 2016-03-24 02:47:04 +09:00
getarch_2nd.c Add OpenBLAS 2016-03-24 02:47:04 +09:00
GotoBLAS_00License.txt Add OpenBLAS 2016-03-24 02:47:04 +09:00
GotoBLAS_01Readme.txt Add OpenBLAS 2016-03-24 02:47:04 +09:00
GotoBLAS_02QuickInstall.txt Add OpenBLAS 2016-03-24 02:47:04 +09:00
GotoBLAS_03FAQ.txt Add OpenBLAS 2016-03-24 02:47:04 +09:00
GotoBLAS_04FAQ.txt Add OpenBLAS 2016-03-24 02:47:04 +09:00
GotoBLAS_05LargePage.txt Add OpenBLAS 2016-03-24 02:47:04 +09:00
GotoBLAS_06WeirdPerformance.txt Add OpenBLAS 2016-03-24 02:47:04 +09:00
l1param.h Add OpenBLAS 2016-03-24 02:47:04 +09:00
l2param.h Add OpenBLAS 2016-03-24 02:47:04 +09:00
LICENSE Add OpenBLAS 2016-03-24 02:47:04 +09:00
make.inc Add OpenBLAS 2016-03-24 02:47:04 +09:00
Makefile Add OpenBLAS 2016-03-24 02:47:04 +09:00
Makefile.alpha Add OpenBLAS 2016-03-24 02:47:04 +09:00
Makefile.generic Add OpenBLAS 2016-03-24 02:47:04 +09:00
Makefile.getarch Add OpenBLAS 2016-03-24 02:47:04 +09:00
Makefile.ia64 Add OpenBLAS 2016-03-24 02:47:04 +09:00
Makefile.install Add OpenBLAS 2016-03-24 02:47:04 +09:00
Makefile.mips64 Add OpenBLAS 2016-03-24 02:47:04 +09:00
Makefile.power Add OpenBLAS 2016-03-24 02:47:04 +09:00
Makefile.rule Add OpenBLAS 2016-03-24 02:47:04 +09:00
Makefile.sparc Add OpenBLAS 2016-03-24 02:47:04 +09:00
Makefile.system Add OpenBLAS 2016-03-24 02:47:04 +09:00
Makefile.tail Add OpenBLAS 2016-03-24 02:47:04 +09:00
Makefile.x86 Add OpenBLAS 2016-03-24 02:47:04 +09:00
Makefile.x86_64 Add OpenBLAS 2016-03-24 02:47:04 +09:00
openblas_config_template.h Add OpenBLAS 2016-03-24 02:47:04 +09:00
param.h Add OpenBLAS 2016-03-24 02:47:04 +09:00
patch.for_lapack-3.1.1 Add OpenBLAS 2016-03-24 02:47:04 +09:00
patch.for_lapack-3.4.0 Add OpenBLAS 2016-03-24 02:47:04 +09:00
patch.for_lapack-3.4.1 Add OpenBLAS 2016-03-24 02:47:04 +09:00
quickbuild.32bit Add OpenBLAS 2016-03-24 02:47:04 +09:00
quickbuild.64bit Add OpenBLAS 2016-03-24 02:47:04 +09:00
quickbuild.win32 Add OpenBLAS 2016-03-24 02:47:04 +09:00
quickbuild.win64 Add OpenBLAS 2016-03-24 02:47:04 +09:00
README Add OpenBLAS 2016-03-24 02:47:04 +09:00
symcopy.h Add OpenBLAS 2016-03-24 02:47:04 +09:00
TargetList.txt Add OpenBLAS 2016-03-24 02:47:04 +09:00
version.h Add OpenBLAS 2016-03-24 02:47:04 +09:00

OpenBLAS Readme

1.Introduction
OpenBLAS is an optimized BLAS library based on GotoBLAS2 1.13 BSD version. OpenBLAS is an open source project supported by Lab of Parallel Software and Computational Science, ISCAS.(http://www.rdcps.ac.cn)
Please read the documents on OpenBLAS wiki pages(http://github.com/xianyi/OpenBLAS/wiki).

2.Intallation
Download from project homepage. http://xianyi.github.com/OpenBLAS/
Or,
check out codes from git://github.com/xianyi/OpenBLAS.git
1)Normal compile
  (a) type "make" to detect the CPU automatically.
  or
  (b) type "make TARGET=xxx" to set target CPU, e.g. "make TARGET=NEHALEM". The full target list is in file TargetList.txt.

2)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 this library for loongson3a CPU.
make BINARY=64 CC=mips64el-unknown-linux-gnu-gcc FC=mips64el-unknown-linux-gnu-gfortran HOSTCC=gcc TARGET=LOONGSON3A

3)Debug version
make DEBUG=1

4)Intall to the directory (Optional)
e.g.
make install PREFIX=your_installation_directory
The default directory is /opt/OpenBLAS

3.Support CPU & OS
Please read GotoBLAS_01Readme.txt

Additional support CPU:
x86_64:
	Intel Xeon 56xx (Westmere) //Used GotoBLAS2 Nehalem codes.
MIPS64:
	ICT Loongson 3A //Level 3 BLAS subroutines are optimized.

4.Usages
Link with libopenblas.a or -lopenblas for shared library.

4.1 Set the number of threads with environment variables. for example,
export OPENBLAS_NUM_THREADS=4
 or
export GOTO_NUM_THREADS=4
 or 
export OMP_NUM_THREADS=4

The priorities are OPENBLAS_NUM_THREADS > GOTO_NUM_THREADS > OMP_NUM_THREADS.

If you compile this lib with USE_OPENMP=1, you should set OMP_NUM_THREADS environment variable. OpenBLAS ignores OPENBLAS_NUM_THREADS and GOTO_NUM_THREADS with USE_OPENMP=1.

4.2 Set the number of threads with calling functions. for example,
void goto_set_num_threads(int num_threads);
or
void openblas_set_num_threads(int num_threads);

If you compile this lib with USE_OPENMP=1, you should use the above functions, too.

5.Report Bugs
Please add a issue in https://github.com/xianyi/OpenBLAS/issues

6.To-Do List:
Optimization on ICT Loongson 3A CPU

7.Contact
OpenBLAS users mailing list: http://list.rdcps.ac.cn/mailman/listinfo/openblas

8.ChangeLog
Please see Changelog.txt to obtain the differences between GotoBLAS2 1.13 BSD version.

9.Known Issues
* The number of CPUs/Cores should less than or equal to 8*sizeof(unsigned long). On 64 bits, the limit 
  is 64. On 32 bits, it is 32.
* 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. I don't think this is a bug in OpenBLAS. 

10. Specification of Git Branches
We used the git branching model in this article (http://nvie.com/posts/a-successful-git-branching-model/). 
Now, there are 4 branches in github.com.
  * The master branch. This a main branch to reflect a production-ready state.
  * The develop branch. This a main branch to reflect a state with the latest delivered development changes for the next release.
  * The loongson3a branch. This is a feature branch. We develop Loongson3A codes on this branch. We will merge this feature to develop branch in future.
  * The gh-pages branch. This is for web pages