- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Wanted to see if TBB works with Purify.
Tried purify g++ -g -ltbb -o matrixMUL matrixMUL.cpp
and got this error:
Instrumenting:
Purify engine: Error: Couldn't open file libtbb.so.2: skipping.
ccxEPWiV.o
Purify engine: Error: Errors detected while instrumenting files.
Linking suppressed.
(To force continuation, use "purify -best-effort $(CC) ...".)
I couldn't find any libtbb.so.2 files on my system. I had downloaded the TBB source and run gmake.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Same problem with quantify:
Instrumenting: crt1.o crti.o crtbegin.o
Quantify engine: Error: Couldn't open file libtbb.so.2: skipping.
ccAdctrX.o libstdc++.so.6 libm.so.6 libgcc_s.so.1 libgcc.a......................................................................... libc.so.6 libc_nonshared.a.............. crtend.o crtn.o libdl.so.2
Quantify engine: Error: Errors detected while instrumenting files.
Linking suppressed.
(To force continuation, use "quantify -best-effort $(CC) ...".)
could anyone help with an explanation?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Then you should find the files in build/linux_
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Found it! Do I need to set some path variables so that Purify and Quantify would be able to find it?
I've already set these paths in .bashrc:
export TBB22_INSTALL_DIR="/home/username/TBB/tbbSource"
export CPATH="/home/username/TBB/tbbSource/include"
export LIBRARY_PATH="/home/username/TBB/tbbSource/build/linux_ia32_gcc_cc4.1.2_libc2.7_kernel2.6.23.1_release"
export LD_LIBRARY_PATH="/home/username/TBB/tbbSource/build/linux_ia32_gcc_cc4.1.2_libc2.7_kernel2.6.23.1_release"
Anything else other than these?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The same directory should also contain tbbvars.
By the way, TBB22_INSTALL_DIR is useful to ease running our examples, but not required for TBB to function.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ran the script in the debug folder too. Checked whether the path got set by echo'ing the variable. It was set.
Ran purify to encounter the same error. Somehow, purify is not able to find the libtbb.so.2 file even though the path is set.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Unfortunately I do not know much about Purify and where it looks for shared libraries. I guessyou tried to build the app with plain GCC first, just to check that the environment is fine?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Alexy. Yes the application compiles and runs fine without Purify.
I was surprised that this thread got >1800 views so suddenly. I was under the impression that somebody was very keenly following up on why this doesn't work.
I would appreciate any help from anyone who knows what went wrong.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page