@@ -84,18 +84,12 @@ class L0DeviceTLSTy {
8484 // / Main copy command list for each device
8585 ze_command_list_handle_t CopyCmdList = nullptr ;
8686
87- // / Link copy command list for each device
88- ze_command_list_handle_t LinkCopyCmdList = nullptr ;
89-
9087 // / Command queue for each device
9188 ze_command_queue_handle_t CmdQueue = nullptr ;
9289
9390 // / Main copy command queue for each device
9491 ze_command_queue_handle_t CopyCmdQueue = nullptr ;
9592
96- // / Link copy command queues for each device
97- ze_command_queue_handle_t LinkCopyCmdQueue = nullptr ;
98-
9993 // / Immediate command list for each device
10094 ze_command_list_handle_t ImmCmdList = nullptr ;
10195
@@ -106,20 +100,17 @@ class L0DeviceTLSTy {
106100 L0DeviceTLSTy () = default ;
107101 ~L0DeviceTLSTy () {
108102 // assert all fields are nullptr on destruction
109- assert (!CmdList && !CopyCmdList && !LinkCopyCmdList && !CmdQueue &&
110- !CopyCmdQueue && !LinkCopyCmdQueue && !ImmCmdList &&
111- !ImmCopyCmdList &&
103+ assert (!CmdList && !CopyCmdList && !CmdQueue && !CopyCmdQueue &&
104+ !ImmCmdList && !ImmCopyCmdList &&
112105 " L0DeviceTLSTy destroyed without clearing resources" );
113106 }
114107
115108 L0DeviceTLSTy (const L0DeviceTLSTy &) = delete ;
116109 L0DeviceTLSTy (L0DeviceTLSTy &&Other) {
117110 CmdList = std::exchange (Other.CmdList , nullptr );
118111 CopyCmdList = std::exchange (Other.CopyCmdList , nullptr );
119- LinkCopyCmdList = std::exchange (Other.LinkCopyCmdList , nullptr );
120112 CmdQueue = std::exchange (Other.CmdQueue , nullptr );
121113 CopyCmdQueue = std::exchange (Other.CopyCmdQueue , nullptr );
122- LinkCopyCmdQueue = std::exchange (Other.LinkCopyCmdQueue , nullptr );
123114 ImmCmdList = std::exchange (Other.ImmCmdList , nullptr );
124115 ImmCopyCmdList = std::exchange (Other.ImmCopyCmdList , nullptr );
125116 }
@@ -130,8 +121,6 @@ class L0DeviceTLSTy {
130121 CALL_ZE_EXIT_FAIL (zeCommandListDestroy, CmdList);
131122 if (CopyCmdList)
132123 CALL_ZE_EXIT_FAIL (zeCommandListDestroy, CopyCmdList);
133- if (LinkCopyCmdList)
134- CALL_ZE_EXIT_FAIL (zeCommandListDestroy, LinkCopyCmdList);
135124 if (ImmCmdList)
136125 CALL_ZE_EXIT_FAIL (zeCommandListDestroy, ImmCmdList);
137126 if (ImmCopyCmdList)
@@ -140,15 +129,11 @@ class L0DeviceTLSTy {
140129 CALL_ZE_EXIT_FAIL (zeCommandQueueDestroy, CmdQueue);
141130 if (CopyCmdQueue)
142131 CALL_ZE_EXIT_FAIL (zeCommandQueueDestroy, CopyCmdQueue);
143- if (LinkCopyCmdQueue)
144- CALL_ZE_EXIT_FAIL (zeCommandQueueDestroy, LinkCopyCmdQueue);
145132
146133 CmdList = nullptr ;
147134 CopyCmdList = nullptr ;
148- LinkCopyCmdList = nullptr ;
149135 CmdQueue = nullptr ;
150136 CopyCmdQueue = nullptr ;
151- LinkCopyCmdQueue = nullptr ;
152137 ImmCmdList = nullptr ;
153138 ImmCopyCmdList = nullptr ;
154139 }
@@ -164,13 +149,6 @@ class L0DeviceTLSTy {
164149 CopyCmdList = _CopyCmdList;
165150 }
166151
167- ze_command_list_handle_t getLinkCopyCmdList () const {
168- return LinkCopyCmdList;
169- }
170- void setLinkCopyCmdList (ze_command_list_handle_t _LinkCopyCmdList) {
171- LinkCopyCmdList = _LinkCopyCmdList;
172- }
173-
174152 ze_command_list_handle_t getImmCmdList () const { return ImmCmdList; }
175153 void setImmCmdList (ze_command_list_handle_t ImmCmdListIn) {
176154 ImmCmdList = ImmCmdListIn;
@@ -190,13 +168,6 @@ class L0DeviceTLSTy {
190168 void setCopyCmdQueue (ze_command_queue_handle_t CopyCmdQueueIn) {
191169 CopyCmdQueue = CopyCmdQueueIn;
192170 }
193-
194- ze_command_queue_handle_t getLinkCopyCmdQueue () const {
195- return LinkCopyCmdQueue;
196- }
197- void setLinkCopyCmdQueue (ze_command_queue_handle_t LinkCopyCmdQueueIn) {
198- LinkCopyCmdQueue = LinkCopyCmdQueueIn;
199- }
200171};
201172
202173struct L0DeviceTLSTableTy
@@ -238,8 +209,6 @@ class L0DeviceTy final : public GenericDeviceTy {
238209 std::pair<uint32_t , uint32_t > ComputeOrdinal{UINT32_MAX, 0 };
239210 // / Command queue group ordinals for copying
240211 std::pair<uint32_t , uint32_t > CopyOrdinal{UINT32_MAX, 0 };
241- // / Command queue group ordinals and number of queues for link copy engines
242- std::pair<uint32_t , uint32_t > LinkCopyOrdinal{UINT32_MAX, 0 };
243212
244213 // / Command queue index for each device
245214 uint32_t ComputeIndex = 0 ;
@@ -416,10 +385,6 @@ class L0DeviceTy final : public GenericDeviceTy {
416385 bool hasMainCopyEngine () const { return CopyOrdinal.first != UINT32_MAX; }
417386 uint32_t getMainCopyEngine () const { return CopyOrdinal.first ; }
418387
419- uint32_t getLinkCopyEngine () const { return LinkCopyOrdinal.first ; }
420- uint32_t getNumLinkCopyQueues () const { return LinkCopyOrdinal.second ; }
421- bool hasLinkCopyEngine () const { return getNumLinkCopyQueues () > 0 ; }
422-
423388 bool deviceRequiresImmCmdList () const {
424389 return isDeviceIPorNewer (0x05004000 );
425390 }
@@ -474,8 +439,6 @@ class L0DeviceTy final : public GenericDeviceTy {
474439 Expected<ze_command_queue_handle_t > getCmdQueue ();
475440 Expected<ze_command_list_handle_t > getCopyCmdList ();
476441 Expected<ze_command_queue_handle_t > getCopyCmdQueue ();
477- Expected<ze_command_list_handle_t > getLinkCopyCmdList ();
478- Expected<ze_command_queue_handle_t > getLinkCopyCmdQueue ();
479442 Expected<ze_command_list_handle_t > getImmCmdList ();
480443 Expected<ze_command_list_handle_t > getImmCopyCmdList ();
481444
0 commit comments