Skip to main content

Attributed Hierarchical Port Graph

Project description

ahp_graph - Python Attributed Hierarchical Port Graph

AHP Graphs - https://arxiv.org/pdf/1802.06492.pdf

!!! Requires Python3.9 at a minimum !!!

Ubuntu apt packages:

apt install graphviz libgraphviz-dev

RHEL/CentOS yum packages:

yum install graphviz graphviz-devel

Python3 packages:

python3 -m pip install pygraphviz orjson

Useful Tips

  • Assembly names are automatically prefixed to the expanded devices names when the graph is flattened
  • Besides graph construction, the main features that ahp_graph provides are several outputs
    • SSTGraph.build() will immediately turn your graph into SST components and begin a simulation
    • SSTGraph.write_json() will output the graph along with parameters in JSON format
    • DeviceGraph.write_dot() will output the graph in DOT format and optionally draw SVGs with them
  • All output generated by ahp_graph goes into a folder called 'output'
    • This is for the SSTGraph.write_json() and DeviceGraph.write_dot() functions
  • SST global parameters are set by adding things to the DeviceGraph attr field
  • SST component parameters are set by adding things to the Device attr field
  • You can still do normal SST Python things (examples below):
    • sst.setProgramOption()
    • sst.setStatisticLoadLevel()
    • sst.setStatisticOutput()
  • SSTGraph.build() returns a dictionary of devices with their name as the key
    • You can use this to enable statistics for devices after they are created
  • If you plan to build the graph with ahp_graph partitioning and run with MPI, remember to include the '--parallel-load=SINGLE' flag to sst
    • '--parallel-load' by default will work with multiple unique files
    • ahp_graph can generate the graph for each rank using a single file, so it needs the value 'SINGLE'
  • By default sst grabs all command line parameters
    • You can pass parameters to the python script by putting '-- ' before your script parameters

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ahp_graph-0.0.1.tar.gz (29.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ahp_graph-0.0.1-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

Details for the file ahp_graph-0.0.1.tar.gz.

File metadata

  • Download URL: ahp_graph-0.0.1.tar.gz
  • Upload date:
  • Size: 29.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for ahp_graph-0.0.1.tar.gz
Algorithm Hash digest
SHA256 edef4ecbe821dcc34022e82f20e41ecf2ee6e7ac194b77d7868c430d5fa7ea03
MD5 fc23cc39d4d385d35c265ba2450eede1
BLAKE2b-256 b5291e13365b6dd7de4d7744edf51d39811626d9cadcbe95188a05097fa4254b

See more details on using hashes here.

File details

Details for the file ahp_graph-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: ahp_graph-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 15.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for ahp_graph-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9451dd42ded8f796f052d535dc09c948ab121b688364129d8e9f70b4f184d501
MD5 fd37e9871d5d971c297e68bdbf460cfd
BLAKE2b-256 ebc1883b8b0ff5f3f748b8f457d095b2be5dfcab79e8dd35784adb50bc3e796d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page