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