Skip to content

Commit

Permalink
Cleaned up tracing compile procedure.
Browse files Browse the repository at this point in the history
  • Loading branch information
kssheridan committed Jul 9, 2024
1 parent 91aa7a8 commit 1a6f98c
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 128 deletions.
File renamed without changes.
26 changes: 0 additions & 26 deletions pin_tracing/ImemROI/makefile

This file was deleted.

85 changes: 0 additions & 85 deletions pin_tracing/ImemROI/makefile.rules

This file was deleted.

File renamed without changes.
File renamed without changes.
22 changes: 5 additions & 17 deletions pin_tracing/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,9 @@ module load gcc #or make sure you have gcc. Tested with 9.4.0 and 11.3.0
tar zxvf <pin.file.tar.gz>
export PIN_DIR=<pin_dir> # full path
export PIN_ROOT=<pin_dir> # full path
cp -rv pin_tracing/ImemROI $PIN_DIR/source/tools
cd $PIN_DIR/source/tools
#add ImemROI to the list of clients in makefile
vim makefile
#Compile clients. Some clients may not compile, that is OK.
make -j
#check that clients compiled:
ls -al $PIN_DIR/source/tools/ImemROI/obj-intel64/*.so
make -j
make
```

There are three clients. You can run your application with multiple threads and multiple processes (ranks), but only process 0 with thread 0 will be used. *** NOTE *** make sure you gzip the trace before using gs_patterns.
Expand Down Expand Up @@ -55,8 +43,8 @@ For ImemROIThreadsRange, I first like to use ImemInscount to get the total numbe

Example:
```
$PIN_DIR/pin -t $PIN_DIR/source/tools/ImemROI/obj-intel64/ImemInscount.so -- ./hello
$PIN_DIR/pin -t $PIN_DIR/source/tools/ImemROI/obj-intel64/ImemROIThreadsRange.so -- ./hello
$PIN_DIR/pin -t $PIN_DIR/source/tools/ImemROI/obj-intel64/ImemROIThreads.so -- ./hello
$PIN_ROOT/pin -t obj-intel64/ImemInscount.so -- ./hello
$PIN_ROOT/pin -t obj-intel64/ImemROIThreadsRange.so -- ./hello
$PIN_ROOT/pin -t obj-intel64/ImemROIThreads.so -- ./hello
gzip roitrace.bin
```
5 changes: 5 additions & 0 deletions pin_tracing/makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
CONFIG_ROOT := $(PIN_ROOT)/source/tools/Config
TOOL_ROOTS := ImemInscount ImemROIThreads ImemROIThreadsRange

include $(CONFIG_ROOT)/makefile.config
include $(TOOLS_ROOT)/Config/makefile.default.rules

0 comments on commit 1a6f98c

Please sign in to comment.