Fix examples

This commit is contained in:
Georgy Evtushenko
2023-04-10 14:53:32 +04:00
parent e477bb3862
commit 51a9342b8a
2 changed files with 4 additions and 0 deletions

View File

@@ -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(...)`.

View File

@@ -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>