Skip to content

Commit

Permalink
makes examples use explicit exec space specifiers in user-provided fu…
Browse files Browse the repository at this point in the history
…nctors
  • Loading branch information
elstehle authored Jul 27, 2024
1 parent ad57b1e commit 59d7a4b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion cub/cub/device/device_reduce.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -1035,7 +1035,7 @@ struct DeviceReduce
//! struct CustomMin
//! {
//! template <typename T>
//! CUB_RUNTIME_FUNCTION __forceinline__
//! __host__ __device__ __forceinline__
//! T operator()(const T &a, const T &b) const {
//! return (b < a) ? b : a;
//! }
Expand Down
20 changes: 10 additions & 10 deletions cub/cub/device/device_scan.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ struct DeviceScan
//! struct CustomMin
//! {
//! template <typename T>
//! CUB_RUNTIME_FUNCTION __forceinline__
//! __host__ __device__ __forceinline__
//! T operator()(const T &a, const T &b) const {
//! return (b < a) ? b : a;
//! }
Expand Down Expand Up @@ -471,7 +471,7 @@ struct DeviceScan
//! struct CustomMin
//! {
//! template <typename T>
//! CUB_RUNTIME_FUNCTION __forceinline__
//! __host__ __device__ __forceinline__
//! T operator()(const T &a, const T &b) const {
//! return (b < a) ? b : a;
//! }
Expand Down Expand Up @@ -595,7 +595,7 @@ struct DeviceScan
//! struct CustomMin
//! {
//! template <typename T>
//! CUB_RUNTIME_FUNCTION __forceinline__
//! __host__ __device__ __forceinline__
//! T operator()(const T &a, const T &b) const {
//! return (b < a) ? b : a;
//! }
Expand Down Expand Up @@ -751,7 +751,7 @@ struct DeviceScan
//! struct CustomMin
//! {
//! template <typename T>
//! CUB_RUNTIME_FUNCTION __forceinline__
//! __host__ __device__ __forceinline__
//! T operator()(const T &a, const T &b) const {
//! return (b < a) ? b : a;
//! }
Expand Down Expand Up @@ -1078,7 +1078,7 @@ struct DeviceScan
//! struct CustomMin
//! {
//! template <typename T>
//! CUB_RUNTIME_FUNCTION __forceinline__
//! __host__ __device__ __forceinline__
//! T operator()(const T &a, const T &b) const {
//! return (b < a) ? b : a;
//! }
Expand Down Expand Up @@ -1307,7 +1307,7 @@ struct DeviceScan
//! struct CustomMin
//! {
//! template <typename T>
//! CUB_RUNTIME_FUNCTION __forceinline__
//! __host__ __device__ __forceinline__
//! T operator()(const T &a, const T &b) const {
//! return (b < a) ? b : a;
//! }
Expand Down Expand Up @@ -1584,7 +1584,7 @@ struct DeviceScan
//! struct CustomMin
//! {
//! template <typename T>
//! CUB_RUNTIME_FUNCTION __forceinline__
//! __host__ __device__ __forceinline__
//! T operator()(const T &a, const T &b) const {
//! return (b < a) ? b : a;
//! }
Expand All @@ -1594,7 +1594,7 @@ struct DeviceScan
//! struct CustomEqual
//! {
//! template <typename T>
//! CUB_RUNTIME_FUNCTION __forceinline__
//! __host__ __device__ __forceinline__
//! T operator()(const T &a, const T &b) const {
//! return a == b;
//! }
Expand Down Expand Up @@ -1950,7 +1950,7 @@ struct DeviceScan
//! struct CustomMin
//! {
//! template <typename T>
//! CUB_RUNTIME_FUNCTION __forceinline__
//! __host__ __device__ __forceinline__
//! T operator()(const T &a, const T &b) const {
//! return (b < a) ? b : a;
//! }
Expand All @@ -1960,7 +1960,7 @@ struct DeviceScan
//! struct CustomEqual
//! {
//! template <typename T>
//! CUB_RUNTIME_FUNCTION __forceinline__
//! __host__ __device__ __forceinline__
//! T operator()(const T &a, const T &b) const {
//! return a == b;
//! }
Expand Down
8 changes: 4 additions & 4 deletions cub/cub/device/device_select.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -380,10 +380,10 @@ struct DeviceSelect
//! {
//! int compare;
//!
//! CUB_RUNTIME_FUNCTION __forceinline__
//! __host__ __device__ __forceinline__
//! LessThan(int compare) : compare(compare) {}
//!
//! CUB_RUNTIME_FUNCTION __forceinline__
//! __host__ __device__ __forceinline__
//! bool operator()(const int &a) const {
//! return (a < compare);
//! }
Expand Down Expand Up @@ -534,10 +534,10 @@ struct DeviceSelect
//! {
//! int compare;
//!
//! CUB_RUNTIME_FUNCTION __forceinline__
//! __host__ __device__ __forceinline__
//! LessThan(int compare) : compare(compare) {}
//!
//! CUB_RUNTIME_FUNCTION __forceinline__
//! __host__ __device__ __forceinline__
//! bool operator()(const int &a) const {
//! return (a < compare);
//! }
Expand Down

0 comments on commit 59d7a4b

Please sign in to comment.