// -*- C++ -*-
//===----------------------------------------------------------------------===//
//
// Copyright (C) Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
// This file incorporates work covered by the following copyright and permission
// notice:
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
//
//===----------------------------------------------------------------------===//

#ifndef _ONEDPL_ASYNC
#define _ONEDPL_ASYNC

#include "oneapi/dpl/internal/common_config.h"
#include "oneapi/dpl/pstl/onedpl_config.h"

#if !_ONEDPL_BACKEND_SYCL
#    error "To use oneDPL asynchronous algorithms, a SYCL compiler is required"
#endif // !_ONEDPL_BACKEND_SYCL

#if !_ONEDPL_ASYNC_FORWARD_DECLARED
#    include "oneapi/dpl/internal/async_extension_defs.h"
#    define _ONEDPL_ASYNC_FORWARD_DECLARED 1
#endif // !_ONEDPL_ASYNC_FORWARD_DECLARED

#if _ONEDPL_EXECUTION_POLICIES_DEFINED
// If <execution> has already been included, pull in implementations
#    include "oneapi/dpl/internal/async_impl/glue_async_impl.h"
#endif // _ONEDPL_EXECUTION_POLICIES_DEFINED

namespace dpl = oneapi::dpl;

#endif // _ONEDPL_ASYNC
