mirror of
https://github.com/NVIDIA/nvbench.git
synced 2026-03-14 20:27:24 +00:00
Add some columns to an example.
This commit is contained in:
@@ -45,8 +45,8 @@ void sequence_bench(nvbench::state &state)
|
||||
thrust::device_vector<nvbench::int32_t> data(num_values);
|
||||
|
||||
// Provide throughput information:
|
||||
state.add_element_count(num_values);
|
||||
state.add_global_memory_writes<nvbench::int32_t>(num_values);
|
||||
state.add_element_count(num_values, "Items");
|
||||
state.add_global_memory_writes<nvbench::int32_t>(num_values, "Size");
|
||||
|
||||
// nvbench::exec_tag::sync indicates that this will implicitly sync:
|
||||
state.exec(nvbench::exec_tag::sync, [&data](nvbench::launch &launch) {
|
||||
|
||||
Reference in New Issue
Block a user