Skip to content

Commit

Permalink
device-libs: Remove deprecated timer functions
Browse files Browse the repository at this point in the history
These have been marked deprecated for 9 months. The library also
cannot meaningfully abstract over these, so you might as well use the
raw __builtin_amdgcn_* functions.

Change-Id: Id70e12396933290ff2574a32d7529b76a6309253
  • Loading branch information
arsenm authored and ronlieb committed Nov 3, 2023
1 parent 2d8a42b commit eec2ef7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
5 changes: 0 additions & 5 deletions amd/device-libs/ockl/inc/ockl.h
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,6 @@ DECL_CONST_OCKL_BINARY_U32(mul24)
DECL_OCKL_NULLARY_U32(lane)
DECL_OCKL_NULLARY_U32(activelane)

OCKL_DEPRECATED
DECL_OCKL_NULLARY_U64(memtime)

OCKL_DEPRECATED
DECL_OCKL_NULLARY_U64(memrealtime)
DECL_OCKL_NULLARY_U64(cyclectr)
DECL_OCKL_NULLARY_U64(steadyctr)

Expand Down
14 changes: 0 additions & 14 deletions amd/device-libs/ockl/src/mtime.cl
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,6 @@ msg_realtime(void)
return __builtin_amdgcn_s_sendmsg_rtnl(0x83);
}

// Deprecated
__attribute__((target("s-memtime-inst"))) ulong
OCKL_MANGLE_U64(memtime)(void)
{
return __builtin_amdgcn_s_memtime();
}

// Deprecated
ulong
OCKL_MANGLE_U64(memrealtime)(void)
{
return mem_realtime();
}

ulong
OCKL_MANGLE_U64(cyclectr)(void)
{
Expand Down

0 comments on commit eec2ef7

Please sign in to comment.