Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion libcudacxx/benchmarks/bench/adjacent_difference/basic.cu
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include <thrust/device_vector.h>

#include <cuda/memory_pool>
#include <cuda/std/__pstl_algorithm>
#include <cuda/std/execution>
#include <cuda/stream>

#include "nvbench_helper.cuh"
Expand Down
3 changes: 1 addition & 2 deletions libcudacxx/benchmarks/bench/adjacent_find/basic.cu
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
#include <thrust/sequence.h>

#include <cuda/memory_pool>
#include <cuda/std/__pstl_algorithm>
#include <cuda/std/algorithm>
#include <cuda/std/execution>
#include <cuda/stream>

#include "nvbench_helper.cuh"
Expand Down
6 changes: 3 additions & 3 deletions libcudacxx/benchmarks/bench/all_of/basic.cu
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <thrust/device_vector.h>

#include <cuda/memory_pool>
#include <cuda/std/__pstl_algorithm>
#include <cuda/std/execution>
#include <cuda/stream>

#include "nvbench_helper.cuh"
Expand Down Expand Up @@ -41,8 +41,8 @@ static void basic(nvbench::state& state, nvbench::type_list<T>)
const auto mismatch_point = static_cast<std::size_t>(elements * common_prefix);

thrust::device_vector<T> dinput(elements, thrust::no_init);
cuda::std::fill(cuda::execution::__cub_par_unseq, dinput.begin(), dinput.begin() + mismatch_point, T{0});
cuda::std::fill(cuda::execution::__cub_par_unseq, dinput.begin() + mismatch_point, dinput.end(), val);
cuda::std::fill(cuda::execution::gpu, dinput.begin(), dinput.begin() + mismatch_point, T{0});
cuda::std::fill(cuda::execution::gpu, dinput.begin() + mismatch_point, dinput.end(), val);

state.add_global_memory_reads<T>(mismatch_point + 1);
state.add_global_memory_writes<size_t>(1);
Expand Down
6 changes: 3 additions & 3 deletions libcudacxx/benchmarks/bench/any_of/basic.cu
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <thrust/device_vector.h>

#include <cuda/memory_pool>
#include <cuda/std/__pstl_algorithm>
#include <cuda/std/execution>
#include <cuda/stream>

#include "nvbench_helper.cuh"
Expand Down Expand Up @@ -41,8 +41,8 @@ static void basic(nvbench::state& state, nvbench::type_list<T>)
const auto mismatch_point = static_cast<std::size_t>(elements * common_prefix);

thrust::device_vector<T> dinput(elements, thrust::no_init);
cuda::std::fill(cuda::execution::__cub_par_unseq, dinput.begin(), dinput.begin() + mismatch_point, T{0});
cuda::std::fill(cuda::execution::__cub_par_unseq, dinput.begin() + mismatch_point, dinput.end(), val);
cuda::std::fill(cuda::execution::gpu, dinput.begin(), dinput.begin() + mismatch_point, T{0});
cuda::std::fill(cuda::execution::gpu, dinput.begin() + mismatch_point, dinput.end(), val);

state.add_global_memory_reads<T>(mismatch_point + 1);
state.add_global_memory_writes<size_t>(1);
Expand Down
2 changes: 1 addition & 1 deletion libcudacxx/benchmarks/bench/copy/basic.cu
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <thrust/device_vector.h>

#include <cuda/memory_pool>
#include <cuda/std/__pstl_algorithm>
#include <cuda/std/execution>
#include <cuda/stream>

#include "nvbench_helper.cuh"
Expand Down
2 changes: 1 addition & 1 deletion libcudacxx/benchmarks/bench/copy_if/basic.cu
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
#include <thrust/device_vector.h>

#include <cuda/memory_pool>
#include <cuda/std/__pstl_algorithm>
#include <cuda/std/complex>
#include <cuda/std/execution>
#include <cuda/stream>

#include "nvbench_helper.cuh"
Expand Down
2 changes: 1 addition & 1 deletion libcudacxx/benchmarks/bench/copy_n/basic.cu
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <thrust/device_vector.h>

