- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi folks,
it seems like the ICC does not use the environment variable GMON_OUT_PREFIX. Is tehre another way to change the filename of the gmon.out file?!
thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Robert,
Looks like it works for me, which version of compiler you are using? did you build with "-p" option (or -pg)?
$ icc -v
icc version 14.0.2 (gcc version 4.8.0 compatibility)
$ icc foo.c -p
$ export GMON_OUT_PREFIX=gprof.out
$ ./a.out
$ ls gprof.out*
gprof.out.86655
$ ./a.out
$ ls gprof.out*
gprof.out.86655 gprof.out.86657
$ export GMON_OUT_PREFIX=test.out
$ ./a.out
$ ls gprof.out* test.out*
gprof.out.86655 gprof.out.86657 test.out.86667
$
Thanks,
Shenghong
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Robert,
Looks like it works for me, which version of compiler you are using? did you build with "-p" option (or -pg)?
$ icc -v
icc version 14.0.2 (gcc version 4.8.0 compatibility)
$ icc foo.c -p
$ export GMON_OUT_PREFIX=gprof.out
$ ./a.out
$ ls gprof.out*
gprof.out.86655
$ ./a.out
$ ls gprof.out*
gprof.out.86655 gprof.out.86657
$ export GMON_OUT_PREFIX=test.out
$ ./a.out
$ ls gprof.out* test.out*
gprof.out.86655 gprof.out.86657 test.out.86667
$
Thanks,
Shenghong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oh, this was my fault. I misunderstood this Variable being evaluated at compile time, not at runtime.
It works for me as well, thank you.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page