Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolution of function names in profiler timeline. #6

Merged
merged 3 commits into from
Feb 20, 2016

Conversation

vinaydes
Copy link
Contributor

Changed Makefile to compile the host code with -export-dynamic flag. This is necessary for the resolution of function names in compiler instrumented entry and exit functions.

…is compiled with this flag, the function names are displayed in the profiler time-lines.

compiler_inst_nvtx: compiler_inst_nvtx.cu Makefile inst_nvtx.o
nvcc -Xcompiler -fPIC -Xcompiler -finstrument-functions -arch=sm_20 inst_nvtx.o -ldl -lnvToolsExt -o compiler_inst_nvtx compiler_inst_nvtx.cu
compiler_inst_nvtx: compiler_inst_nvtx1.cu Makefile inst_nvtx.o
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why compiler_inst_nvtx1.cu and not compiler_inst_nvtx.cu? compiler_inst_nvtx1.cu is not in the repository so that should be compiler_inst_nvtx.cu.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is correct. compiler_inst_nvtx1.cu was experimental file I made. Should I create another pull request?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can modify this one, I believe. Either way, please make it right before
I accept.

Thanks,
Mark

On Fri, Feb 19, 2016 at 8:58 PM Vinay Deshpande notifications@github.com
wrote:

In posts/nvtx/Makefile
#6 (comment)
:

-compiler_inst_nvtx: compiler_inst_nvtx.cu Makefile inst_nvtx.o

  • nvcc -Xcompiler -fPIC -Xcompiler -finstrument-functions -arch=sm_20 inst_nvtx.o -ldl -lnvToolsExt -o compiler_inst_nvtx compiler_inst_nvtx.cu
    +compiler_inst_nvtx: compiler_inst_nvtx1.cu Makefile inst_nvtx.o

That is correct. compiler_inst_nvtx1.cu was experimental file I made.
Should I create another pull request?


Reply to this email directly or view it on GitHub
https://github.com/parallel-forall/code-samples/pull/6/files#r53441701.

harrism added a commit that referenced this pull request Feb 20, 2016
Resolution of function names in profiler timeline.
@harrism harrism merged commit 5f1606a into NVIDIA-developer-blog:master Feb 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants