Wanted to see if TBB works with Purify.
Tried purify g++ -g -ltbb -o matrixMUL matrixMUL.cpp
and got this error:
Purify engine: Error: Couldn't open file libtbb.so.2: skipping.
Purify engine: Error: Errors detected while instrumenting files.
(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.
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.
(To force continuation, use "quantify -best-effort $(CC) ...".)
could anyone help with an explanation?
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:
Anything else other than these?
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.
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.
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?
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.