DPC++ Runtime
Runtime libraries for oneAPI DPC++
util.cpp
Go to the documentation of this file.
1 //===-- util.cpp - Shared SYCL runtime utilities impl ----------*- C++ -*--===//
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 
10 #include <sycl/detail/util.hpp>
11 
12 namespace sycl {
14 namespace detail {
15 
16 Sync &Sync::getInstance() { return GlobalHandler::instance().getSync(); }
17 
18 } // namespace detail
19 } // __SYCL_INLINE_VER_NAMESPACE(_V1)
20 } // namespace sycl
#define __SYCL_INLINE_VER_NAMESPACE(X)
---— Error handling, matching OpenCL plugin semantics.
Definition: access.hpp:14