Skip to content

Commit

Permalink
chore: Remove instrumentation legacy code
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickkenney9801 committed Apr 2, 2024
1 parent 7473628 commit 73d2c36
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 384 deletions.
4 changes: 0 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,6 @@ if(GALOIS_ENABLE_PAPI)
add_definitions(-DGALOIS_ENABLE_PAPI)
endif()

if (GALOIS_ENABLE_INSTRUMENT)
add_definitions(-DGALOIS_INSTRUMENT)
endif()

find_package(Threads REQUIRED)

include(CheckMmap)
Expand Down
39 changes: 0 additions & 39 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,45 +12,6 @@ Users can run `make docker-image` to setup all dependecies needed for
`pando-galois`. After creating the image it can be run via `make docker`.
And for first time cmake users can run `make run-cmake`.

# Instrumentation

This section pertains to enabling and instrumenting memory accesses for
performance projections on the theoretical PANDO hardware.

In order for the instrumentation code in `libwmd/include/galois/wmd/instrument.h`,
the following should be added to your top level source directory:

```cmake
set(GALOIS_ENABLE_INSTRUMENT ON)
if (GALOIS_ENABLE_INSTRUMENT)
add_definitions(-DGALOIS_INSTRUMENT)
endif()
```

Here is a description of the control-flow macros used by the instrumentation
and when they should be used.

```cpp
// Should be called once at the start of the program to initialize the instrumentation
// For example specifying `GRAPH_NAME=example-graph` will result in instrumentation
// files starting with `example-graph`
I_INIT(GRAPH_NAME, HOST, NUM_HOSTS, NUM_EDGES)
// Should be called once at the end of the program to cleanup the instrumentation
I_DEINIT()
// Should be called after the first kernel measured if multiple kernels are being measured
// For example if you specified `GRAPH_NAME=example-graph` above then specifying here that
// `NAME_SUFFIX=-kernel2` will result in instrumentation files starting `example-graph-kernel2`
I_NEW_FILE(NAME_SUFFIX, NUM_EDGES)
// I_ROUND should be called at the end of a communication round to log all memory accesses
// and communication recorded into instrumentation files
// I_CLEAR should be called after I_ROUND
I_ROUND(ROUND_NUM)
I_CLEAR()
// Should be called when sending custom communication to a remote host, recommended practice
// is to just pass in the size of the SendBuffer you are using
I_LC(REMOTE_HOST, BYTES)
```
## Tools

### [asdf](https://asdf-vm.com)
Expand Down
1 change: 0 additions & 1 deletion libcusp/include/galois/graphs/BasePolicies.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ class ReadMasterAssignment : public PartitioningScaffold {
assert(false);
return _numHosts;
} else {
// double check this makes sense given that gids are user ids
return _virtualToPhyMapping[gid % (_virtualToPhyMapping.size())];
}
}
Expand Down
Loading

0 comments on commit 73d2c36

Please sign in to comment.