@@ -173,7 +173,7 @@ ur_result_t getEventsFromSyncPoints(
173
173
/* *
174
174
* If needed, creates a sync point for a given command and returns the L0
175
175
* events associated with the sync point.
176
- * This operations is skipped if the command buffer is in order.
176
+ * This operations is skipped if the command- buffer is in order.
177
177
* @param[in] CommandType The type of the command.
178
178
* @param[in] CommandBuffer The CommandBuffer where the command is appended.
179
179
* @param[in] NumSyncPointsInWaitList Number of sync points that are
@@ -252,7 +252,7 @@ ur_result_t enqueueCommandBufferMemCopyHelper(
252
252
}
253
253
254
254
// Helper function for common code when enqueuing rectangular memory operations
255
- // to a command buffer.
255
+ // to a command- buffer.
256
256
ur_result_t enqueueCommandBufferMemCopyRectHelper (
257
257
ur_command_t CommandType, ur_exp_command_buffer_handle_t CommandBuffer,
258
258
void *Dst, const void *Src, ur_rect_offset_t SrcOrigin,
@@ -584,10 +584,10 @@ ur_result_t createMainCommandList(ur_context_handle_t Context,
584
584
}
585
585
586
586
/* *
587
- * Checks whether the command buffer can be constructed using in order
587
+ * Checks whether the command- buffer can be constructed using in order
588
588
* command-lists.
589
- * @param[in] Context The Context associated with the command buffer.
590
- * @param[in] CommandBufferDesc The description of the command buffer.
589
+ * @param[in] Context The Context associated with the command- buffer.
590
+ * @param[in] CommandBufferDesc The description of the command- buffer.
591
591
* @return Returns true if in order command-lists can be enabled.
592
592
*/
593
593
bool canBeInOrder (ur_context_handle_t Context,
@@ -810,7 +810,7 @@ finalizeImmediateAppendPath(ur_exp_command_buffer_handle_t CommandBuffer) {
810
810
CommandBuffer->AllResetEvent ->ZeEvent ));
811
811
812
812
// All the events are reset by default. So signal the all reset event for
813
- // the first run of the command buffer
813
+ // the first run of the command- buffer
814
814
ZE2UR_CALL (zeEventHostSignal, (CommandBuffer->AllResetEvent ->ZeEvent ));
815
815
}
816
816
@@ -887,7 +887,7 @@ urCommandBufferFinalizeExp(ur_exp_command_buffer_handle_t CommandBuffer) {
887
887
888
888
/* *
889
889
* Sets the kernel arguments for a kernel command that will be appended to the
890
- * command buffer.
890
+ * command- buffer.
891
891
* @param[in] Device The Device associated with the command-buffer where the
892
892
* kernel command will be appended.
893
893
* @param[in,out] Arguments stored in the ur_kernel_handle_t object to be set
@@ -918,7 +918,7 @@ ur_result_t setKernelPendingArguments(
918
918
}
919
919
920
920
/* *
921
- * Creates a new command handle to use in future updates to the command buffer.
921
+ * Creates a new command handle to use in future updates to the command- buffer.
922
922
* @param[in] CommandBuffer The CommandBuffer associated with the new command.
923
923
* @param[in] Kernel The Kernel associated with the new command.
924
924
* @param[in] WorkDim Dimensions of the kernel associated with the new command.
@@ -1315,7 +1315,7 @@ ur_result_t urCommandBufferAppendUSMPrefetchExp(
1315
1315
std::ignore = Flags;
1316
1316
1317
1317
if (CommandBuffer->IsInOrderCmdList ) {
1318
- // Add the prefetch command to the command buffer.
1318
+ // Add the prefetch command to the command- buffer.
1319
1319
// Note that L0 does not handle migration flags.
1320
1320
ZE2UR_CALL (zeCommandListAppendMemoryPrefetch,
1321
1321
(CommandBuffer->ZeComputeCommandList , Mem, Size));
@@ -1332,7 +1332,7 @@ ur_result_t urCommandBufferAppendUSMPrefetchExp(
1332
1332
ZeEventList.data ()));
1333
1333
}
1334
1334
1335
- // Add the prefetch command to the command buffer.
1335
+ // Add the prefetch command to the command- buffer.
1336
1336
// Note that L0 does not handle migration flags.
1337
1337
ZE2UR_CALL (zeCommandListAppendMemoryPrefetch,
1338
1338
(CommandBuffer->ZeComputeCommandList , Mem, Size));
@@ -1463,7 +1463,7 @@ ur_result_t urCommandBufferAppendUSMFillExp(
1463
1463
1464
1464
/* *
1465
1465
* Gets an L0 command queue that supports the chosen engine.
1466
- * @param[in] Queue The UR queue used to submit the command buffer.
1466
+ * @param[in] Queue The UR queue used to submit the command- buffer.
1467
1467
* @param[in] UseCopyEngine Which engine to use. true for the copy engine and
1468
1468
* false for the compute engine.
1469
1469
* @param[out] ZeCommandQueue The L0 command queue.
@@ -1478,9 +1478,9 @@ ur_result_t getZeCommandQueue(ur_queue_handle_t Queue, bool UseCopyEngine,
1478
1478
}
1479
1479
1480
1480
/* *
1481
- * Waits for the all the dependencies of the command buffer
1482
- * @param[in] CommandBuffer The command buffer.
1483
- * @param[in] Queue The UR queue used to submit the command buffer.
1481
+ * Waits for the all the dependencies of the command- buffer
1482
+ * @param[in] CommandBuffer The command- buffer.
1483
+ * @param[in] Queue The UR queue used to submit the command- buffer.
1484
1484
* @param[in] NumEventsInWaitList The number of events to wait for.
1485
1485
* @param[in] EventWaitList List of events to wait for.
1486
1486
* @return UR_RESULT_SUCCESS or an error code on failure
@@ -1546,10 +1546,10 @@ ur_result_t appendProfilingQueries(ur_exp_command_buffer_handle_t CommandBuffer,
1546
1546
ur_event_handle_t SignalEvent,
1547
1547
ur_event_handle_t WaitEvent,
1548
1548
ur_event_handle_t ProfilingEvent) {
1549
- // Multiple submissions of a command buffer implies that we need to save
1550
- // the event timestamps before resubmiting the command buffer. We
1549
+ // Multiple submissions of a command- buffer implies that we need to save
1550
+ // the event timestamps before resubmiting the command- buffer. We
1551
1551
// therefore copy these timestamps in a dedicated USM memory section
1552
- // before completing the command buffer execution, and then attach this
1552
+ // before completing the command- buffer execution, and then attach this
1553
1553
// memory to the event returned to users to allow the profiling
1554
1554
// engine to recover these timestamps.
1555
1555
command_buffer_profiling_t *Profiling = new command_buffer_profiling_t ();
@@ -2129,9 +2129,9 @@ ur_result_t updateKernelCommand(
2129
2129
*/
2130
2130
ur_result_t
2131
2131
waitForOngoingExecution (ur_exp_command_buffer_handle_t CommandBuffer) {
2132
- // Calling function has taken a lock for the command buffer so we can safely
2132
+ // Calling function has taken a lock for the command- buffer so we can safely
2133
2133
// check and modify this value here.
2134
- // If command buffer was recently synchronized we can return early.
2134
+ // If command- buffer was recently synchronized we can return early.
2135
2135
if (!CommandBuffer->NeedsUpdateSynchronization ) {
2136
2136
return UR_RESULT_SUCCESS;
2137
2137
}
@@ -2147,7 +2147,7 @@ waitForOngoingExecution(ur_exp_command_buffer_handle_t CommandBuffer) {
2147
2147
} else if (ze_fence_handle_t &ZeFence = CommandBuffer->ZeActiveFence ) {
2148
2148
ZE2UR_CALL (zeFenceHostSynchronize, (ZeFence, UINT64_MAX));
2149
2149
}
2150
- // Mark that command buffer was recently synchronized
2150
+ // Mark that command- buffer was recently synchronized
2151
2151
CommandBuffer->NeedsUpdateSynchronization = false ;
2152
2152
return UR_RESULT_SUCCESS;
2153
2153
}
@@ -2162,7 +2162,7 @@ ur_result_t urCommandBufferUpdateKernelLaunchExp(
2162
2162
2163
2163
UR_ASSERT (KernelCommandHandle->Kernel , UR_RESULT_ERROR_INVALID_NULL_HANDLE);
2164
2164
2165
- // Lock command, kernel and command buffer for update.
2165
+ // Lock command, kernel and command- buffer for update.
2166
2166
std::scoped_lock<ur_shared_mutex, ur_shared_mutex, ur_shared_mutex> Guard (
2167
2167
Command->Mutex , Command->CommandBuffer ->Mutex ,
2168
2168
KernelCommandHandle->Kernel ->Mutex );
0 commit comments