1# $Id: makefile,v 1.21 1998/06/13 05:01:54 balay 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 = 23TESTS = PetscTime PetscGetTime MPI_Wtime PLogEvent PetscMalloc \ 24 PetscMemcpy PetscMemzero PetscMemcmp Index PetscVecNorm \ 25 PetscGetCPUTime 26 27include ${PETSC_DIR}/bmake/${PETSC_ARCH}/base 28 29PetscTime: PetscTime.o chkopts 30 -${CLINKER} -o PetscTime PetscTime.o ${PETSC_LIB} 31 ${RM} -f PetscTime.o 32 33PetscGetTime: PetscGetTime.o chkopts 34 -${CLINKER} -o PetscGetTime PetscGetTime.o ${PETSC_LIB} 35 ${RM} -f PetscGetTime.o 36 37PetscGetCPUTime: PetscGetCPUTime.o chkopts 38 -${CLINKER} -o PetscGetCPUTime PetscGetCPUTime.o ${PETSC_LIB} 39 ${RM} -f PetscGetCPUTime.o 40 41MPI_Wtime: MPI_Wtime.o chkopts 42 -${CLINKER} -o MPI_Wtime MPI_Wtime.o ${PETSC_LIB} 43 ${RM} -f MPI_Wtime.o 44 45PLogEvent: PLogEvent.o chkopts 46 -${CLINKER} -o PLogEvent PLogEvent.o ${PETSC_LIB} 47 ${RM} -f PLogEvent.o 48 49PetscMalloc: PetscMalloc.o chkopts 50 -${CLINKER} -o PetscMalloc PetscMalloc.o ${PETSC_LIB} 51 ${RM} -f PetscMalloc.o 52 53PetscMemcpy: PetscMemcpy.o chkopts 54 -${CLINKER} -o PetscMemcpy PetscMemcpy.o ${PETSC_LIB} 55 ${RM} -f PetscMemcpy.o 56 57PetscMemzero: PetscMemzero.o chkopts 58 -${CLINKER} -o PetscMemzero PetscMemzero.o ${PETSC_LIB} 59 ${RM} -f PetscMemzero.o 60 61PetscMemcmp: PetscMemcmp.o chkopts 62 -${CLINKER} -o PetscMemcmp PetscMemcmp.o ${PETSC_LIB} 63 ${RM} -f PetscMemcmp.o 64 65Index: Index.o chkopts 66 -${CLINKER} -o Index Index.o ${PETSC_LIB} 67 ${RM} -f Index.o 68 69PetscVecNorm: PetscVecNorm.o chkopts 70 -${CLINKER} -o PetscVecNorm PetscVecNorm.o ${PETSC_LIB} 71 ${RM} -f PetscVecNorm.o 72 73sizeof: sizeof.o chkopts 74 -${CLINKER} -o sizeof sizeof.o ${PETSC_LIB} 75 ${RM} -f sizeof.o 76 77test: ${TESTS} 78 79runtest: 80 -@echo "Time Taken by some PETSc routines are as follows:" 81 -@echo "------------------------------------------------" 82 -@${MPIRUN} -np 1 PetscTime > /dev/null 83 -@${MPIRUN} -np 1 PetscGetTime > /dev/null 84 -@${MPIRUN} -np 1 PetscGetCPUTime > /dev/null 85 -@${MPIRUN} -np 1 MPI_Wtime > /dev/null 86 -@echo " " 87 -@echo "PLogEventBegin and PLogEventEnd together with options" 88 -@echo "------------------------------------------------" 89 -@${MPIRUN} -np 1 PLogEvent > /dev/null 90 -@${MPIRUN} -np 1 PLogEvent -log > /dev/null 91 -@${MPIRUN} -np 1 PLogEvent -log_summary > /dev/null 92 -@${MPIRUN} -np 1 PLogEvent -log_all > /dev/null 93 -@${MPIRUN} -np 1 PLogEvent -log_mpe > /dev/null 94 -@${MPIRUN} -np 1 PLogEvent -log_mpe -log > /dev/null 95 -@echo " " 96 -@echo "PetscMalloc and PetscFree together with options" 97 -@echo "------------------------------------------------" 98 -@${MPIRUN} -np 1 PetscMalloc > /dev/null 99 -@${MPIRUN} -np 1 PetscMalloc -trmalloc > /dev/null 100 -@echo " " 101 -@echo "Memory Operations " 102 -@echo "------------------------------------------------" 103 -@${MPIRUN} -np 1 PetscMemcpy > /dev/null 104 -@${MPIRUN} -np 1 PetscMemzero > /dev/null 105 -@${MPIRUN} -np 1 PetscMemcmp > /dev/null 106 -@echo " " 107 -@echo "Memory Operations " 108 -@echo "------------------------------------------------" 109 -@${MPIRUN} -np 1 Index > /dev/null 110 111 112