Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arithmetics counter fails if only one parameter is given #831

Closed
hkaiser opened this issue Sep 3, 2013 · 4 comments
Closed

Arithmetics counter fails if only one parameter is given #831

hkaiser opened this issue Sep 3, 2013 · 4 comments
Assignees
Labels
Milestone

Comments

@hkaiser
Copy link
Member

hkaiser commented Sep 3, 2013

The performance counters /arithmetic/<operation> fail if only one counter is passed as the parameter, However, at least the counters add, multiply, and subtract should function just fine if only one argument is given.

@ghost ghost assigned hkaiser Sep 3, 2013
@hkaiser hkaiser closed this as completed in 85ebf89 Sep 3, 2013
@hkaiser
Copy link
Member Author

hkaiser commented Sep 3, 2013

Pat reported that things got even worse than before.

@hkaiser hkaiser reopened this Sep 3, 2013
@pagrubel
Copy link
Member

pagrubel commented Sep 5, 2013

now it doesn't work with -t(anything) for papi counters

$ ./bin/hpx_homogeneous_timed_task_spawn --hpx:print-counter=/papi{locality#0/worker-thread#0}/PAPI_L2_DCM -t2
/papi{locality#0/worker-thread#0}/PAPI_L2_DCM,1,0.445964,[s],9.49032e+06
OS-threads,Tasks,Delay (micro-seconds),Total Walltime (seconds),Walltime per Task (seconds)
2, 500000, 0, 0.41662, 8.33239e-07
/papi{locality#0/worker-thread#0}/PAPI_L2_DCM,2,0.446521,[s],9.49533e+06

$ ./bin/hpx_homogeneous_timed_task_spawn --hpx:print-counter=/papi{locality#0/worker-thread#*}/PAPI_L2_DCM -t2
/papi{locality#0/worker-thread#0}/PAPI_L2_DCM,1,0.446577,[s],9.19653e+06
/papi{locality#0/worker-thread#1}/PAPI_L2_DCM,1,0.446508,[s],1.00428e+07
OS-threads,Tasks,Delay (micro-seconds),Total Walltime (seconds),Walltime per Task (seconds)
2, 500000, 0, 0.421105, 8.42211e-07
/papi{locality#0/worker-thread#0}/PAPI_L2_DCM,2,0.447090,[s],9.19973e+06
/papi{locality#0/worker-thread#1}/PAPI_L2_DCM,2,0.447175,[s],1.00495e+07

$ ./bin/hpx_homogeneous_timed_task_spawn --hpx:print-counter=/arithmetics/add@/papi{locality#0/worker-thread#*}/PAPI_L2_DCM -t2
Segmentation fault

$ ./bin/hpx_homogeneous_timed_task_spawn --hpx:print-counter=/arithmetics/add@/papi{locality#0/worker-thread#*}/PAPI_L2_DCM -t4
Segmentation fault

NON papi counter
~/build/hpx_build0905$ ./bin/hpx_homogeneous_timed_task_spawn --hpx:print-counter=/threads{locality#0/worker-thread#*}/idle-rate -t2
/threads{locality#0/worker-thread#0}/idle-rate,1,0.442862,[s],794,[0.1%]
/threads{locality#0/worker-thread#1}/idle-rate,1,0.442825,[s],619,[0.1%]
OS-threads,Tasks,Delay (micro-seconds),Total Walltime (seconds),Walltime per Task (seconds)
2, 500000, 0, 0.41351, 8.27021e-07
/threads{locality#0/worker-thread#0}/idle-rate,2,0.443414,[s],793,[0.1%]
/threads{locality#0/worker-thread#1}/idle-rate,2,0.443419,[s],619,[0.1%]

$ ./bin/hpx_homogeneous_timed_task_spawn --hpx:print-counter=/arithmetics/add@/threads{locality#0/worker-thread#}/idle-rate -t4
/arithmetics/add@/threads{locality#0/worker-thread#
}/idle-rate,1,0.298673,[s],2895
OS-threads,Tasks,Delay (micro-seconds),Total Walltime (seconds),Walltime per Task (seconds)
4, 500000, 0, 0.270387, 5.40774e-07
/arithmetics/add@/threads{locality#0/worker-thread#*}/idle-rate,2,0.299297,[s],2895

./bin/hpx_homogeneous_timed_task_spawn --hpx:print-counter=/arithmetics/add@/threads{locality#0/worker-thread#}/idle-rate -t1
/arithmetics/add@/threads{locality#0/worker-thread#
}/idle-rate,1,0.605426,[s],654
OS-threads,Tasks,Delay (micro-seconds),Total Walltime (seconds),Walltime per Task (seconds)
1, 500000, 0, 0.577455, 1.15491e-06
/arithmetics/add@/threads{locality#0/worker-thread#*}/idle-rate,2,0.605984,[s],654

@pagrubel
Copy link
Member

pagrubel commented Sep 5, 2013

So I cannot use papi counters at all with top of trunk

@hkaiser
Copy link
Member Author

hkaiser commented Sep 6, 2013

This is fixed by a9c9b1d

@hkaiser hkaiser closed this as completed Sep 6, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants