1.检查store事件可行性
mpicc -g -O3 cpi.c -o cpi -lm
hpcrun -o measurement_directory -e WP_DEADSPY -e MEM_UOPS_RETIRED:ALL_STORES@100 ./cpi -t
hpcstruct cpi
hpcprof -S cpi.hpcstruct -o database_directory measurement_directory
hpcviewer database_directory-5370
2.检查load事件可行性
mpicc -g -O3 cpi.c -o cpi -lm
hpcrun -o measurement_directory -e WP_LOADSPY -e MEM_UOPS_RETIRED:ALL_LOADS@100 ./cpi -t
hpcstruct cpi
hpcprof -S cpi.hpcstruct -o database_directory measurement_directory
hpcviewer database_directory
3.reuse load store
mpicc -g -O3 cpi.c -o cpi -lm
hpcrun -o measurement_directory -e WP_TEMPORAL_REUSE -e MEM_UOPS_RETIRED:ALL_STORES@100 -e MEM_UOPS_RETIRED:ALL_LOADS@100 ./cpi -t
hpcrun -o measurement_directory -e WP_SPATIAL_REUSE -e MEM_UOPS_RETIRED:ALL_STORES@100 -e MEM_UOPS_RETIRED:ALL_LOADS@100 ./cpi -t
4.普通事件
mpicc -g -O3 cpi.c -o cpi -lm
mpirun -np 24 hpcrun --event WALLCLOCK@400 --event PAPI_FDV_INS@10000 ./cpi
hpcstruct cpi
hpcprof -S cpi.hpcstruct -o database_directory measurement_directory
hpcviewer database_directory
网友评论