@@ -173,7 +173,7 @@ ur_result_t getEventsFromSyncPoints(
173173/* *
174174 * If needed, creates a sync point for a given command and returns the L0
175175 * 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.
177177 * @param[in] CommandType The type of the command.
178178 * @param[in] CommandBuffer The CommandBuffer where the command is appended.
179179 * @param[in] NumSyncPointsInWaitList Number of sync points that are
@@ -252,7 +252,7 @@ ur_result_t enqueueCommandBufferMemCopyHelper(
252252}
253253
254254// Helper function for common code when enqueuing rectangular memory operations
255- // to a command buffer.
255+ // to a command- buffer.
256256ur_result_t enqueueCommandBufferMemCopyRectHelper (
257257 ur_command_t CommandType, ur_exp_command_buffer_handle_t CommandBuffer,
258258 void *Dst, const void *Src, ur_rect_offset_t SrcOrigin,
@@ -584,10 +584,10 @@ ur_result_t createMainCommandList(ur_context_handle_t Context,
584584}
585585
586586/* *
587- * Checks whether the command buffer can be constructed using in order
587+ * Checks whether the command- buffer can be constructed using in order
588588 * 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.
591591 * @return Returns true if in order command-lists can be enabled.
592592 */
593593bool canBeInOrder (ur_context_handle_t Context,
@@ -810,7 +810,7 @@ finalizeImmediateAppendPath(ur_exp_command_buffer_handle_t CommandBuffer) {
810810 CommandBuffer->AllResetEvent ->ZeEvent ));
811811
812812 // 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
814814 ZE2UR_CALL (zeEventHostSignal, (CommandBuffer->AllResetEvent ->ZeEvent ));
815815 }
816816
@@ -887,7 +887,7 @@ urCommandBufferFinalizeExp(ur_exp_command_buffer_handle_t CommandBuffer) {
887887
888888/* *
889889 * Sets the kernel arguments for a kernel command that will be appended to the
890- * command buffer.
890+ * command- buffer.
891891 * @param[in] Device The Device associated with the command-buffer where the
892892 * kernel command will be appended.
893893 * @param[in,out] Arguments stored in the ur_kernel_handle_t object to be set
@@ -918,7 +918,7 @@ ur_result_t setKernelPendingArguments(
918918}
919919
920920/* *
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.
922922 * @param[in] CommandBuffer The CommandBuffer associated with the new command.
923923 * @param[in] Kernel The Kernel associated with the new command.
924924 * @param[in] WorkDim Dimensions of the kernel associated with the new command.
@@ -1315,7 +1315,7 @@ ur_result_t urCommandBufferAppendUSMPrefetchExp(
13151315 std::ignore = Flags;
13161316
13171317 if (CommandBuffer->IsInOrderCmdList ) {
1318- // Add the prefetch command to the command buffer.
1318+ // Add the prefetch command to the command- buffer.
13191319 // Note that L0 does not handle migration flags.
13201320 ZE2UR_CALL (zeCommandListAppendMemoryPrefetch,
13211321 (CommandBuffer->ZeComputeCommandList , Mem, Size));
@@ -1332,7 +1332,7 @@ ur_result_t urCommandBufferAppendUSMPrefetchExp(
13321332 ZeEventList.data ()));
13331333 }
13341334
1335- // Add the prefetch command to the command buffer.
1335+ // Add the prefetch command to the command- buffer.
13361336 // Note that L0 does not handle migration flags.
13371337 ZE2UR_CALL (zeCommandListAppendMemoryPrefetch,
13381338 (CommandBuffer->ZeComputeCommandList , Mem, Size));
@@ -1463,7 +1463,7 @@ ur_result_t urCommandBufferAppendUSMFillExp(
14631463
14641464/* *
14651465 * 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.
14671467 * @param[in] UseCopyEngine Which engine to use. true for the copy engine and
14681468 * false for the compute engine.
14691469 * @param[out] ZeCommandQueue The L0 command queue.
@@ -1478,9 +1478,9 @@ ur_result_t getZeCommandQueue(ur_queue_handle_t Queue, bool UseCopyEngine,
14781478}
14791479
14801480/* *
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.
14841484 * @param[in] NumEventsInWaitList The number of events to wait for.
14851485 * @param[in] EventWaitList List of events to wait for.
14861486 * @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,
15461546 ur_event_handle_t SignalEvent,
15471547 ur_event_handle_t WaitEvent,
15481548 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
15511551 // 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
15531553 // memory to the event returned to users to allow the profiling
15541554 // engine to recover these timestamps.
15551555 command_buffer_profiling_t *Profiling = new command_buffer_profiling_t ();
@@ -2129,9 +2129,9 @@ ur_result_t updateKernelCommand(
21292129 */
21302130ur_result_t
21312131waitForOngoingExecution (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
21332133 // 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.
21352135 if (!CommandBuffer->NeedsUpdateSynchronization ) {
21362136 return UR_RESULT_SUCCESS;
21372137 }
@@ -2147,7 +2147,7 @@ waitForOngoingExecution(ur_exp_command_buffer_handle_t CommandBuffer) {
21472147 } else if (ze_fence_handle_t &ZeFence = CommandBuffer->ZeActiveFence ) {
21482148 ZE2UR_CALL (zeFenceHostSynchronize, (ZeFence, UINT64_MAX));
21492149 }
2150- // Mark that command buffer was recently synchronized
2150+ // Mark that command- buffer was recently synchronized
21512151 CommandBuffer->NeedsUpdateSynchronization = false ;
21522152 return UR_RESULT_SUCCESS;
21532153}
@@ -2162,7 +2162,7 @@ ur_result_t urCommandBufferUpdateKernelLaunchExp(
21622162
21632163 UR_ASSERT (KernelCommandHandle->Kernel , UR_RESULT_ERROR_INVALID_NULL_HANDLE);
21642164
2165- // Lock command, kernel and command buffer for update.
2165+ // Lock command, kernel and command- buffer for update.
21662166 std::scoped_lock<ur_shared_mutex, ur_shared_mutex, ur_shared_mutex> Guard (
21672167 Command->Mutex , Command->CommandBuffer ->Mutex ,
21682168 KernelCommandHandle->Kernel ->Mutex );
0 commit comments