Skip to content

Commit bb30592

Browse files
fix: remove explicit template instantiation
Related-To: NEO-9888 Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com> Source: 8ca8d72
1 parent d18c75a commit bb30592

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

level_zero/core/source/event/event.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2020-2023 Intel Corporation
2+
* Copyright (C) 2020-2024 Intel Corporation
33
*
44
* SPDX-License-Identifier: MIT
55
*
@@ -39,9 +39,6 @@ namespace L0 {
3939
template Event *Event::create<uint64_t>(EventPool *, const ze_event_desc_t *, Device *);
4040
template Event *Event::create<uint32_t>(EventPool *, const ze_event_desc_t *, Device *);
4141

42-
template struct EventImp<uint32_t>;
43-
template struct EventImp<uint64_t>;
44-
4542
ze_result_t EventPool::initialize(DriverHandle *driver, Context *context, uint32_t numDevices, ze_device_handle_t *deviceHandles) {
4643
this->context = static_cast<ContextImp *>(context);
4744

level_zero/core/source/event/event_impl.inl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
/*
2-
* Copyright (C) 2021-2023 Intel Corporation
2+
* Copyright (C) 2021-2024 Intel Corporation
33
*
44
* SPDX-License-Identifier: MIT
55
*
66
*/
77

88
#include "shared/source/assert_handler/assert_handler.h"
99
#include "shared/source/command_container/implicit_scaling.h"
10+
#include "shared/source/command_stream/command_stream_receiver.h"
1011
#include "shared/source/debug_settings/debug_settings_manager.h"
1112
#include "shared/source/device/sub_device.h"
1213
#include "shared/source/helpers/hw_info.h"
1314
#include "shared/source/memory_manager/internal_allocation_storage.h"
1415
#include "shared/source/memory_manager/memory_operations_handler.h"
1516
#include "shared/source/os_interface/os_context.h"
1617
#include "shared/source/os_interface/os_time.h"
18+
#include "shared/source/utilities/wait_util.h"
1719

1820
#include "level_zero/core/source/device/device.h"
1921
#include "level_zero/core/source/event/event_imp.h"

level_zero/core/test/unit_tests/fixtures/event_fixture.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2023 Intel Corporation
2+
* Copyright (C) 2023-2024 Intel Corporation
33
*
44
* SPDX-License-Identifier: MIT
55
*
@@ -9,10 +9,14 @@
99

1010
#include "level_zero/core/source/context/context_imp.h"
1111
#include "level_zero/core/source/driver/driver_handle_imp.h"
12+
#include "level_zero/core/source/event/event_impl.inl"
1213

1314
#include "gtest/gtest.h"
1415

1516
namespace L0 {
17+
template struct EventImp<uint32_t>;
18+
template struct EventImp<uint64_t>;
19+
1620
namespace ult {
1721

1822
void EventFixtureImpl::setUpImpl(int32_t eventPoolHostFlag, int32_t eventPoolTimestampFlag) {

0 commit comments

Comments
 (0)