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 2.3 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. #######################################################################
  2. # This is the makefile to create a the variants libraries for LAPACK.
  3. # The files are organized as follows:
  4. # CHOLRL -- Right looking block version of the algorithm, calling Level 3 BLAS
  5. # CHOLTOP -- Top looking block version of the algorithm, calling Level 3 BLAS
  6. # LUCR -- Crout Level 3 BLAS version of LU factorization
  7. # LULL -- left-looking Level 3 BLAS version of LU factorization
  8. # QRLL -- left-looking Level 3 BLAS version of QR factorization
  9. # LUREC -- an iterative version of Sivan Toledo's recursive LU algorithm[1].
  10. # For square matrices, this iterative versions should
  11. # be within a factor of two of the optimum number of memory transfers.
  12. #
  13. # [1] Toledo, S. 1997. Locality of Reference in LU Decomposition with
  14. # Partial Pivoting. SIAM J. Matrix Anal. Appl. 18, 4 (Oct. 1997),
  15. # 1065-1081. http://dx.doi.org/10.1137/S0895479896297744
  16. #######################################################################
  17. TOPSRCDIR = ../..
  18. include $(TOPSRCDIR)/make.inc
  19. CHOLRL = cholesky/RL/cpotrf.o cholesky/RL/dpotrf.o cholesky/RL/spotrf.o cholesky/RL/zpotrf.o
  20. CHOLTOP = cholesky/TOP/cpotrf.o cholesky/TOP/dpotrf.o cholesky/TOP/spotrf.o cholesky/TOP/zpotrf.o
  21. LUCR = lu/CR/cgetrf.o lu/CR/dgetrf.o lu/CR/sgetrf.o lu/CR/zgetrf.o
  22. LULL = lu/LL/cgetrf.o lu/LL/dgetrf.o lu/LL/sgetrf.o lu/LL/zgetrf.o
  23. LUREC = lu/REC/cgetrf.o lu/REC/dgetrf.o lu/REC/sgetrf.o lu/REC/zgetrf.o
  24. QRLL = qr/LL/cgeqrf.o qr/LL/dgeqrf.o qr/LL/sgeqrf.o qr/LL/zgeqrf.o
  25. LARFTL2 = larft/LL-LVL2/clarft.o larft/LL-LVL2/dlarft.o larft/LL-LVL2/slarft.o larft/LL-LVL2/zlarft.o
  26. .PHONY: all
  27. all: cholrl.a choltop.a lucr.a lull.a lurec.a qrll.a larftl2.a
  28. cholrl.a: $(CHOLRL)
  29. $(AR) $(ARFLAGS) $@ $^
  30. $(RANLIB) $@
  31. choltop.a: $(CHOLTOP)
  32. $(AR) $(ARFLAGS) $@ $^
  33. $(RANLIB) $@
  34. lucr.a: $(LUCR)
  35. $(AR) $(ARFLAGS) $@ $^
  36. $(RANLIB) $@
  37. lull.a: $(LULL)
  38. $(AR) $(ARFLAGS) $@ $^
  39. $(RANLIB) $@
  40. lurec.a: $(LUREC)
  41. $(AR) $(ARFLAGS) $@ $^
  42. $(RANLIB) $@
  43. qrll.a: $(QRLL)
  44. $(AR) $(ARFLAGS) $@ $^
  45. $(RANLIB) $@
  46. larftl2.a: $(LARFTL2)
  47. $(AR) $(ARFLAGS) $@ $^
  48. $(RANLIB) $@
  49. .PHONY: clean cleanobj cleanlib
  50. clean: cleanobj cleanlib
  51. cleanobj:
  52. rm -f $(CHOLRL) $(CHOLTOP) $(LUCR) $(LULL) $(LUREC) $(QRLL) $(LARFTL2)
  53. cleanlib:
  54. rm -f *.a