#define _CCCL_BEFORE_NVTX_RANGE_SCOPE(name) static_assert(false); #define CCCL_DISABLE_NVTX #include #include #include #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 it{0}; cub::DeviceFor::ForEach(it, it + 16, ::cuda::std::negate{}); cudaDeviceSynchronize(); }