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