DPC++ Runtime
Runtime libraries for oneAPI Data Parallel C++
accessor.cpp
Go to the documentation of this file.
1 //==------------ accessor.cpp - SYCL standard source file ------------------==//
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 <CL/sycl/accessor.hpp>
10 #include <detail/queue_impl.hpp>
11 
13 namespace sycl {
14 namespace detail {
15 device getDeviceFromHandler(handler &CommandGroupHandlerRef) {
16  return CommandGroupHandlerRef.MQueue->get_device();
17 }
18 } // namespace detail
19 } // namespace sycl
20 } // __SYCL_INLINE_NAMESPACE(cl)
queue_impl.hpp
cl::sycl::device
The SYCL device class encapsulates a single SYCL device on which kernels may be executed.
Definition: device.hpp:34
cl
We provide new interfaces for matrix muliply in this patch:
Definition: access.hpp:13
cl::sycl::handler
Command group handler class.
Definition: handler.hpp:361
accessor.hpp
cl::sycl::detail::getDeviceFromHandler
device getDeviceFromHandler(handler &CommandGroupHandlerRef)
Definition: accessor.cpp:15
__SYCL_INLINE_NAMESPACE
#define __SYCL_INLINE_NAMESPACE(X)
Definition: defines_elementary.hpp:12