Skip to content

Commit 3a67e1e

Browse files
committed
[Offload][OMPT] Some minor cleanups
These cleanups are mostly relevant for builds with OMPT disabled.
1 parent 2ff635e commit 3a67e1e

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
@@ -5804,8 +5804,7 @@ Expected<void *> AMDGPUDeviceTy::allocate(size_t Size, void *,
58045804
return Alloc;
58055805
}
58065806

5807-
#ifdef OMPT_SUPPORT
5808-
/// Casts and validated the OMPT-related info passed to the action function.
5807+
/// Casts and checks the Profiler related information to not be nullptr.
58095808
static ProfilingInfoTy *getProfilingInfo(void *Data) {
58105809
ProfilingInfoTy *Args = reinterpret_cast<ProfilingInfoTy *>(Data);
58115810

@@ -5864,7 +5863,6 @@ getCopyStartAndEndTime(const ProfilingInfoTy *Args) {
58645863

58655864
return {StartTime, EndTime};
58665865
}
5867-
#endif
58685866

58695867
void AMDGPUQueueTy::callbackError(hsa_status_t Status, hsa_queue_t *Source,
58705868
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)