Skip to content
Snippets Groups Projects
Commit 92dc4a47 authored by Tomáš Oberhuber's avatar Tomáš Oberhuber
Browse files

Renaming PrefixSum to Scan.

parent 98177777
No related branches found
No related tags found
1 merge request!41Tutorials
Showing
with 2 additions and 2 deletions
...@@ -578,13 +578,13 @@ benchmarkVectorOperations( Benchmark & benchmark, ...@@ -578,13 +578,13 @@ benchmarkVectorOperations( Benchmark & benchmark,
//// ////
// Exclusive prefix sum // Exclusive prefix sum
auto exclusivePrefixSumHost = [&]() { auto exclusivePrefixSumHost = [&]() {
hostVector.template prefixSum< Containers::Algorithms::PrefixSumType::Exclusive >(); hostVector.template prefixSum< Containers::Algorithms::ScanType::Exclusive >();
}; };
benchmark.setOperation( "exclusive prefix sum", 2 * datasetSize ); benchmark.setOperation( "exclusive prefix sum", 2 * datasetSize );
benchmark.time< Devices::Host >( reset1, "CPU ET", exclusivePrefixSumHost ); benchmark.time< Devices::Host >( reset1, "CPU ET", exclusivePrefixSumHost );
#ifdef HAVE_CUDA #ifdef HAVE_CUDA
auto exclusivePrefixSumCuda = [&]() { auto exclusivePrefixSumCuda = [&]() {
deviceVector.template prefixSum< Containers::Algorithms::PrefixSumType::Exclusive >(); deviceVector.template prefixSum< Containers::Algorithms::ScanType::Exclusive >();
}; };
benchmark.time< Devices::Cuda >( reset1, "GPU ET", exclusivePrefixSumCuda ); benchmark.time< Devices::Cuda >( reset1, "GPU ET", exclusivePrefixSumCuda );
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment