Commit Graph

171 Commits

Author SHA1 Message Date
Allison Vacanti
270ddcbbbf Fix link to timer example. 2021-03-09 20:07:58 -05:00
Allison Vacanti
f15b668b03 Add nvbench.test.all and nvbench.example.all metatargets. 2021-03-09 16:03:14 -05:00
Allison Vacanti
3fc75f5ea6 Add more examples.
- exec_tag_timer
- exec_tag_sync
- skip
- throughput
2021-03-09 16:03:14 -05:00
Allison Vacanti
3d83fe20ac Return early on skip. 2021-03-08 23:23:45 -05:00
Allison Vacanti
c24f0228ac Typos. 2021-03-08 23:22:12 -05:00
Allison Vacanti
cc01d8863c Fix copyright year. 2021-03-08 18:39:27 -05:00
Allison Vacanti
ca2ed3e9be Example kernels need streams... 2021-03-08 18:36:59 -05:00
Allison Vacanti
33aa9e1a07 Update README to link to the new example. 2021-03-08 18:26:26 -05:00
Allison Vacanti
0138a4eeaa Use reasonable default format string for floats.
This matches what markdown_printer does to avoid fp noise.
2021-03-08 18:26:26 -05:00
Allison Vacanti
c133784763 Add the first example.
- New NVBench_ENABLE_EXAMPLES CMake option.
- examples/axis.cu provides examples of parameter sweeps.
- Moves testing/sleep_kernel.cuh -> nvbench/test_kernels.cuh
  - Accessible to examples and provides some built-in kernels for users
    to experiement with.
  - Not included with `<nvbench/nvbench.cuh>`.
2021-03-08 18:26:26 -05:00
Allison Vacanti
b01b8fe8dc Clean up exec_tags.
We really only need to expose `timer` and `sync`.
2021-03-06 09:35:56 -05:00
Allison Vacanti
845c9ac662 Add state::get_axis_values_as_string for JSON output. 2021-03-05 18:58:36 -05:00
Allison Vacanti
922a6d09d0 Add --json option to CLI docs. 2021-03-05 16:37:23 -05:00
Allison Vacanti
8afba6c86a Use CMake to generate --help strings from markdown docs. 2021-03-05 16:37:18 -05:00
Allison Vacanti
27eb2b81ff Fail gracefully when PTX is not found for a device. 2021-03-05 10:50:57 -05:00
Allison Vacanti
b1269b2f7f Add json_printer.
The new dependency emits some warnings from it's header. We'll need
to suppress / fix those.
2021-03-05 10:50:41 -05:00
Allison Vacanti
acf076ec02 Add missing [[nodiscard]]. 2021-03-04 23:24:51 -05:00
Allison Vacanti
33fa0c773f Typo. 2021-03-04 23:24:37 -05:00
Allison Vacanti
65bc2c1e3f Documentation overhaul.
Revamp README, split into multiple files. Add docs on CLI.

Add `--help` and `--help-axis`.
2021-03-04 18:40:23 -05:00
Allison Vacanti
92fb4c7486 Link to NVBench Demo from README. 2021-03-04 16:26:01 -05:00
Allison Vacanti
b8876db858 Added CODE_OF_CONDUCT.md. 2021-03-04 16:17:53 -05:00
Allison Vacanti
430d5cedee Add .clang-format. 2021-03-04 16:03:11 -05:00
Allison Vacanti
078919b6b4 Add LICENSE file and boilerplate.
for i in `find  ./ -regex ".*\.cuh?$"`
do
  sh -c "cat ~/boilerplate ${i} > tmp && mv tmp ${i}"
done
2021-03-04 16:03:02 -05:00
Allison Vacanti
b1327b5f2b Expand summary documentation. 2021-03-04 07:19:37 -05:00
Allison Vacanti
ba6c8075c1 Update summary name to current conventions. 2021-03-04 07:19:18 -05:00
Allison Vacanti
b562934a46 Style fix for enum. 2021-03-04 07:00:14 -05:00
Allison Vacanti
a588af92fa Simplify file opening logic. 2021-03-03 21:37:09 -05:00
Allison Vacanti
b858b2c06d Update README example to use current macro names. 2021-03-03 21:01:05 -05:00
Allison Vacanti
47c69b83c9 More README cleanup. 2021-03-03 17:29:15 -05:00
Allison Vacanti
d7c34c835d More README cleanup. 2021-03-03 17:25:12 -05:00
Allison Vacanti
21e13f002d Fix error in README. 2021-03-03 17:22:35 -05:00
Allison Vacanti
544deaf539 Fix warning. 2021-03-03 16:57:17 -05:00
Allison Vacanti
75439d3ef8 Fix device global arg storage. 2021-03-03 16:49:43 -05:00
Allison Vacanti
9ff22cb12d Update README to use current macro names. 2021-03-03 16:30:45 -05:00
Allison Vacanti
a6b26ef7be Add initial README.md. 2021-03-03 16:00:11 -05:00
Allison Vacanti
cf71f6ee15 Update NVBench build system with initial standalone support. 2021-03-03 13:59:29 -05:00
Allison Vacanti
2ce12d2201 More printer cleanups.
- Initialize color from env_var.
- Change ivar to m_global_benchmark_args to clarify usage.
2021-03-02 17:36:19 -05:00
Allison Vacanti
3f3c648358 Update option_parser for recent refactorings. 2021-03-02 17:13:52 -05:00
Allison Vacanti
c83bf8cdb8 s/output_multiplex/printer_multiplex/g 2021-03-02 17:12:22 -05:00
Allison Vacanti
9d2194f2ab s/csv_format/csv_printer/g 2021-03-02 17:10:09 -05:00
Allison Vacanti
015b8d1fb1 s/markdown_format/markdown_printer/g 2021-03-02 17:08:54 -05:00
Allison Vacanti
780dc3b649 s/output_format/printer_base/g 2021-03-02 17:06:13 -05:00
Allison Vacanti
4a1e670f50 Use a more robust method to add the stdout printer, add --quiet. 2021-03-02 16:57:03 -05:00
Allison Vacanti
9cd0d10fe1 Route log messages through output formats. 2021-03-02 16:36:28 -05:00
Allison Vacanti
52fbbbcc7a Add --markdown / --csv options to option_parser. 2021-03-01 17:13:11 -05:00
Allison Vacanti
630aefda93 Make output_format explicitly move-only. 2021-03-01 17:10:33 -05:00
Allison Vacanti
0112993de2 Add output_multiplex::get_output_count. 2021-03-01 17:10:13 -05:00
Allison Vacanti
6c28a6a791 Refactor to keep stream includes out of headers. 2021-03-01 17:09:56 -05:00
Allison Vacanti
33a069af2b Add output_multiplex.
This allows an arbitrary number of output_formats to be wrapped up
into a single object. This output format just forwards all calls to its
children.
2021-03-01 15:16:43 -05:00
Allison Vacanti
14d41bb7e1 Add initial implementation of csv_format. 2021-02-25 16:10:28 -05:00