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

README 3.3 kB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. OpenBLAS Readme
  2. 1.Introduction
  3. 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)
  4. 2.Intallation
  5. Download from project homepage. http://xianyi.github.com/OpenBLAS/
  6. Or,
  7. check out codes from git://github.com/xianyi/OpenBLAS.git
  8. 1)Normal compile
  9. (a) type "make" to detect the CPU automatically.
  10. or
  11. (b) type "make TARGET=xxx" to set target CPU, e.g. "make TARGET=NEHALEM". The full target list is in file TargetList.txt.
  12. 2)Cross compile
  13. Please set CC and FC with the cross toolchains. Then, set HOSTCC with your host C compiler. At last, set TARGET explicitly.
  14. examples:
  15. On X86 box, compile this library for loongson3a CPU.
  16. make BINARY=64 CC=mips64el-unknown-linux-gnu-gcc FC=mips64el-unknown-linux-gnu-gfortran HOSTCC=gcc TARGET=LOONGSON3A
  17. 3)Debug version
  18. make DEBUG=1
  19. 4)Intall to the directory (Optional)
  20. e.g.
  21. make install PREFIX=your_installation_directory
  22. The default directory is /opt/OpenBLAS
  23. 3.Support CPU & OS
  24. Please read GotoBLAS_01Readme.txt
  25. Additional support CPU:
  26. x86_64:
  27. Intel Xeon 56xx (Westmere) //Used GotoBLAS2 Nehalem codes.
  28. MIPS64:
  29. ICT Loongson 3A //The initial version used GotoBLAS2 MIPS64 kernels. Thus, the performance is not good.
  30. 4.Usages
  31. Link with libopenblas.a or -lopenblas for shared library.
  32. 4.1 Set the number of threads with environment variables. for example,
  33. export OPENBLAS_NUM_THREADS=4
  34. or
  35. export GOTO_NUM_THREADS=4
  36. or
  37. export OMP_NUM_THREADS=4
  38. The priorities are OPENBLAS_NUM_THREADS > GOTO_NUM_THREADS > OMP_NUM_THREADS.
  39. 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.
  40. 4.2 Set the number of threads with calling functions. for example,
  41. void goto_set_num_threads(int num_threads);
  42. or
  43. void openblas_set_num_threads(int num_threads);
  44. If you compile this lib with USE_OPENMP=1, you should use the above functions, too.
  45. 5.Report Bugs
  46. Please add a issue in https://github.com/xianyi/OpenBLAS/issues
  47. 6.To-Do List:
  48. Optimization on ICT Loongson 3A CPU
  49. 7.Contact
  50. OpenBLAS users mailing list: http://list.rdcps.ac.cn/mailman/listinfo/openblas
  51. 8.ChangeLog
  52. Please see Changelog.txt to obtain the differences between GotoBLAS2 1.13 BSD version.
  53. 9.Known Issues
  54. * The number of CPUs/Cores should less than or equal to 8*sizeof(unsigned long). On 64 bits, the limit
  55. is 64. On 32 bits, it is 32.
  56. * 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.
  57. 10. Specification of Git Branches
  58. We used the git branching model in this article (http://nvie.com/posts/a-successful-git-branching-model/).
  59. Now, there are 4 branches in github.com.
  60. * The master branch. This a main branch to reflect a production-ready state.
  61. * The develop branch. This a main branch to reflect a state with the latest delivered development changes for the next release.
  62. * 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.
  63. * The gh-pages branch. This is for web pages