Skip to content

Commit 79be9c5

Browse files
committed
Update naming for member functions
1 parent f25bc5e commit 79be9c5

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

source/adapters/level_zero/command_buffer.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ preferCopyEngineForFill(ur_exp_command_buffer_handle_t CommandBuffer,
6969
assert(PatternSize > 0);
7070

7171
PreferCopyEngine = false;
72-
if (!CommandBuffer->UseCopyEngine()) {
72+
if (!CommandBuffer->useCopyEngine()) {
7373
return UR_RESULT_SUCCESS;
7474
}
7575

@@ -301,8 +301,8 @@ ur_result_t createSyncPointAndGetZeEvents(
301301

302302
// Get sync point and register the event with it.
303303
ur_exp_command_buffer_sync_point_t SyncPoint =
304-
CommandBuffer->GetNextSyncPoint();
305-
CommandBuffer->RegisterSyncPoint(SyncPoint, LaunchEvent);
304+
CommandBuffer->getNextSyncPoint();
305+
CommandBuffer->registerSyncPoint(SyncPoint, LaunchEvent);
306306

307307
if (RetSyncPoint) {
308308
*RetSyncPoint = SyncPoint;
@@ -463,7 +463,7 @@ ur_exp_command_buffer_handle_t_::~ur_exp_command_buffer_handle_t_() {
463463
if (ZeComputeCommandList) {
464464
ZE_CALL_NOCHECK(zeCommandListDestroy, (ZeComputeCommandList));
465465
}
466-
if (UseCopyEngine() && ZeCopyCommandList) {
466+
if (useCopyEngine() && ZeCopyCommandList) {
467467
ZE_CALL_NOCHECK(zeCommandListDestroy, (ZeCopyCommandList));
468468
}
469469

@@ -549,7 +549,7 @@ ur_exp_command_buffer_command_handle_t_::
549549
urKernelRelease(Kernel);
550550
}
551551

552-
void ur_exp_command_buffer_handle_t_::RegisterSyncPoint(
552+
void ur_exp_command_buffer_handle_t_::registerSyncPoint(
553553
ur_exp_command_buffer_sync_point_t SyncPoint, ur_event_handle_t Event) {
554554
SyncPoints[SyncPoint] = Event;
555555
NextSyncPoint++;
@@ -558,7 +558,7 @@ void ur_exp_command_buffer_handle_t_::RegisterSyncPoint(
558558

559559
ze_command_list_handle_t
560560
ur_exp_command_buffer_handle_t_::chooseCommandList(bool PreferCopyEngine) {
561-
if (PreferCopyEngine && this->UseCopyEngine() && !this->IsInOrderCmdList) {
561+
if (PreferCopyEngine && this->useCopyEngine() && !this->IsInOrderCmdList) {
562562
// We indicate that ZeCopyCommandList contains commands to be submitted.
563563
this->MCopyCommandListEmpty = false;
564564
return this->ZeCopyCommandList;
@@ -766,7 +766,7 @@ urCommandBufferFinalizeExp(ur_exp_command_buffer_handle_t CommandBuffer) {
766766
ZE2UR_CALL(zeCommandListClose, (CommandBuffer->ZeComputeCommandList));
767767
ZE2UR_CALL(zeCommandListClose, (CommandBuffer->ZeCommandListResetEvents));
768768

769-
if (CommandBuffer->UseCopyEngine()) {
769+
if (CommandBuffer->useCopyEngine()) {
770770
ZE2UR_CALL(zeCommandListClose, (CommandBuffer->ZeCopyCommandList));
771771
}
772772

source/adapters/level_zero/command_buffer.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@ struct ur_exp_command_buffer_handle_t_ : public _ur_object {
3636

3737
~ur_exp_command_buffer_handle_t_();
3838

39-
void RegisterSyncPoint(ur_exp_command_buffer_sync_point_t SyncPoint,
39+
void registerSyncPoint(ur_exp_command_buffer_sync_point_t SyncPoint,
4040
ur_event_handle_t Event);
4141

42-
ur_exp_command_buffer_sync_point_t GetNextSyncPoint() const {
42+
ur_exp_command_buffer_sync_point_t getNextSyncPoint() const {
4343
return NextSyncPoint;
4444
}
4545

4646
// Indicates if a copy engine is available for use
47-
bool UseCopyEngine() const { return ZeCopyCommandList != nullptr; }
47+
bool useCopyEngine() const { return ZeCopyCommandList != nullptr; }
4848

4949
/**
5050
* Obtains a fence for a specific L0 queue. If there is already an available

0 commit comments

Comments
 (0)