1# $Id: makefile,v 1.24 1999/03/01 04:58:52 bsmith Exp bsmith $ 2 3ALL: 4 5CFLAGS = 6FFLAGS = 7CPPFLAGS = 8FPPFLAGS = 9LOCDIR = src/benchmarks/ 10 11EXAMPLES_1 = 12RUNEXAMPLES_1 = 13EXAMPLES_2 = 14RUNEXAMPLES_2 = 15EXAMPLES_3 = 16RUNEXAMPLES_3 = 17EXAMPLES_4 = 18RUNEXAMPLES_4 = 19EXAMPLESC = PetscTime.c PetscGetTime.c MPI_Wtime.c PLogEvent.c PetscMalloc.c \ 20 PetscMemcpy.c PetscMemzero.c PetscMemcmp.c Index.c PetscVecNorm.c \ 21 PetscGetCPUTime.c 22EXAMPLESF = 23DOCS = readme 24TESTS = PetscTime PetscGetTime MPI_Wtime PLogEvent PetscMalloc \ 25 PetscMemcpy PetscMemzero PetscMemcmp Index PetscVecNorm \ 26 PetscGetCPUTime 27 28include ${PETSC_DIR}/bmake/${PETSC_ARCH}/base 29 30PetscTime: PetscTime.o chkopts 31 -${CLINKER} -o PetscTime PetscTime.o ${PETSC_LIB} 32 ${RM} -f PetscTime.o 33 34PetscGetTime: PetscGetTime.o chkopts 35 -${CLINKER} -o PetscGetTime PetscGetTime.o ${PETSC_LIB} 36 ${RM} -f PetscGetTime.o 37 38PetscGetCPUTime: PetscGetCPUTime.o chkopts 39 -${CLINKER} -o PetscGetCPUTime PetscGetCPUTime.o ${PETSC_LIB} 40 ${RM} -f PetscGetCPUTime.o 41 42MPI_Wtime: MPI_Wtime.o chkopts 43 -${CLINKER} -o MPI_Wtime MPI_Wtime.o ${PETSC_LIB} 44 ${RM} -f MPI_Wtime.o 45 46PLogEvent: PLogEvent.o chkopts 47 -${CLINKER} -o PLogEvent PLogEvent.o ${PETSC_LIB} 48 ${RM} -f PLogEvent.o 49 50PetscMalloc: PetscMalloc.o chkopts 51 -${CLINKER} -o PetscMalloc PetscMalloc.o ${PETSC_LIB} 52 ${RM} -f PetscMalloc.o 53 54PetscMemcpy: PetscMemcpy.o chkopts 55 -${CLINKER} -o PetscMemcpy PetscMemcpy.o ${PETSC_LIB} 56 ${RM} -f PetscMemcpy.o 57 58PetscMemzero: PetscMemzero.o chkopts 59 -${CLINKER} -o PetscMemzero PetscMemzero.o ${PETSC_LIB} 60 ${RM} -f PetscMemzero.o 61 62PetscMemcmp: PetscMemcmp.o chkopts 63 -${CLINKER} -o PetscMemcmp PetscMemcmp.o ${PETSC_LIB} 64 ${RM} -f PetscMemcmp.o 65 66Index: Index.o chkopts 67 -${CLINKER} -o Index Index.o ${PETSC_LIB} 68 ${RM} -f Index.o 69 70PetscVecNorm: PetscVecNorm.o chkopts 71 -${CLINKER} -o PetscVecNorm PetscVecNorm.o ${PETSC_LIB} 72 ${RM} -f PetscVecNorm.o 73 74sizeof: sizeof.o chkopts 75 -${CLINKER} -o sizeof sizeof.o ${PETSC_LIB} 76 ${RM} -f sizeof.o 77 78test: ${TESTS} 79 80runtest: 81 -@echo "Time Taken by some PETSc routines are as follows:" 82 -@echo "------------------------------------------------" 83 -@${MPIRUN} -np 1 PetscTime > /dev/null 84 -@${MPIRUN} -np 1 PetscGetTime > /dev/null 85 -@${MPIRUN} -np 1 PetscGetCPUTime > /dev/null 86 -@${MPIRUN} -np 1 MPI_Wtime > /dev/null 87 -@echo " " 88 -@echo "PLogEventBegin and PLogEventEnd together with options" 89 -@echo "------------------------------------------------" 90 -@${MPIRUN} -np 1 PLogEvent > /dev/null 91 -@${MPIRUN} -np 1 PLogEvent -log_summary > /dev/null 92 -@${MPIRUN} -np 1 PLogEvent -log_mpe > /dev/null 93 -@echo " " 94 -@echo "PetscMalloc and PetscFree together with options" 95 -@echo "------------------------------------------------" 96 -@${MPIRUN} -np 1 PetscMalloc > /dev/null 97 -@${MPIRUN} -np 1 PetscMalloc -trmalloc > /dev/null 98 -@echo " " 99 -@echo "Memory Operations " 100 -@echo "------------------------------------------------" 101 -@${MPIRUN} -np 1 PetscMemcpy > /dev/null 102 -@${MPIRUN} -np 1 PetscMemzero > /dev/null 103 -@${MPIRUN} -np 1 PetscMemcmp > /dev/null 104 -@echo " " 105 -@echo "Memory Operations " 106 -@echo "------------------------------------------------" 107 -@${MPIRUN} -np 1 Index > /dev/null 108 109 110