Skip to content

Commit 2f2cd78

Browse files
authored
[Offload][OMPT] Some minor cleanups (llvm#4323)
2 parents f0fa207 + 3a67e1e commit 2f2cd78

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5834,8 +5834,7 @@ Expected<void *> AMDGPUDeviceTy::allocate(size_t Size, void *,
58345834
return Alloc;
58355835
}
58365836

5837-
#ifdef OMPT_SUPPORT
5838-
/// Casts and validated the OMPT-related info passed to the action function.
5837+
/// Casts and checks the Profiler related information to not be nullptr.
58395838
static ProfilingInfoTy *getProfilingInfo(void *Data) {
58405839
ProfilingInfoTy *Args = reinterpret_cast<ProfilingInfoTy *>(Data);
58415840

@@ -5894,7 +5893,6 @@ getCopyStartAndEndTime(const ProfilingInfoTy *Args) {
58945893

58955894
return {StartTime, EndTime};
58965895
}
5897-
#endif
58985896

58995897
void AMDGPUQueueTy::callbackError(hsa_status_t Status, hsa_queue_t *Source,
59005898
void *Data) {

offload/plugins-nextgen/common/include/GenericProfiler.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@ class GenericProfilerTy {
5757
GenericProfilerTy() = default;
5858
virtual ~GenericProfilerTy() = default;
5959

60-
void showItself() { DP("GenericProfilerTy: %p\n", this); }
61-
6260
/// Obtain a pointer to profiler-specific data, if any.
6361
virtual void *getProfilerSpecificData() { return nullptr; }
6462

0 commit comments

Comments
 (0)