Skip to content

Commit a6830fb

Browse files
committed
Renaming after CoPilot suggestion
1 parent 995ef70 commit a6830fb

File tree

1 file changed

+3
-4
lines changed
  • offload/plugins-nextgen/amdgpu/src

1 file changed

+3
-4
lines changed

offload/plugins-nextgen/amdgpu/src/rtl.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5861,7 +5861,7 @@ unsigned AMDGPUKernelTy::computeAchievedOccupancy(GenericDeviceTy &Device,
58615861
}
58625862

58635863
/// Enable profiling of HSA queues
5864-
void setQueueProfiling(void *Device, int Enable) {
5864+
void setHSAQueueProfiling(void *Device, int Enable) {
58655865
reinterpret_cast<AMDGPUDeviceTy *>(Device)->setHSAQueueProfiling(Enable);
58665866
}
58675867

@@ -5875,15 +5875,14 @@ namespace llvm::omp::target::plugin {
58755875

58765876
/// Enable/disable kernel profiling for the given device.
58775877
void setOmptQueueProfile(void *Device, int Enable) {
5878-
reinterpret_cast<llvm::omp::target::plugin::AMDGPUDeviceTy *>(Device)
5879-
->setHSAQueueProfiling(Enable);
5878+
setHSAQueueProfiling(Device, Enable);
58805879
}
58815880

58825881
} // namespace llvm::omp::target::plugin
58835882

58845883
/// Enable/disable kernel profiling for the given device.
58855884
void setGlobalOmptKernelProfile(void *Device, int Enable) {
5886-
llvm::omp::target::plugin::setQueueProfiling(Device, Enable);
5885+
llvm::omp::target::plugin::setHSAQueueProfiling(Device, Enable);
58875886
}
58885887

58895888
#endif

0 commit comments

Comments
 (0)