- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I'm trying to get stats for an OpenMP program using `pcm.x "path/to/executable"` after setting OMP_NUM_THEADS environment variable to `1`. PCM doesn't seem to respect that. It runs the program on all the available cores. Tried `pcm.x "export OMP_NUM_THREADS=1 && path/to/executable"` and also `pcm.x "OMP_NUM_THEADS=1 path/to/executable"`. Both doesn't work.
Any help on how to get this done is much appreciated.
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
you can try to put the two lines
export OMP_NUM_THREADS=1
path/to/executable
into "run.sh" script
and then execute pcm.x "sh run.sh"
Roman
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Roman,
Thanks for the reply. But, wouldn't that pollute the numbers obtained ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If your program runs > 1 second I would say no.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks :)

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