#include <cuda/memory_pool>
#include <cuda/std/__pstl_algorithm>
#include <cuda/std/execution>
#include <cuda/stream>

#include "nvbench_helper.cuh"
Expand Down
2 changes: 1 addition & 1 deletion libcudacxx/benchmarks/bench/count/basic.cu
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <thrust/device_vector.h>

#include <cuda/memory_pool>
#include <cuda/std/__pstl_algorithm>
#include <cuda/std/execution>
#include <cuda/stream>

#include "nvbench_helper.cuh"
Expand Down
2 changes: 1 addition & 1 deletion libcudacxx/benchmarks/bench/count_if/basic.cu
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <thrust/device_vector.h>

#include <cuda/memory_pool>
#include <cuda/std/__pstl_algorithm>
#include <cuda/std/execution>
#include <cuda/stream>

#include "nvbench_helper.cuh"
Expand Down
10 changes: 5 additions & 5 deletions libcudacxx/benchmarks/bench/equal/basic.cu
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <thrust/device_vector.h>

#include <cuda/memory_pool>
#include <cuda/std/__pstl_algorithm>
#include <cuda/std/execution>
#include <cuda/stream>

#include "nvbench_helper.cuh"
Expand All @@ -26,8 +26,8 @@ static void range_iter(nvbench::state& state, nvbench::type_list<T>)
const auto mismatch_point = static_cast<std::size_t>(elements * common_prefix);

thrust::device_vector<T> dinput(elements, thrust::no_init);
cuda::std::fill(cuda::execution::__cub_par_unseq, dinput.begin(), dinput.begin() + mismatch_point, T{0});
cuda::std::fill(cuda::execution::__cub_par_unseq, dinput.begin() + mismatch_point, dinput.end(), val);
cuda::std::fill(cuda::execution::gpu, dinput.begin(), dinput.begin() + mismatch_point, T{0});
cuda::std::fill(cuda::execution::gpu, dinput.begin() + mismatch_point, dinput.end(), val);

state.add_global_memory_reads<T>(mismatch_point + 1);
state.add_global_memory_writes<size_t>(1);
Expand Down Expand Up @@ -56,8 +56,8 @@ static void range_range(nvbench::state& state, nvbench::type_list<T>)
const auto mismatch_point = static_cast<std::size_t>(elements * common_prefix);

thrust::device_vector<T> dinput(elements, thrust::no_init);
cuda::std::fill(cuda::execution::__cub_par_unseq, dinput.begin(), dinput.begin() + mismatch_point, T{0});
cuda::std::fill(cuda::execution::__cub_par_unseq, dinput.begin() + mismatch_point, dinput.end(), val);
cuda::std::fill(cuda::execution::gpu, dinput.begin(), dinput.begin() + mismatch_point, T{0});
cuda::std::fill(cuda::execution::gpu, dinput.begin() + mismatch_point, dinput.end(), val);

state.add_global_memory_reads<T>(mismatch_point + 1);
state.add_global_memory_writes<size_t>(1);
Expand Down
2 changes: 1 addition & 1 deletion libcudacxx/benchmarks/bench/exclusive_scan/basic.cu
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <thrust/device_vector.h>

#include <cuda/memory_pool>
#include <cuda/std/__pstl_algorithm>
#include <cuda/std/execution>
#include <cuda/stream>

#include "nvbench_helper.cuh"
Expand Down
2 changes: 1 addition & 1 deletion libcudacxx/benchmarks/bench/exclusive_scan/max.cu
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <thrust/device_vector.h>

#include <cuda/memory_pool>
#include <cuda/std/__pstl_algorithm>
#include <cuda/std/execution>
#include <cuda/stream>

#include "nvbench_helper.cuh"
Expand Down
2 changes: 1 addition & 1 deletion libcudacxx/benchmarks/bench/fill/basic.cu
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <thrust/device_vector.h>

#include <cuda/memory_pool>
#include <cuda/std/__pstl_algorithm>
#include <cuda/std/execution>
#include <cuda/stream>

