mirror of
https://github.com/NVIDIA/nvbench.git
synced 2026-03-14 20:27:24 +00:00
Fix examples
This commit is contained in:
@@ -27,6 +27,9 @@
|
||||
// Used to initialize input data:
|
||||
#include <thrust/sequence.h>
|
||||
|
||||
// Used to run the benchmark on a CUDA stream
|
||||
#include <thrust/execution_policy.h>
|
||||
|
||||
// `sequence_bench` measures the execution time of `thrust::sequence`. Since
|
||||
// algorithms in `thrust::` implicitly sync the CUDA device, the
|
||||
// `nvbench::exec_tag::sync` must be passed to `state.exec(...)`.
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
|
||||
// Thrust simplifies memory management, etc:
|
||||
#include <thrust/copy.h>
|
||||
#include <thrust/execution_policy.h>
|
||||
#include <thrust/device_vector.h>
|
||||
#include <thrust/sequence.h>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user