Skip to content

Commit 455bdf8

Browse files
committed
merge conflicts resolved
Signed-off-by: Chris Perkins <[email protected]>
1 parent c415c15 commit 455bdf8

File tree

3 files changed

+2
-12
lines changed

3 files changed

+2
-12
lines changed

sycl/source/detail/device_global_map.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ class DeviceGlobalMap {
7676
void eraseEntries(const RTDeviceBinaryImage *Img) {
7777
const auto &DeviceGlobals = Img->getDeviceGlobals();
7878
std::lock_guard<std::mutex> DeviceGlobalsGuard(MDeviceGlobalsMutex);
79-
std::cout << "DeviceGlobalMap::eraseEntries() with: " << DeviceGlobals.size() << " entries." << std::endl;
8079
for (const sycl_device_binary_property &DeviceGlobal : DeviceGlobals) {
8180
if (auto DevGlobalIt = MDeviceGlobals.find(DeviceGlobal->Name);
8281
DevGlobalIt != MDeviceGlobals.end()) {

sycl/source/detail/program_manager/program_manager.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2219,6 +2219,8 @@ void ProgramManager::removeImages(sycl_device_binaries DeviceBinary) {
22192219
}
22202220
}
22212221

2222+
m_DeviceGlobals.eraseEntries(Img);
2223+
22222224
{
22232225
std::lock_guard<std::mutex> HostPipesGuard(m_HostPipesMutex);
22242226
auto HostPipes = Img->getHostPipes();

sycl/test-e2e/IntermediateLib/multi_lib_app.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,6 @@ int main() {
120120
unloadOsLibrary(lib_a);
121121
std::cout << "lib_a done" << std::endl;
122122

123-
<<<<<<< HEAD
124-
=======
125123

126124
// Now RELOAD lib_a and try it again.
127125
lib_a = loadOsLibrary(path_to_lib_a);
@@ -134,17 +132,12 @@ int main() {
134132
std::cout << "reload of lib_a done" << std::endl;
135133

136134

137-
>>>>>>> cperkins-sycl-unregister-lib-002
138135
void *lib_b = loadOsLibrary(path_to_lib_b);
139136
f = getOsLibraryFuncAddress(lib_b, "performIncrementation");
140137
auto performIncrementationFuncB = reinterpret_cast<IncFuncT *>(f);
141138
performIncrementationFuncB(q, buf); // call the function from lib_b
142139
q.wait();
143-
<<<<<<< HEAD
144-
checkIncrementation(buf, 1 + 2);
145-
=======
146140
checkIncrementation(buf, 1 + 1 + 2);
147-
>>>>>>> cperkins-sycl-unregister-lib-002
148141
unloadOsLibrary(lib_b);
149142
std::cout << "lib_b done" << std::endl;
150143

@@ -153,11 +146,7 @@ int main() {
153146
auto performIncrementationFuncC = reinterpret_cast<IncFuncT *>(f);
154147
q.wait();
155148
performIncrementationFuncC(q, buf); // call the function from lib_c
156-
<<<<<<< HEAD
157-
checkIncrementation(buf, 1 + 2 + 4);
158-
=======
159149
checkIncrementation(buf, 1 + 1 + 2 + 4);
160-
>>>>>>> cperkins-sycl-unregister-lib-002
161150
unloadOsLibrary(lib_c);
162151
std::cout << "lib_c done" << std::endl;
163152

0 commit comments

Comments
 (0)