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.

Makefile 3.2 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. #
  2. # The Makefile compiles c wrappers and testers for CBLAS.
  3. #
  4. TOPDIR = ..
  5. include $(TOPDIR)/Makefile.system
  6. CFLAGS += -DADD$(BU) -DCBLAS
  7. LIB = $(TOPDIR)/$(LIBNAME)
  8. stestl1o = c_sblas1.o
  9. stestl2o = c_sblas2.o c_s2chke.o auxiliary.o c_xerbla.o constant.o
  10. stestl3o = c_sblas3.o c_s3chke.o auxiliary.o c_xerbla.o constant.o
  11. dtestl1o = c_dblas1.o
  12. dtestl2o = c_dblas2.o c_d2chke.o auxiliary.o c_xerbla.o constant.o
  13. dtestl3o = c_dblas3.o c_d3chke.o auxiliary.o c_xerbla.o constant.o
  14. ctestl1o = c_cblas1.o
  15. ctestl2o = c_cblas2.o c_c2chke.o auxiliary.o c_xerbla.o constant.o
  16. ctestl3o = c_cblas3.o c_c3chke.o auxiliary.o c_xerbla.o constant.o
  17. ztestl1o = c_zblas1.o
  18. ztestl2o = c_zblas2.o c_z2chke.o auxiliary.o c_xerbla.o constant.o
  19. ztestl3o = c_zblas3.o c_z3chke.o auxiliary.o c_xerbla.o constant.o
  20. all :: all1 all2 all3
  21. all1: xscblat1 xdcblat1 xccblat1 xzcblat1
  22. GOTO_NUM_THREADS=2 ./xscblat1
  23. GOTO_NUM_THREADS=2 ./xdcblat1
  24. GOTO_NUM_THREADS=2 ./xccblat1
  25. GOTO_NUM_THREADS=2 ./xzcblat1
  26. all2: xscblat2 xdcblat2 xccblat2 xzcblat2
  27. GOTO_NUM_THREADS=2 ./xscblat2 < sin2
  28. GOTO_NUM_THREADS=2 ./xdcblat2 < din2
  29. GOTO_NUM_THREADS=2 ./xccblat2 < cin2
  30. GOTO_NUM_THREADS=2 ./xzcblat2 < zin2
  31. all3: xscblat3 xdcblat3 xccblat3 xzcblat3
  32. GOTO_NUM_THREADS=2 ./xscblat3 < sin3
  33. GOTO_NUM_THREADS=2 ./xdcblat3 < din3
  34. GOTO_NUM_THREADS=2 ./xccblat3 < cin3
  35. GOTO_NUM_THREADS=2 ./xzcblat3 < zin3
  36. clean ::
  37. rm -f x*
  38. FLDFLAGS = $(FFLAGS:-fPIC=)
  39. CEXTRALIB =
  40. # Single real
  41. xscblat1: $(stestl1o) c_sblat1.o $(TOPDIR)/$(LIBNAME)
  42. $(FC) $(FLDFLAGS) -o xscblat1 c_sblat1.o $(stestl1o) $(LIB) $(EXTRALIB) $(CEXTRALIB)
  43. xscblat2: $(stestl2o) c_sblat2.o $(TOPDIR)/$(LIBNAME)
  44. $(FC) $(FLDFLAGS) -o xscblat2 c_sblat2.o $(stestl2o) $(LIB) $(EXTRALIB) $(CEXTRALIB)
  45. xscblat3: $(stestl3o) c_sblat3.o $(TOPDIR)/$(LIBNAME)
  46. $(FC) $(FLDFLAGS) -o xscblat3 c_sblat3.o $(stestl3o) $(LIB) $(EXTRALIB) $(CEXTRALIB)
  47. # Double real
  48. xdcblat1: $(dtestl1o) c_dblat1.o $(TOPDIR)/$(LIBNAME)
  49. $(FC) $(FLDFLAGS) -o xdcblat1 c_dblat1.o $(dtestl1o) $(LIB) $(EXTRALIB) $(CEXTRALIB)
  50. xdcblat2: $(dtestl2o) c_dblat2.o $(TOPDIR)/$(LIBNAME)
  51. $(FC) $(FLDFLAGS) -o xdcblat2 c_dblat2.o $(dtestl2o) $(LIB) $(EXTRALIB) $(CEXTRALIB)
  52. xdcblat3: $(dtestl3o) c_dblat3.o $(TOPDIR)/$(LIBNAME)
  53. $(FC) $(FLDFLAGS) -o xdcblat3 c_dblat3.o $(dtestl3o) $(LIB) $(EXTRALIB) $(CEXTRALIB)
  54. # Single complex
  55. xccblat1: $(ctestl1o) c_cblat1.o $(TOPDIR)/$(LIBNAME)
  56. $(FC) $(FLDFLAGS) -o xccblat1 c_cblat1.o $(ctestl1o) $(LIB) $(EXTRALIB) $(CEXTRALIB)
  57. xccblat2: $(ctestl2o) c_cblat2.o $(TOPDIR)/$(LIBNAME)
  58. $(FC) $(FLDFLAGS) -o xccblat2 c_cblat2.o $(ctestl2o) $(LIB) $(EXTRALIB) $(CEXTRALIB)
  59. xccblat3: $(ctestl3o) c_cblat3.o $(TOPDIR)/$(LIBNAME)
  60. $(FC) $(FLDFLAGS) -o xccblat3 c_cblat3.o $(ctestl3o) $(LIB) $(EXTRALIB) $(CEXTRALIB)
  61. # Double complex
  62. xzcblat1: $(ztestl1o) c_zblat1.o $(TOPDIR)/$(LIBNAME)
  63. $(FC) $(FLDFLAGS) -o xzcblat1 c_zblat1.o $(ztestl1o) $(LIB) $(EXTRALIB) $(CEXTRALIB)
  64. xzcblat2: $(ztestl2o) c_zblat2.o $(TOPDIR)/$(LIBNAME)
  65. $(FC) $(FLDFLAGS) -o xzcblat2 c_zblat2.o $(ztestl2o) $(LIB) $(EXTRALIB) $(CEXTRALIB)
  66. xzcblat3: $(ztestl3o) c_zblat3.o $(TOPDIR)/$(LIBNAME)
  67. $(FC) $(FLDFLAGS) -o xzcblat3 c_zblat3.o $(ztestl3o) $(LIB) $(EXTRALIB) $(CEXTRALIB)
  68. include $(TOPDIR)/Makefile.tail

OpenBLAS is an optimized BLAS library based on GotoBLAS2 1.13 BSD version.

Contributors (1)