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.

CMakeLists.txt 3.9 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. #######################################################################
  2. # This is the makefile to create a library for the BLAS.
  3. # The files are grouped as follows:
  4. #
  5. # SBLAS1 -- Single precision real BLAS routines
  6. # CBLAS1 -- Single precision complex BLAS routines
  7. # DBLAS1 -- Double precision real BLAS routines
  8. # ZBLAS1 -- Double precision complex BLAS routines
  9. #
  10. # CB1AUX -- Real BLAS routines called by complex routines
  11. # ZB1AUX -- D.P. real BLAS routines called by d.p. complex
  12. # routines
  13. #
  14. # ALLBLAS -- Auxiliary routines for Level 2 and 3 BLAS
  15. #
  16. # SBLAS2 -- Single precision real BLAS2 routines
  17. # CBLAS2 -- Single precision complex BLAS2 routines
  18. # DBLAS2 -- Double precision real BLAS2 routines
  19. # ZBLAS2 -- Double precision complex BLAS2 routines
  20. #
  21. # SBLAS3 -- Single precision real BLAS3 routines
  22. # CBLAS3 -- Single precision complex BLAS3 routines
  23. # DBLAS3 -- Double precision real BLAS3 routines
  24. # ZBLAS3 -- Double precision complex BLAS3 routines
  25. #
  26. #######################################################################
  27. #---------------------------------------------------------
  28. # Level 1 BLAS
  29. #---------------------------------------------------------
  30. set(SBLAS1 isamax.f sasum.f saxpy.f scopy.f sdot.f snrm2.f
  31. srot.f srotg.f sscal.f sswap.f sdsdot.f srotmg.f srotm.f)
  32. set(CBLAS1 scabs1.f scasum.f scnrm2.f icamax.f caxpy.f ccopy.f
  33. cdotc.f cdotu.f csscal.f crotg.f cscal.f cswap.f csrot.f)
  34. set(DBLAS1 idamax.f dasum.f daxpy.f dcopy.f ddot.f dnrm2.f
  35. drot.f drotg.f dscal.f dsdot.f dswap.f drotmg.f drotm.f)
  36. set(ZBLAS1 dcabs1.f dzasum.f dznrm2.f izamax.f zaxpy.f zcopy.f
  37. zdotc.f zdotu.f zdscal.f zrotg.f zscal.f zswap.f zdrot.f)
  38. set(CB1AUX isamax.f sasum.f saxpy.f scopy.f snrm2.f sscal.f)
  39. set(ZB1AUX idamax.f dasum.f daxpy.f dcopy.f dnrm2.f dscal.f)
  40. #---------------------------------------------------------------------
  41. # Auxiliary routines needed by both the Level 2 and Level 3 BLAS
  42. #---------------------------------------------------------------------
  43. set(ALLBLAS lsame.f xerbla.f xerbla_array.f)
  44. #---------------------------------------------------------
  45. # Level 2 BLAS
  46. #---------------------------------------------------------
  47. set(SBLAS2 sgemv.f sgbmv.f ssymv.f ssbmv.f sspmv.f
  48. strmv.f stbmv.f stpmv.f strsv.f stbsv.f stpsv.f
  49. sger.f ssyr.f sspr.f ssyr2.f sspr2.f)
  50. set(CBLAS2 cgemv.f cgbmv.f chemv.f chbmv.f chpmv.f
  51. ctrmv.f ctbmv.f ctpmv.f ctrsv.f ctbsv.f ctpsv.f
  52. cgerc.f cgeru.f cher.f chpr.f cher2.f chpr2.f)
  53. set(DBLAS2 dgemv.f dgbmv.f dsymv.f dsbmv.f dspmv.f
  54. dtrmv.f dtbmv.f dtpmv.f dtrsv.f dtbsv.f dtpsv.f
  55. dger.f dsyr.f dspr.f dsyr2.f dspr2.f)
  56. set(ZBLAS2 zgemv.f zgbmv.f zhemv.f zhbmv.f zhpmv.f
  57. ztrmv.f ztbmv.f ztpmv.f ztrsv.f ztbsv.f ztpsv.f
  58. zgerc.f zgeru.f zher.f zhpr.f zher2.f zhpr2.f)
  59. #---------------------------------------------------------
  60. # Level 3 BLAS
  61. #---------------------------------------------------------
  62. set(SBLAS3 sgemm.f ssymm.f ssyrk.f ssyr2k.f strmm.f strsm.f)
  63. set(CBLAS3 cgemm.f csymm.f csyrk.f csyr2k.f ctrmm.f ctrsm.f
  64. chemm.f cherk.f cher2k.f)
  65. set(DBLAS3 dgemm.f dsymm.f dsyrk.f dsyr2k.f dtrmm.f dtrsm.f)
  66. set(ZBLAS3 zgemm.f zsymm.f zsyrk.f zsyr2k.f ztrmm.f ztrsm.f
  67. zhemm.f zherk.f zher2k.f)
  68. set(SOURCES)
  69. if(BUILD_SINGLE)
  70. list(APPEND SOURCES ${SBLAS1} ${ALLBLAS} ${SBLAS2} ${SBLAS3})
  71. endif()
  72. if(BUILD_DOUBLE)
  73. list(APPEND SOURCES ${DBLAS1} ${ALLBLAS} ${DBLAS2} ${DBLAS3})
  74. endif()
  75. if(BUILD_COMPLEX)
  76. list(APPEND SOURCES ${CBLAS1} ${CB1AUX} ${ALLBLAS} ${CBLAS2} ${CBLAS3})
  77. endif()
  78. if(BUILD_COMPLEX16)
  79. list(APPEND SOURCES ${ZBLAS1} ${ZB1AUX} ${ALLBLAS} ${ZBLAS2} ${ZBLAS3})
  80. endif()
  81. list(REMOVE_DUPLICATES SOURCES)
  82. add_library(${BLASLIB} ${SOURCES})
  83. set_target_properties(
  84. ${BLASLIB} PROPERTIES
  85. VERSION ${LAPACK_VERSION}
  86. SOVERSION ${LAPACK_MAJOR_VERSION}
  87. )
  88. lapack_install_library(${BLASLIB})