#include "nvbench_helper.cuh"
Expand Down
2 changes: 1 addition & 1 deletion libcudacxx/benchmarks/bench/fill_n/basic.cu
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <thrust/device_vector.h>

#include <cuda/memory_pool>
#include <cuda/std/__pstl_algorithm>
#include <cuda/std/execution>
#include <cuda/stream>

#include "nvbench_helper.cuh"
Expand Down
6 changes: 3 additions & 3 deletions libcudacxx/benchmarks/bench/find/basic.cu
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <thrust/device_vector.h>

#include <cuda/memory_pool>
#include <cuda/std/__pstl_algorithm>
#include <cuda/std/execution>
#include <cuda/stream>

#include "nvbench_helper.cuh"
Expand All @@ -26,8 +26,8 @@ static void basic(nvbench::state& state, nvbench::type_list<T>)
const auto mismatch_point = static_cast<std::size_t>(elements * common_prefix);

thrust::device_vector<T> dinput(elements, thrust::no_init);
cuda::std::fill(cuda::execution::__cub_par_unseq, dinput.begin(), dinput.begin() + mismatch_point, T{0});
cuda::std::fill(cuda::execution::__cub_par_unseq, dinput.begin() + mismatch_point, dinput.end(), val);
cuda::std::fill(cuda::execution::gpu, dinput.begin(), dinput.begin() + mismatch_point, T{0});
cuda::std::fill(cuda::execution::gpu, dinput.begin() + mismatch_point, dinput.end(), val);

state.add_global_memory_reads<T>(mismatch_point + 1);
state.add_global_memory_writes<size_t>(1);
Expand Down
6 changes: 3 additions & 3 deletions libcudacxx/benchmarks/bench/find_if/basic.cu
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

#include <cuda/functional>
#include <cuda/memory_pool>
#include <cuda/std/__pstl_algorithm>
#include <cuda/std/execution>
#include <cuda/stream>

#include "nvbench_helper.cuh"
Expand All @@ -27,8 +27,8 @@ static void basic(nvbench::state& state, nvbench::type_list<T>)
const auto mismatch_point = static_cast<std::size_t>(elements * common_prefix);

thrust::device_vector<T> dinput(elements, thrust::no_init);
cuda::std::fill(cuda::execution::__cub_par_unseq, dinput.begin(), dinput.begin() + mismatch_point, T{0});
cuda::std::fill(cuda::execution::__cub_par_unseq, dinput.begin() + mismatch_point, dinput.end(), val);
cuda::std::fill(cuda::execution::gpu, dinput.begin(), dinput.begin() + mismatch_point, T{0});
cuda::std::fill(cuda::execution::gpu, dinput.begin() + mismatch_point, dinput.end(), val);

state.add_global_memory_reads<T>(mismatch_point + 1);
state.add_global_memory_writes<size_t>(1);
Expand Down
6 changes: 3 additions & 3 deletions libcudacxx/benchmarks/bench/find_if_not/basic.cu
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <thrust/device_vector.h>

#include <cuda/memory_pool>
#include <cuda/std/__pstl_algorithm>
#include <cuda/std/execution>
#include <cuda/stream>

#include "nvbench_helper.cuh"
Expand Down Expand Up @@ -41,8 +41,8 @@ static void basic(nvbench::state& state, nvbench::type_list<T>)
const auto mismatch_point = static_cast<std::size_t>(elements * common_prefix);

thrust::device_vector<T> dinput(elements, thrust::no_init);
cuda::std::fill(cuda::execution::__cub_par_unseq, dinput.begin(), dinput.begin() + mismatch_point, T{0});
cuda::std::fill(cuda::execution::__cub_par_unseq, dinput.begin() + mismatch_point, dinput.end(), val);
cuda::std::fill(cuda::execution::gpu, dinput.begin(), dinput.begin() + mismatch_point, T{0});
cuda::std::fill(cuda::execution::gpu, dinput.begin() + mismatch_point, dinput.end(), val);

