// Copyright (c) 2018 NVIDIA Corporation // Author: Bryce Adelstein Lelbach // // Distributed under the Boost Software License v1.0 (boost.org/LICENSE_1_0.txt) #pragma once #include #if defined(_CCCL_IMPLICIT_SYSTEM_HEADER_GCC) # pragma GCC system_header #elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_CLANG) # pragma clang system_header #elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_MSVC) # pragma system_header #endif // no system header #include #if THRUST_CPP_DIALECT >= 2014 #include #include THRUST_NAMESPACE_BEGIN namespace system { namespace cuda { struct ready_event; template struct ready_future; struct unique_eager_event; template struct unique_eager_future; template __host__ unique_eager_event when_all(Events&&... evs); }} // namespace system::cuda namespace cuda { using thrust::system::cuda::ready_event; using thrust::system::cuda::ready_future; using thrust::system::cuda::unique_eager_event; using event = unique_eager_event; using thrust::system::cuda::unique_eager_future; template using future = unique_eager_future; using thrust::system::cuda::when_all; } // namespace cuda template __host__ thrust::cuda::unique_eager_event unique_eager_event_type( thrust::cuda::execution_policy const& ) noexcept; template __host__ thrust::cuda::unique_eager_future unique_eager_future_type( thrust::cuda::execution_policy const& ) noexcept; THRUST_NAMESPACE_END #include #endif // C++14