Advertisement
Guest User

Untitled

a guest
Jun 27th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.11 KB | None | 0 0
  1. (/shared/users/thomasaar/py37) /shared/users/thomasaar/downloads/q-e-gpu/install: more make.inc.in
  2. # @configure_input@
  3.  
  4. # compilation rules
  5.  
  6. .SUFFIXES :
  7. .SUFFIXES : .o .c .f .f90
  8.  
  9. # most fortran compilers can directly preprocess c-like directives: use
  10. # $(MPIF90) $(F90FLAGS) -c $<
  11. # if explicit preprocessing by the C preprocessor is needed, use:
  12. # $(CPP) $(CPPFLAGS) $< -o $*.F90
  13. # $(MPIF90) $(F90FLAGS) -c $*.F90 -o $*.o
  14. # remember the tabulator in the first column !!!
  15.  
  16. .f90.o:
  17. @f90rule@
  18.  
  19. # .f.o and .c.o: do not modify
  20.  
  21. .f.o:
  22. $(F77) $(FFLAGS) -c $<
  23.  
  24. .c.o:
  25. $(CC) $(CFLAGS) -c $<
  26.  
  27. @SET_MAKE@
  28.  
  29. # Top QE directory, useful for locating libraries, linking QE with plugins
  30. # The following syntax should always point to TOPDIR:
  31. TOPDIR = $(dir $(abspath $(filter %make.inc,$(MAKEFILE_LIST))))
  32. # if it doesn't work, uncomment the following line (edit if needed):
  33.  
  34. # TOPDIR = @topdir@
  35.  
  36. # DFLAGS = precompilation options (possible arguments to -D and -U)
  37. # used by the C compiler and preprocessor
  38. # To use libxc (v>=3.0.1), add -D__LIBXC to DFLAGS
  39. # See include/defs.h.README for a list of options and their meaning
  40. # With the exception of IBM xlf, FDFLAGS = $(DFLAGS)
  41. # For IBM xlf, FDFLAGS is the same as DFLAGS with separating commas
  42.  
  43. # MANUAL_DFLAGS = additional precompilation option(s), if desired
  44. # BEWARE: it does not work for IBM xlf! Manually edit FDFLAGS
  45. MANUAL_DFLAGS =
  46. DFLAGS = @dflags@
  47. FDFLAGS = @fdflags@
  48.  
  49. # IFLAGS = how to locate directories with *.h or *.f90 file to be included
  50. # typically -I$(TOPDIR)/include -I/some/other/directory/
  51. # the latter contains .e.g. files needed by FFT libraries
  52. # for libxc add -I/path/to/libxc/include/
  53.  
  54. IFLAGS = @iflags@
  55.  
  56. # MOD_FLAG = flag used by f90 compiler to locate modules
  57.  
  58. MOD_FLAG = @imod@
  59.  
  60. # BASEMOD_FLAGS points to directories containing basic modules,
  61. # while BASEMODS points to the corresponding module libraries
  62. # Each Makefile can add directories to MODFLAGS and libraries to QEMODS
  63.  
  64. BASEMOD_FLAGS= $(MOD_FLAG)$(TOPDIR)/iotk/src \
  65. $(MOD_FLAG)$(TOPDIR)/Modules \
  66. $(MOD_FLAG)$(TOPDIR)/FFTXlib \
  67. $(MOD_FLAG)$(TOPDIR)/LAXlib \
  68. $(MOD_FLAG)$(TOPDIR)/UtilXlib \
  69. $(MOD_FLAG)$(TOPDIR)/FoX/finclude
  70.  
  71. # Compilers: fortran-90, fortran-77, C
  72. # If a parallel compilation is desired, MPIF90 should be a fortran-90
  73. # compiler that produces executables for parallel execution using MPI
  74. # (such as for instance mpif90, mpf90, mpxlf90,...);
  75. # otherwise, an ordinary fortran-90 compiler (f90, g95, xlf90, ifort,...)
  76. # If you have a parallel machine but no suitable candidate for MPIF90,
  77. # try to specify the directory containing "mpif.h" in IFLAGS
  78. # and to specify the location of MPI libraries in MPI_LIBS
  79.  
  80. MPIF90 = @mpif90@
  81. F90 = @f90@
  82. CC = @cc@
  83. F77 = @f77@
  84.  
  85. # GPU architecture (Kepler: 35, Pascal: 60, Volta: 70 )
  86. GPU_ARCH=@gpu_arch@
  87.  
  88. # CUDA runtime (Pascal: 8.0, Volta: 9.0)
  89. CUDA_RUNTIME=@gpu_runtime@
  90.  
  91. # CUDA F90 Flags
  92. CUDA_F90FLAGS=@cuda_fflags@
  93.  
  94. # C preprocessor and preprocessing flags - for explicit preprocessing,
  95. # if needed (see the compilation rules above)
  96. # preprocessing flags must include DFLAGS and IFLAGS
  97.  
  98. CPP = @cpp@
  99. CPPFLAGS = @cppflags@ $(DFLAGS) $(IFLAGS)
  100.  
  101. # compiler flags: C, F90, F77
  102. # C flags must include DFLAGS and IFLAGS
  103. # F90 flags must include MODFLAGS, IFLAGS, and FDFLAGS with appropriate syntax
  104.  
  105. CFLAGS = @cflags@ $(DFLAGS) $(IFLAGS)
  106. F90FLAGS = @f90flags@ @pre_fdflags@$(FDFLAGS) $(CUDA_F90FLAGS) $(IFLAGS) $(MODFLAGS)
  107. FFLAGS = @fflags@
  108.  
  109. # compiler flags without optimization for fortran-77
  110. # the latter is NEEDED to properly compile dlamch.f, used by lapack
  111.  
  112. FFLAGS_NOOPT = @fflags_noopt@
  113.  
  114. # compiler flag needed by some compilers when the main program is not fortran
  115. # Currently used for Yambo
  116.  
  117. FFLAGS_NOMAIN = @fflags_nomain@
  118.  
  119. # Linker, linker-specific flags (if any)
  120. # Typically LD coincides with F90 or MPIF90, LD_LIBS is empty
  121. # for libxc, set LD_LIBS=-L/path/to/libxc/lib/ -lxcf90 -lxc
  122.  
  123. LD = @ld@
  124. LDFLAGS = @ldflags@
  125. LD_LIBS = @ld_libs@
  126.  
  127. # External Libraries (if any) : blas, lapack, fft, MPI
  128.  
  129. # If you have nothing better, use the local copy via "--with-netlib" :
  130. # BLAS_LIBS = /your/path/to/espresso/LAPACK/blas.a
  131. # BLAS_LIBS_SWITCH = internal
  132.  
  133. BLAS_LIBS = @blas_libs@
  134. BLAS_LIBS_SWITCH = @blas_libs_switch@
  135.  
  136. # If you have nothing better, use the local copy via "--with-netlib" :
  137. # LAPACK_LIBS = /your/path/to/espresso/LAPACK/lapack.a
  138. # LAPACK_LIBS_SWITCH = internal
  139. # For IBM machines with essl (-D__ESSL): load essl BEFORE lapack !
  140. # remember that LAPACK_LIBS precedes BLAS_LIBS in loading order
  141.  
  142. LAPACK_LIBS = @lapack_libs@
  143. LAPACK_LIBS_SWITCH = @lapack_libs_switch@
  144.  
  145. SCALAPACK_LIBS = @scalapack_libs@
  146.  
  147. # nothing needed here if the the internal copy of FFTW is compiled
  148. # (needs -D__FFTW in DFLAGS)
  149.  
  150. FFT_LIBS = @fft_libs@
  151.  
  152. # HDF5
  153. HDF5_LIB = @hdf5_libs@
  154. FOX_LIB = -L$(TOPDIR)/FoX/lib -lFoX_dom -lFoX_sax -lFoX_wxml -lFoX_common\
  155. -lFoX_utils -lFoX_fsys
  156. FOX_FLAGS = @foxflags@
  157. # For parallel execution, the correct path to MPI libraries must
  158. # be specified in MPI_LIBS (except for IBM if you use mpxlf)
  159.  
  160. MPI_LIBS = @mpi_libs@
  161.  
  162. # IBM-specific: MASS libraries, if available and if -D__MASS is defined in FDFLAGS
  163.  
  164. MASS_LIBS = @mass_libs@
  165.  
  166. # CUDA libraries
  167. CUDA_LIBS=@cuda_libs@
  168. CUDA_EXTLIBS = @cuda_extlibs@
  169.  
  170. # ar command and flags - for most architectures: AR = ar, ARFLAGS = ruv
  171.  
  172. AR = @ar@
  173. ARFLAGS = @arflags@
  174.  
  175. # ranlib command. If ranlib is not needed (it isn't in most cases) use
  176. # RANLIB = echo
  177.  
  178. RANLIB = @ranlib@
  179.  
  180. # all internal and external libraries - do not modify
  181.  
  182. FLIB_TARGETS = all
  183.  
  184. LIBOBJS = $(TOPDIR)/clib/clib.a $(TOPDIR)/iotk/src/libiotk.a
  185. LIBXC_LIBS = @LIBS_LIBXC@
  186. QELIBS = $(CUDA_LIBS) $(SCALAPACK_LIBS) $(LAPACK_LIBS) $(FOX_LIB) $(FFT_LIBS) $(BLAS_LIBS) $(MPI_LIBS) $(MASS_LIBS) $(HDF5_LIB) $(LIBXC_LIBS) $(LD_LIBS)
  187.  
  188. # wget or curl - useful to download from network
  189. WGET = @wget@
  190.  
  191. # Install directory - "make install" copies *.x executables there
  192. PREFIX = @prefix@
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement