Skip to content

Commit

Permalink
Microbench -> Scope
Browse files Browse the repository at this point in the history
  • Loading branch information
cwpearson committed Jul 22, 2018
2 parents c674a9c + 7271ee6 commit 9b261c3
Show file tree
Hide file tree
Showing 40 changed files with 183 additions and 427 deletions.
7 changes: 7 additions & 0 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[bumpversion]
current_version = 0.1.2
commit = True
tag = True

[bumpversion:file:scope_plot/__init__.py]

2 changes: 1 addition & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[run]
include =
microbench_plot/*
scope_plot/*

[report]
exclude_lines =
Expand Down
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#### Version / Platform Info
- MicrobenchPlot Version:
- ScopePlot Version:
- Happens in latest version? (Yes/No):
- Known Operating System(s) affected__:
- [ ] Windows
Expand All @@ -21,7 +21,7 @@ This will significantly speed up the amount of time it
takes to debug and resolve the issue for our contributors.

```python
import microbench_plot
import scope_plot

# Please show the smallest possible example where
# the issue occurs. This will drastically decrease
Expand Down
13 changes: 3 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ after_success:
jobs:
include:
# pycodestyle Style Checking
- python: 3.5
- python: 3.6
env: TOXENV=pycodestyle

# Documentation
Expand Down Expand Up @@ -59,11 +59,11 @@ jobs:
deploy:
provider: pypi
user: ${PYPI_USER}
server: https://testpypi.python.org/pypi # Remove for deployment to official PyPi repo
password:
secure: ${PYPI_PASSWORD}
skip_cleanup: true
on:
branch: master
tags: true
allow_failures:
- python: nightly
env: TOXENV=py37
Expand All @@ -76,10 +76,3 @@ jobs:
notifications:
email: false

branches:
only:
- master
- release
- develop
- ci

8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Changelog
=========

Release 0.1.2 (Development)
---------------------------

* rename to `scope_plot`
* Initial support for `spec` and `bar` subcommands.
7 changes: 0 additions & 7 deletions CHANGELOG.rst

This file was deleted.

22 changes: 22 additions & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Contributors
------------

## Author & Maintainer

* Abdul Dakkak <dakkak@illinois.edu>
* Carl Pearson <pearson@illinois.edu>

## Contributors

In chronological order:

* Abdul Dakkak <dakkak@illinois.edu>
* Started the project
* Carl Pearson <pearson@illinois.edu>
* Added CUDA communication benchmarks
* Sarah Hashash <hashash2@illinois.edu>
* Added full-duplex CUDA memcpy benchmarks

## Generating a Release

See [RELEASE.md](RELEASE.md) for instructions on how to create a new release.
15 changes: 0 additions & 15 deletions CONTRIBUTORS.rst

This file was deleted.

2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include README.rst CHANGELOG.rst LICENSE.txt CONTRIBUTORS.txt requirements.txt dev-requirements.txt
include README.md CHANGELOG.md LICENSE.txt CONTRIBUTORS.txt requirements.txt dev-requirements.txt
recursive-include tests *
recursive-include docs *
recursive-exclude docs/_build *
37 changes: 18 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,34 +1,33 @@
MicrobenchPlot
=======
# ScopePlot

[![Build Status](https://travis-ci.com/rai-project/scope_plot.svg?branch=master)](https://travis-ci.com/rai-project/scope_plot)

[![Build Status](https://travis-ci.com/rai-project/microbench_plot.svg?branch=master)](https://travis-ci.com/rai-project/microbench_plot)

Plot Google Benchmark results

Getting Started with MicrobenchPlot
----------------------------
## Getting Started with ScopePlot

MicrobenchPlot is available on TestPyPI can be installed with [pip](https://pip.pypa.io).
ScopePlot is available on [PyPI](https://pypi.org/project/scope-plot/) can be installed with `pip`

$ python -m pip install --user --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple microbench_plot
$ python -m pip install scope_plot

To install the latest development version from [Github](https://github.com/rai-project/microbench_plot).
To install the latest development version from [Github](https://github.com/rai-project/scope_plot)

$ python -m pip install git+git://github.com/rai-project/microbench_plot.git
$ python -m pip install git+git://github.com/rai-project/scope_plot.git

If your current Python installation doesn't have pip available, try `get-pip.py <bootstrap.pypa.io>`
If your current Python installation doesn't have pip available, try [get-pip.py](bootstrap.pypa.io)

After installing MicrobenchPlot you can use it like any other Python module.
After installing ScopePlot you can use it like any other Python module.
Here's a very simple example:

```python
python -m microbench_plot bar benchmark.json
```bash
$ python -m scope_plot bar data.json
```

There are multiple subcommands available

```
$ python -m microbench_plot --help
$ python -m scope_plot --help
Usage: __main__.py [OPTIONS] COMMAND [ARGS]...
Expand All @@ -43,27 +42,27 @@ Commands:
spec Create a figure from a spec file
```

More information about the subcommands can be accessed with `python -m microbench_plot COMMAND --help`, and also in the documentation: [bar](docs/bar.md), [spec](docs/spec.md), [deps](docs/makefiles.md).
More information about the subcommands can be accessed with `python -m scope_plot COMMAND --help`, and also in the documentation: [bar](docs/bar.md), [spec](docs/spec.md), [deps](docs/makefiles.md).

API Reference
-------------

More coming soon...
coming soon...

Support / Report Issues
-----------------------

All support requests and issue reports should be
[filed on Github as an issue](https://github.com/rai-project/microbench_plot/issues)
[filed on Github as an issue](https://github.com/rai-project/scope_plot/issues).
Make sure to follow the template so your request may be as handled as quickly as possible.
Please respect contributors by not using personal contacts for support requests.

Contributing
------------

Guidance coming soon...
We happily welcome contributions, please see [our guide for Contributors](CONTRIBUTORS.md) for the best places to start and help.

License
-------

microbench_plot is made available under the MIT License. For more details, see [LICENSE.txt]( <https://github.com/rai-project/microbench_plot/blob/master/LICENSE.txt).
scope_plot is made available under the MIT License. For more details, see [LICENSE.txt](https://github.com/rai-project/scope_plot/blob/master/LICENSE.txt).
33 changes: 33 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Steps to Release ScopePlot

These are the steps to take to create a release of the module ``scope_plot``:

1. Switch to the master branch

```bash
git checkout master
```

2. Run bump2version

0. Install bump2version (if needed)
```bash
pip install --user bump2version
```
1. Run bump2version with `patch`, `minor`, or `major`.
```bash
bump2version --verbose patch
```
3. Update `CHANGELOG.md` and commit.

```bash
git add CHANGELOG.md
```

4. Add and commit the changes.

```bash
git push && git push --tags
```

4. Wait for [Travis](travis-ci.com/rai-project/scope_plot) to test/push.
30 changes: 0 additions & 30 deletions RELEASE.rst

This file was deleted.

2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# MicrobenchPlot
# ScopePlot
8 changes: 4 additions & 4 deletions docs/bar.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# microbench_plot bar
# scope_plot bar

MicrobenchPlot can be used to generate bar graphs without a full spec file.
ScopePlot can be used to generate bar graphs without a full spec file.
For example

```
$ python -m microbench_plot bar --help
$ python -m scope_plot bar --help
Usage: __main__.py bar [OPTIONS] BENCHMARK OUTPUT
Expand All @@ -20,5 +20,5 @@ Options:
The options allow you to plot only certain entries in the file, and to select specific fields from those benchmark entries to work as the x and y axis of the plot.

```bash
python -m microbench_plot bar benchmark.json results.pdf --name-regex "NUMAUM_Prefetch_GPUToHost/.*/0/0" --y-field "bytes_per_second" --x-field=bytes
python -m scope_plot bar benchmark.json results.pdf --name-regex "NUMAUM_Prefetch_GPUToHost/.*/0/0" --y-field "bytes_per_second" --x-field=bytes
```
4 changes: 2 additions & 2 deletions docs/makefiles.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ Here is an exmaple makefile for a directory organized in this way::
└── specs
└── ac922_prefetch_cpu-gpu.yml

The `data` directory contains microbench data files.
The `deps` directory will contain dependence files generated by microbench_plot
The `data` directory contains Google Benchmark data files.
The `deps` directory will contain dependence files generated by ScopePlot
The `spec` directory contains specs to describe each generated figure
The `generated` directory will contain one generated figure for each spec files

Expand Down
1 change: 0 additions & 1 deletion docs/source/_templates/fonts.html

This file was deleted.

29 changes: 0 additions & 29 deletions docs/source/about.rst

This file was deleted.

4 changes: 0 additions & 4 deletions docs/source/api_reference/index.rst

This file was deleted.

1 change: 0 additions & 1 deletion docs/source/changelog.rst

This file was deleted.

Loading

0 comments on commit 9b261c3

Please sign in to comment.