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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. include ../../make.inc
  2. #######################################################################
  3. # This is the makefile to create a the variants libraries for LAPACK.
  4. # The files are organized as follows:
  5. # CHOLRL -- Right looking block version of the algorithm, calling Level 3 BLAS
  6. # CHOLTOP -- Top looking block version of the algorithm, calling Level 3 BLAS
  7. # LUCR -- Crout Level 3 BLAS version of LU factorization
  8. # LULL -- left-looking Level 3 BLAS version of LU factorization
  9. # QRLL -- left-looking Level 3 BLAS version of QR factorization
  10. # LUREC -- an iterative version of Sivan Toledo's recursive LU algorithm[1].
  11. # For square matrices, this iterative versions should
  12. # be within a factor of two of the optimum number of memory transfers.
  13. #
  14. # [1] Toledo, S. 1997. Locality of Reference in LU Decomposition with
  15. # Partial Pivoting. SIAM J. Matrix Anal. Appl. 18, 4 (Oct. 1997),
  16. # 1065-1081. http://dx.doi.org/10.1137/S0895479896297744
  17. #######################################################################
  18. VARIANTSDIR=LIB
  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 qr/LL/sceil.o
  25. all: cholrl choltop lucr lull lurec qrll
  26. cholrl: $(CHOLRL)
  27. $(ARCH) $(ARCHFLAGS) $(VARIANTSDIR)/cholrl.a $(CHOLRL)
  28. $(RANLIB) $(VARIANTSDIR)/cholrl.a
  29. choltop: $(CHOLTOP)
  30. $(ARCH) $(ARCHFLAGS) $(VARIANTSDIR)/choltop.a $(CHOLTOP)
  31. $(RANLIB) $(VARIANTSDIR)/choltop.a
  32. lucr: $(LUCR)
  33. $(ARCH) $(ARCHFLAGS) $(VARIANTSDIR)/lucr.a $(LUCR)
  34. $(RANLIB) $(VARIANTSDIR)/lucr.a
  35. lull: $(LULL)
  36. $(ARCH) $(ARCHFLAGS) $(VARIANTSDIR)/lull.a $(LULL)
  37. $(RANLIB) $(VARIANTSDIR)/lull.a
  38. lurec: $(LUREC)
  39. $(ARCH) $(ARCHFLAGS) $(VARIANTSDIR)/lurec.a $(LUREC)
  40. $(RANLIB) $(VARIANTSDIR)/lurec.a
  41. qrll: $(QRLL)
  42. $(ARCH) $(ARCHFLAGS) $(VARIANTSDIR)/qrll.a $(QRLL)
  43. $(RANLIB) $(VARIANTSDIR)/qrll.a
  44. .f.o:
  45. $(FORTRAN) $(OPTS) -c $< -o $@
  46. clean:
  47. rm -f $(CHOLRL) $(CHOLTOP) $(LUCR) $(LULL) $(LUREC) $(QRLL) \
  48. $(VARIANTSDIR)/*.a