state.add_global_memory_reads<T>(mismatch_point + 1);
state.add_global_memory_writes<size_t>(1);
Expand Down
2 changes: 1 addition & 1 deletion libcudacxx/benchmarks/bench/for_each/basic.cu
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <thrust/device_vector.h>

#include <cuda/memory_pool>
#include <cuda/std/__pstl_algorithm>
#include <cuda/std/execution>
#include <cuda/stream>

#include "nvbench_helper.cuh"
Expand Down
2 changes: 1 addition & 1 deletion libcudacxx/benchmarks/bench/for_each_n/basic.cu
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <thrust/device_vector.h>

#include <cuda/memory_pool>
#include <cuda/std/__pstl_algorithm>
#include <cuda/std/execution>
#include <cuda/stream>

#include "nvbench_helper.cuh"
Expand Down
2 changes: 1 addition & 1 deletion libcudacxx/benchmarks/bench/generate/basic.cu
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <thrust/device_vector.h>

#include <cuda/memory_pool>
#include <cuda/std/__pstl_algorithm>
#include <cuda/std/execution>
#include <cuda/stream>

#include "nvbench_helper.cuh"
Expand Down
2 changes: 1 addition & 1 deletion libcudacxx/benchmarks/bench/generate_n/basic.cu
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <thrust/device_vector.h>

#include <cuda/memory_pool>
#include <cuda/std/__pstl_algorithm>
#include <cuda/std/execution>
#include <cuda/stream>

#include "nvbench_helper.cuh"
Expand Down
2 changes: 1 addition & 1 deletion libcudacxx/benchmarks/bench/inclusive_scan/basic.cu
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <thrust/device_vector.h>

#include <cuda/memory_pool>
#include <cuda/std/__pstl_algorithm>
#include <cuda/std/execution>
#include <cuda/stream>

#include "nvbench_helper.cuh"
Expand Down
2 changes: 1 addition & 1 deletion libcudacxx/benchmarks/bench/inclusive_scan/max.cu
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <thrust/device_vector.h>

#include <cuda/memory_pool>
#include <cuda/std/__pstl_algorithm>
#include <cuda/std/execution>
#include <cuda/stream>

#include "nvbench_helper.cuh"
Expand Down
2 changes: 1 addition & 1 deletion libcudacxx/benchmarks/bench/merge/basic.cu
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <thrust/sort.h>

#include <cuda/memory_pool>
#include <cuda/std/__pstl_algorithm>
#include <cuda/std/execution>
#include <cuda/stream>

#include "nvbench_helper.cuh"
Expand Down
10 changes: 5 additions & 5 deletions libcudacxx/benchmarks/bench/mismatch/basic.cu
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <thrust/device_vector.h>

#include <cuda/memory_pool>
#include <cuda/std/__pstl_algorithm>
#include <cuda/std/execution>
#include <cuda/stream>

#include "nvbench_helper.cuh"
Expand All @@ -26,8 +26,8 @@ static void range_iter(nvbench::state& state, nvbench::type_list<T>)
const auto mismatch_point = static_cast<std::size_t>(elements * common_prefix);

thrust::device_vector<T> dinput(elements, thrust::no_init);
cuda::std::fill(cuda::execution::__cub_par_unseq, dinput.begin(), dinput.begin() + mismatch_point, T{0});
cuda::std::fill(cuda::execution::__cub_par_unseq, dinput.begin() + mismatch_point, dinput.end(), val);
cuda::std::fill(cuda::execution::gpu, dinput.begin(), dinput.begin() + mismatch_point, T{0});
cuda::std::fill(cuda::execution::gpu, dinput.begin() + mismatch_point, dinput.end(), val);

state.add_global_memory_reads<T>(mismatch_point + 1);
state.add_global_memory_writes<size_t>(1);
Expand Down Expand Up @@ -56,8 +56,8 @@ static void range_range(nvbench::state& state, nvbench::type_list<T>)
const auto mismatch_point = static_cast<std::size_t>(elements * common_prefix);

