19 lines
545 B
Plaintext
19 lines
545 B
Plaintext
|
|
#define _CCCL_BEFORE_NVTX_RANGE_SCOPE(name) static_assert(false);
|
||
|
|
#define CCCL_DISABLE_NVTX
|
||
|
|
|
||
|
|
#include <cub/device/device_for.cuh>
|
||
|
|
|
||
|
|
#include <cuda/iterator>
|
||
|
|
#include <cuda/std/functional>
|
||
|
|
|
||
|
|
#if defined(CCCL_DISABLE_NVTX) && defined(NVTX_VERSION)
|
||
|
|
# error "NVTX was included somewhere even though it is turned off via CCCL_DISABLE_NVTX"
|
||
|
|
#endif // defined(CCCL_DISABLE_NVTX) && defined(NVTX_VERSION)
|
||
|
|
|
||
|
|
int main()
|
||
|
|
{
|
||
|
|
cuda::counting_iterator<int> it{0};
|
||
|
|
cub::DeviceFor::ForEach(it, it + 16, ::cuda::std::negate<int>{});
|
||
|
|
cudaDeviceSynchronize();
|
||
|
|
}
|