taucmdr icon indicating copy to clipboard operation
taucmdr copied to clipboard

10. Symbolication support for Mac

Open khsa1 opened this issue 6 years ago • 5 comments

We need to test TAU Commander on the Mac with the new Symbolication support that is now part of TAU and see that we don’t build with -bfd=download on the Mac. I think this is the case, but we just need to verify that MPI and TAU work well with Mac. I recall seeing some issues with -opencl on the Mac with -framework opneCL that we should test.

khsa1 avatar Aug 19 '18 20:08 khsa1

  1. From Sameer's email

zbeekman avatar Oct 24 '18 16:10 zbeekman

See also #235

zbeekman avatar Oct 24 '18 16:10 zbeekman

Note to self: symbolication = translating addresses to function names

libbfd doesn't work on mac because mac is MACHO not elf.

Man sure we don't build with bfd. Use apple's built in symbolication library which is completely undocumented.... guess and hope for the best. It seems to work.

zbeekman avatar May 17 '19 16:05 zbeekman

Apple doesn't put debug symbols into executable itself, but creates a separate directory along side and puts debug info there. Private framework internally used by apple to generate call stacks. core-symbolication framework. No headers available.

https://github.com/mountainstorm/CoreSymbolication

zbeekman avatar May 17 '19 17:05 zbeekman

Note: on macOS the configure line for TAU is being passed compilers as /usr/bin/gcc and /usr/bin/g++ which are NOTE GNU compilers, but Apples llvm versions. The logic of how the compiler is picked for configuring and building TAU/PDT should be examined for this. Passing --source-inst never causes only a baseline measurement to be built & generated which can be helpful to get around this without having a completely bare initialization.

zbeekman avatar May 17 '19 17:05 zbeekman