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.4 kB

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