thrust::device_vector<T> dinput(elements, thrust::no_init);
cuda::std::fill(cuda::execution::__cub_par_unseq, dinput.begin(), dinput.begin() + mismatch_point, T{0});
cuda::std::fill(cuda::execution::__cub_par_unseq, dinput.begin() + mismatch_point, dinput.end(), val);
cuda::std::fill(cuda::execution::gpu, dinput.begin(), dinput.begin() + mismatch_point, T{0});
cuda::std::fill(cuda::execution::gpu, dinput.begin() + mismatch_point, dinput.end(), val);

state.add_global_memory_reads<T>(mismatch_point + 1);
state.add_global_memory_writes<size_t>(1);
Expand Down
6 changes: 3 additions & 3 deletions libcudacxx/benchmarks/bench/none_of/basic.cu
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <thrust/device_vector.h>

#include <cuda/memory_pool>
#include <cuda/std/__pstl_algorithm>
#include <cuda/std/execution>
#include <cuda/stream>

#include "nvbench_helper.cuh"
Expand Down Expand Up @@ -41,8 +41,8 @@ static void basic(nvbench::state& state, nvbench::type_list<T>)
const auto mismatch_point = static_cast<std::size_t>(elements * common_prefix);

thrust::device_vector<T> dinput(elements, thrust::no_init);
cuda::std::fill(cuda::execution::__cub_par_unseq, dinput.begin(), dinput.begin() + mismatch_point, T{0});
cuda::std::fill(cuda::execution::__cub_par_unseq, dinput.begin() + mismatch_point, dinput.end(), val);
cuda::std::fill(cuda::execution::gpu, dinput.begin(), dinput.begin() + mismatch_point, T{0});
cuda::std::fill(cuda::execution::gpu, dinput.begin() + mismatch_point, dinput.end(), val);

state.add_global_memory_reads<T>(mismatch_point + 1);
state.add_global_memory_writes<size_t>(1);
Expand Down
2 changes: 1 addition & 1 deletion libcudacxx/benchmarks/bench/reduce/basic.cu
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <thrust/device_vector.h>

#include <cuda/memory_pool>
#include <cuda/std/__pstl_algorithm>
#include <cuda/std/execution>
#include <cuda/stream>

#include "nvbench_helper.cuh"
Expand Down
4 changes: 2 additions & 2 deletions libcudacxx/benchmarks/bench/remove/basic.cu
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
#include <thrust/device_vector.h>

#include <cuda/memory_pool>
#include <cuda/std/__pstl_algorithm>
#include <cuda/std/complex>
#include <cuda/std/execution>
#include <cuda/stream>

#include "nvbench_helper.cuh"
Expand All @@ -23,7 +23,7 @@ static void basic(nvbench::state& state, nvbench::type_list<T>)
const auto elements = static_cast<std::size_t>(state.get_int64("Elements"));

thrust::device_vector<T> in = generate(elements, bit_entropy::_1_000, T{0}, T{42});
const auto count = cuda::std::count(cuda::execution::__cub_par_unseq, in.begin(), in.end(), T{42});
const auto count = cuda::std::count(cuda::execution::gpu, in.begin(), in.end(), T{42});

state.add_element_count(elements);
state.add_global_memory_reads<T>(elements);
Expand Down
4 changes: 2 additions & 2 deletions libcudacxx/benchmarks/bench/remove_copy/basic.cu
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
#include <thrust/device_vector.h>

#include <cuda/memory_pool>
#include <cuda/std/__pstl_algorithm>
#include <cuda/std/complex>
#include <cuda/std/execution>
#include <cuda/stream>

#include "nvbench_helper.cuh"
Expand All @@ -24,7 +24,7 @@ static void basic(nvbench::state& state, nvbench::type_list<T>)

thrust::device_vector<T> in = generate(elements, bit_entropy::_1_000, T{0}, T{42});
thrust::device_vector<T> out(elements, thrust::no_init);
const auto count = cuda::std::count(cuda::execution::__cub_par_unseq, in.begin(), in.end(), T{42});
const auto count = cuda::std::count(cuda::execution::gpu, in.begin(), in.end(), T{42});

state.add_element_count(elements);
state.add_global_memory_reads<T>(elements);
Expand Down
Loading
Loading