1 2ALL: 3 4CFLAGS = 5FFLAGS = 6CPPFLAGS = 7FPPFLAGS = 8LOCDIR = src/benchmarks/streams/ 9EXAMPLESC = BasicVersion.c MPIVersion.c OpenMPVersion.c SSEVersion.c PthreadVersion.c 10EXAMPLESF = 11TESTS = BasicVersion OpenMPVersion 12MANSEC = Sys 13 14include ${PETSC_DIR}/conf/variables 15include ${PETSC_DIR}/conf/rules 16include ${PETSC_DIR}/conf/test 17 18BasicVersion: BasicVersion.o chkopts 19 -@${CLINKER} -o BasicVersion BasicVersion.o ${PETSC_LIB} 20 @${RM} -f BasicVersion.o 21 22MPIVersion: MPIVersion.o chkopts 23 -@${CLINKER} -o MPIVersion MPIVersion.o ${PETSC_LIB} 24 @${RM} -f MPIVersion.o 25 26OpenMPVersion: OpenMPVersion.o chkopts 27 -@${CLINKER} -o OpenMPVersion OpenMPVersion.o ${PETSC_LIB} 28 @${RM} -f OpenMPVersion.o 29 30SSEVersion: SSEVersion.o chkopts 31 -${CLINKER} -o $@ $< ${PETSC_LIB} 32 ${RM} -f $< 33 34PthreadVersion: PthreadVersion.o chkopts 35 -@${CLINKER} -o PthreadVersion PthreadVersion.o ${PETSC_LIB} 36 @${RM} -f PthreadVersion.o 37 38stream: MPIVersion 39 @if [ "${NPMAX}foo" = "foo" ]; then echo "---------"; echo " Run with make streams NPMAX=<integer number of MPI processes to use>"; exit 1 ; fi 40 -@printf "" > scaling.log 41 -@i=0; while [ $${i} -lt ${NPMAX} ]; do i=`expr $${i} + 1`; \ 42 ${MPIEXEC} -n $${i} ./MPIVersion | tee -a scaling.log; \ 43 done 44 -@echo "------------------------------------------------" 45 -@${PYTHON} process.py createfile 46 47hwloc: 48 -@if [ "${LSTOPO}foo" != "foo" ]; then ${LSTOPO} --no-icaches --no-io --ignore PU ; fi 49 50streams: stream hwloc 51 -@${PYTHON} process.py 52 53 54