Skip to content

Commit 5f1606a

Browse files
committed
Merge pull request #6 from vinaydes/master
Resolution of function names in profiler timeline.
2 parents 2ea2403 + 91d38e9 commit 5f1606a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

posts/nvtx/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ BINARIES=manual_nvtx compiler_inst_nvtx
3333
all: $(BINARIES)
3434

3535
inst_nvtx.o: inst_nvtx.cpp Makefile
36-
g++ -fPIC -I${CUDA_ROOT}/include -c inst_nvtx.cpp
36+
g++ -export-dynamic -fPIC -I${CUDA_ROOT}/include -c inst_nvtx.cpp
3737

3838
manual_nvtx: manual_nvtx.cu Makefile
39-
nvcc -DUSE_NVTX -arch=sm_20 -lnvToolsExt -o manual_nvtx manual_nvtx.cu
39+
nvcc -Xcompiler -export-dynamic -DUSE_NVTX -arch=sm_20 -lnvToolsExt -o manual_nvtx manual_nvtx.cu
4040

4141
compiler_inst_nvtx: compiler_inst_nvtx.cu Makefile inst_nvtx.o
42-
nvcc -Xcompiler -fPIC -Xcompiler -finstrument-functions -arch=sm_20 inst_nvtx.o -ldl -lnvToolsExt -o compiler_inst_nvtx compiler_inst_nvtx.cu
42+
nvcc -Xcompiler -export-dynamic -Xcompiler -fPIC -Xcompiler -finstrument-functions -arch=sm_20 inst_nvtx.o -ldl -lnvToolsExt -o compiler_inst_nvtx compiler_inst_nvtx1.cu
4343

4444
clean:
4545
rm -f *.o $(BINARIES)

0 commit comments

Comments
 (0)