mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2025-04-10 18:22:11 +01:00
Update kernels.cuh
This commit is contained in:
parent
940a4c7a91
commit
37c5bcbef4
@ -34,13 +34,12 @@
|
|||||||
#define _KERNELS_H_
|
#define _KERNELS_H_
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <thrust/functional.h>
|
|
||||||
|
|
||||||
#include "common.cuh"
|
#include "common.cuh"
|
||||||
|
|
||||||
// Functors used with thrust library.
|
// Functors used with thrust library.
|
||||||
template <typename Input>
|
template <typename Input>
|
||||||
struct IsGreaterEqualThan : public thrust::unary_function<Input, bool>
|
struct IsGreaterEqualThan
|
||||||
{
|
{
|
||||||
__host__ __device__ IsGreaterEqualThan(uint upperBound) :
|
__host__ __device__ IsGreaterEqualThan(uint upperBound) :
|
||||||
upperBound_(upperBound) {}
|
upperBound_(upperBound) {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user