Skip to content

Commit ad51ee9

Browse files
jplehrronlieb
authored andcommitted
[Offload][OMPT] Remove now unused OMPT functions
This should be NFC. The removed function was used previously in the classic synchronous OMPT implementation and is no longer used. Change-Id: I6b9339363198e1fffe83b9594aab501e03e558fc
1 parent d6a005f commit ad51ee9

File tree

1 file changed

+0
-17
lines changed
  • offload/plugins-nextgen/amdgpu/src

1 file changed

+0
-17
lines changed

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

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ using namespace llvm::omp::xteam_red;
111111
#include "OmptDeviceTracing.h"
112112
#include <omp-tools.h>
113113

114-
extern void ompt::setOmptTimestamp(uint64_t Start, uint64_t End);
115114
extern void ompt::setOmptHostToDeviceRate(double Slope, double Offset);
116115

117116
/// HSA system clock frequency
@@ -3969,22 +3968,6 @@ struct AMDGPUDeviceTy : public GenericDeviceTy, AMDGenericDeviceTy {
39693968
return Plugin::success();
39703969
}
39713970

3972-
/// Get the HSA system timestamps for the input signal associated with an
3973-
/// async copy and pass the information to libomptarget
3974-
void recordCopyTimingInNs(hsa_signal_t signal) {
3975-
hsa_amd_profiling_async_copy_time_t time_rec;
3976-
hsa_status_t Status =
3977-
hsa_amd_profiling_get_async_copy_time(signal, &time_rec);
3978-
if (Status != HSA_STATUS_SUCCESS) {
3979-
DP("Error while getting async copy time\n");
3980-
return;
3981-
}
3982-
#ifdef OMPT_SUPPORT
3983-
ompt::setOmptTimestamp(time_rec.start * TicksToTime,
3984-
time_rec.end * TicksToTime);
3985-
#endif
3986-
}
3987-
39883971
/// Returns true if auto zero-copy the best configuration for the current
39893972
/// arch.
39903973
/// On AMDGPUs, automatic zero-copy is turned on

0 commit comments

Comments
 (0)