DPC++ Runtime
Runtime libraries for oneAPI DPC++
pipes.cpp
Go to the documentation of this file.
1 //==-------------------- pipes.cpp -----------------------------==//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #include <detail/event_impl.hpp>
13 
14 namespace sycl {
15 inline namespace _V1 {
16 namespace ext {
17 namespace intel {
18 namespace experimental {
19 
20 __SYCL_EXPORT std::string pipe_base::get_pipe_name(const void *HostPipePtr) {
22  .getHostPipeEntry(HostPipePtr)
23  ->MUniqueId;
24 }
25 
26 __SYCL_EXPORT bool pipe_base::wait_non_blocking(const event &E) {
27  bool Success = false;
28  std::shared_ptr<sycl::detail::event_impl> EImpl =
30  EImpl->wait(EImpl, &Success);
31  return Success;
32 }
33 
34 } // namespace experimental
35 } // namespace intel
36 } // namespace ext
37 } // namespace _V1
38 } // namespace sycl
static ProgramManager & getInstance()
HostPipeMapEntry * getHostPipeEntry(const std::string &UniqueId)
An event object can be used to synchronize memory transfers, enqueues of kernels and signaling barrie...
Definition: event.hpp:44
static bool wait_non_blocking(const event &E)
Definition: pipes.cpp:26
static std::string get_pipe_name(const void *HostPipePtr)
Definition: pipes.cpp:20
decltype(Obj::impl) getSyclObjImpl(const Obj &SyclObject)
Definition: impl_utils.hpp:30
Definition: access.hpp:18