Skip to content
This repository was archived by the owner on Mar 25, 2025. It is now read-only.
This repository was archived by the owner on Mar 25, 2025. It is now read-only.

Adding debug information for JIT compiled kernel? #592

Description

@pramodk

(This is low priority ticket but creating this so that it's on our list)

For benchmarking purpose I was running llvm backend benchmarks under VTune with the intention of finding nrn_state hotspot then can check type of assembly instructions generated and check various performance metrics. But it seems like due to lack of debug symbols (?), we don't see information about name of kernel.

For example, on Ubuntu box that we got access to:

. /opt/intel/oneapi/setvars.sh

vtune -collect hotspots -knob sampling-mode=hw -knob sampling-interval=0.5 ./bin/nmodl ../test.mod llvm --ir --vector-width 1 benchmark --run --instance-size 100000000 --repeat 15 --backend default

and then looking at generated result:

vtune-gui r000hs/

(see top functions with Outside any known module)

image

Or, with call stack information:

vtune -collect hotspots -call-stack-mode all -- ./bin/nmodl ../test.mod llvm --ir --vector-width 1 benchmark --run --instance-size 100000000 --repeat 30 --backend default
vtune-gui r000hs/

image

cc: @georgemitenkov @iomaganaris @castigli

Metadata

Metadata

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions