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
9
#include <
detail/program_manager/program_manager.hpp
>
10
11
namespace
sycl
{
12
inline
namespace
_V1 {
13
namespace
detail::device_global_map {
14
15
__SYCL_EXPORT
void
add
(
const
void
*DeviceGlobalPtr,
const
char
*UniqueId) {
16
detail::ProgramManager::getInstance
().
addOrInitDeviceGlobalEntry
(
17
DeviceGlobalPtr, UniqueId);
18
}
19
20
}
// namespace detail::device_global_map
21
}
// namespace _V1
22
}
// namespace sycl
sycl
Definition:
access.hpp:18
sycl::_V1::detail::ProgramManager::getInstance
static ProgramManager & getInstance()
Definition:
program_manager.cpp:67
program_manager.hpp
sycl::_V1::detail::ProgramManager::addOrInitDeviceGlobalEntry
void addOrInitDeviceGlobalEntry(const void *DeviceGlobalPtr, const char *UniqueId)
Definition:
program_manager.cpp:1640
sycl::_V1::detail::device_global_map::add
void add(const void *DeviceGlobalPtr, const char *UniqueId)
Definition:
device_global_map.cpp:15
source
detail
device_global_map.cpp
Generated by
1.8.17