DPC++ Runtime
Runtime libraries for oneAPI DPC++
device_global_map.cpp
Go to the documentation of this file.
1 //==-------------------- device_global_map.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 
10 
11 namespace sycl {
13 namespace detail {
14 namespace device_global_map {
15 
16 __SYCL_EXPORT void add(const void *DeviceGlobalPtr, const char *UniqueId) {
17  detail::ProgramManager::getInstance().addOrInitDeviceGlobalEntry(
18  DeviceGlobalPtr, UniqueId);
19 }
20 
21 } // namespace device_global_map
22 } // namespace detail
23 } // __SYCL_INLINE_VER_NAMESPACE(_V1)
24 } // namespace sycl
#define __SYCL_INLINE_VER_NAMESPACE(X)
void add(const void *DeviceGlobalPtr, const char *UniqueId)
---— Error handling, matching OpenCL plugin semantics.
Definition: access.hpp:14