xref: /petsc/src/benchmarks/makefile (revision 5e642da6b4a46709adce9ab5b0b0e76c08844485)
1-include ../../petscdir.mk
2
3ALL:
4
5MANSEC    = Sys
6
7include ${PETSC_DIR}/lib/petsc/conf/variables
8include ${PETSC_DIR}/lib/petsc/conf/rules
9
10PetscTime: PetscTime.o
11	-${CLINKER} -o PetscTime PetscTime.o ${PETSC_LIB}
12	${RM} -f PetscTime.o
13
14PetscGetTime: PetscGetTime.o
15	-${CLINKER} -o PetscGetTime PetscGetTime.o ${PETSC_LIB}
16	${RM} -f PetscGetTime.o
17
18PetscGetCPUTime: PetscGetCPUTime.o
19	-${CLINKER} -o PetscGetCPUTime PetscGetCPUTime.o ${PETSC_LIB}
20	${RM} -f PetscGetCPUTime.o
21
22MPI_Wtime: MPI_Wtime.o
23	-${CLINKER} -o MPI_Wtime MPI_Wtime.o ${PETSC_LIB}
24	${RM} -f MPI_Wtime.o
25
26PLogEvent: PLogEvent.o
27	-${CLINKER} -o PLogEvent PLogEvent.o ${PETSC_LIB}
28	${RM} -f PLogEvent.o
29
30PetscMalloc: PetscMalloc.o
31	-${CLINKER} -o PetscMalloc PetscMalloc.o ${PETSC_LIB}
32	${RM} -f PetscMalloc.o
33
34PetscMemcpy: PetscMemcpy.o
35	-${CLINKER} -o PetscMemcpy PetscMemcpy.o ${PETSC_LIB}
36	${RM} -f PetscMemcpy.o
37
38PetscMemzero: PetscMemzero.o
39	-${CLINKER} -o PetscMemzero PetscMemzero.o ${PETSC_LIB}
40	${RM} -f PetscMemzero.o
41
42PetscMemcmp: PetscMemcmp.o
43	-${CLINKER} -o PetscMemcmp PetscMemcmp.o ${PETSC_LIB}
44	${RM} -f PetscMemcmp.o
45
46Index: Index.o
47	-${CLINKER} -o Index Index.o ${PETSC_LIB}
48	${RM} -f Index.o
49
50PetscVecNorm: PetscVecNorm.o
51	-${CLINKER} -o PetscVecNorm PetscVecNorm.o ${PETSC_LIB}
52	${RM} -f PetscVecNorm.o
53
54sizeof: sizeof.o
55	-${CLINKER} -o sizeof sizeof.o ${PETSC_LIB}
56	${RM} -f sizeof.o
57
58test: ${TESTS}
59
60runtest:
61	-@echo "Time Taken by some PETSc routines are as follows:"
62	-@echo "------------------------------------------------"
63	-@${MPIEXEC} -n 1 ./PetscTime
64	-@${MPIEXEC} -n 1 ./PetscGetTime
65	-@${MPIEXEC} -n 1 ./PetscGetCPUTime
66	-@${MPIEXEC} -n 1 ./MPI_Wtime
67	-@echo " "
68	-@echo "PLogEventBegin and PLogEventEnd together with options"
69	-@echo "------------------------------------------------"
70	-@${MPIEXEC} -n 1 ./PLogEvent              > /dev/null
71	-@${MPIEXEC} -n 1 ./PLogEvent -log_view > /dev/null
72	-@${MPIEXEC} -n 1 ./PLogEvent -log_mpe     > /dev/null
73	-@echo " "
74	-@echo "PetscMalloc and PetscFree together  with options"
75	-@echo "------------------------------------------------"
76	-@${MPIEXEC} -n 1 ./PetscMalloc
77	-@${MPIEXEC} -n 1 ./PetscMalloc -malloc
78	-@echo " "
79	-@echo "Memory Operations "
80	-@echo "------------------------------------------------"
81	-@${MPIEXEC} -n 1 ./PetscMemcpy
82	-@${MPIEXEC} -n 1 ./PetscMemzero
83	-@${MPIEXEC} -n 1 ./PetscMemcmp
84	-@echo " "
85	-@echo "Memory Operations "
86	-@echo "------------------------------------------------"
87	-@${MPIEXEC} -n 1 ./Index
88	-@echo " "
89	-@echo "Datatype Sizes "
90	-@echo "------------------------------------------------"
91	-@${MPIEXEC} -n 1 ./sizeof
92	-@echo "------------------------------------------------"
93