Allison Vacanti
b1cbf6cab8
Add test for typeless state_generator::create.
...
Turns out this edgecase was already handled correctly, but let's
make sure it stays that way.
2020-12-31 17:07:19 -05:00
Allison Vacanti
a1bd7b03b3
Update state_generator::create to handle type axes.
2020-12-31 16:28:41 -05:00
Allison Vacanti
fd3b82cc6f
Move sleep kernel to its own header.
...
This will be useful for testing in general.
2020-12-30 14:47:25 -05:00
Allison Vacanti
ad44463d6e
Replace params class with nvbench::named_values.
...
Refactor nvbench::state to use this for axis parameters.
These will also be useful for summaries and measurements.
Also adds a new ASSERT_THROWS_ANY macro to test some of the new API.
2020-12-30 14:45:46 -05:00
Allison Vacanti
8c0b8e3423
Add cpu_timer.
2020-12-29 23:51:09 -05:00
Allison Vacanti
b07ffafff4
Add cuda_timer, cuda_stream.
2020-12-29 23:50:39 -05:00
Allison Vacanti
981031e732
Update axes_metadata test to reflect new API.
2020-12-29 19:41:29 -05:00
Allison Vacanti
e631f1ff03
Add state_generator::create method to encapsulate state creation.
2020-12-29 19:35:07 -05:00
Allison Vacanti
beaead2c3f
Split benchmark into more specialized, nontemplated structs.
2020-12-29 19:34:11 -05:00
Allison Vacanti
093077de5f
Add nvbench::state.
...
This class holds a single value for each runtime axis.
2020-12-27 10:44:22 -05:00
Allison Vacanti
7b14ceb3fe
Add detail::state_generator.
...
This helper utility computes the cartesian product of the runtime
axes.
2020-12-27 10:29:24 -05:00
Allison Vacanti
40f92b4705
Add initial nvbench::benchmark.
...
It's basically just a container for the various axis classes at this
point.
2020-12-24 17:33:03 -05:00
Allison Vacanti
691ed2c18d
Add nvbench::params.
2020-12-22 17:44:33 -05:00
Allison Vacanti
76f9c9b0d6
Add nvbench::string_axis.
2020-12-22 16:57:42 -05:00
Allison Vacanti
1e5fe88c9b
Add float64_axis.
2020-12-22 16:38:05 -05:00
Allison Vacanti
65eadda1c1
Add type_axis::get_index.
2020-12-22 16:37:19 -05:00
Allison Vacanti
07e4cc36c2
Add type_axis.
2020-12-22 15:20:04 -05:00
Allison Vacanti
95e2eaf607
Add nvbench::tl::foreach.
2020-12-22 15:20:04 -05:00
Allison Vacanti
fb10be7e72
Add nvbench::tl::size.
2020-12-22 15:20:04 -05:00
Allison Vacanti
1c04e49787
Rename type_list header to match convention.
2020-12-22 15:20:03 -05:00
Allison Vacanti
334178dfa8
Tweak int64_axis API.
...
- Add `int64_axis_flags`.
- Rename `axis_base` virtuals.
2020-12-22 15:20:03 -05:00
Allison Vacanti
13dc404d56
Add int64_axis.
2020-12-21 20:31:12 -05:00
Allison Vacanti
014d94e402
Add nvbench::type_list.
2020-12-20 21:09:47 -05:00