Skip to content

Commit

Permalink
trying to resolve clock issue
Browse files Browse the repository at this point in the history
  • Loading branch information
kab163 committed Oct 7, 2024
1 parent 857cf35 commit f8230f2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
7 changes: 0 additions & 7 deletions examples/rap_example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,10 @@ void host_sleep(double* ptr)
constexpr int BLOCK_SIZE = 16;
using clock_value_t = long long;

#if defined(UMPIRE_ENABLE_CUDA)
__device__ clock_value_t my_clock()
{
return clock64();
}
#elif defined(UMPIRE_ENABLE_HIP)
__device__ clock_value_t my_clock()
{
return hipGetClock();
}
#endif

__device__ void sleep(clock_value_t sleep_cycles)
{
Expand Down
9 changes: 0 additions & 9 deletions tests/integration/resource_aware_pool_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,10 @@ void host_sleep(int* ptr)

using clock_value_t = long long;

#if defined(UMPIRE_ENABLE_CUDA)
__device__ clock_value_t my_clock()
{
return clock64();
}
#elif defined(UMPIRE_ENABLE_HIP)
#include <hip/hip_runtime.h>

__device__ clock_value_t my_clock()
{
return hipGetClock();
}
#endif

__device__ void my_sleep(clock_value_t sleep_cycles)
{
Expand Down

0 comments on commit f8230f2

Please sign in to comment.