- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Can anyone tell me how can give runtime inputs during using vtune?
my c code main function takes 3 command line inputs ( main (argv[]..)... )
after compiling with icc, i am generating a.out(or whatever is the name..)
now i tried to collect the cpu-clk-unhalted value using the following command
but how can I do it while running with vtune?
thanks
Can anyone tell me how can give runtime inputs during using vtune?
my c code main function takes 3 command line inputs ( main (argv[]..)... )
after compiling with icc, i am generating a.out(or whatever is the name..)
now i tried to collect the cpu-clk-unhalted value using the following command
$ vtl activity test-2 -d 600 -start-paused -c sampling -o "-cal yes -sterm yes -ec -en='CPU_CLK_UNHALTED.THREAD'
" -app ./a.out run
here i need to put the 3 params. if i was running only in command line , i would have put $ ./a.out 4 4 4but how can I do it while running with vtune?
thanks
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There is an option to give command line parameters in the setup for VTune, but it may be better to set up your application to run as a shell script, if you can put the inputs in the script, and specify that script to be run by VTune.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - tim18
There is an option to give command line parameters in the setup for VTune, but it may be better to set up your application to run as a shell script, if you can put the inputs in the script, and specify that script to be run by VTune.
Thanks. I wrote a shell script with all the parameter combinations and then ran it using vtune. its working...thanks again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am facing a different problem now. My shell script runs my application file for about 30 different parameters.
Like:
for i,j,k
./a.out $i, $j, $k // for different combinations of parameters
I need h/w counter values for all these combinations. But in the output activity file, I am getting at most 16 set of values. Is there some kind of a limit? Or is it just adding up the values for different combinations?
Like:
for i,j,k
./a.out $i, $j, $k // for different combinations of parameters
I need h/w counter values for all these combinations. But in the output activity file, I am getting at most 16 set of values. Is there some kind of a limit? Or is it just adding up the values for different combinations?
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page