From f8230f21a989614c43f1c1fa501aca232c6e2d83 Mon Sep 17 00:00:00 2001 From: Kristi Belcher Date: Mon, 7 Oct 2024 14:35:46 -0700 Subject: [PATCH] trying to resolve clock issue --- examples/rap_example.cpp | 7 ------- tests/integration/resource_aware_pool_tests.cpp | 9 --------- 2 files changed, 16 deletions(-) diff --git a/examples/rap_example.cpp b/examples/rap_example.cpp index d2ffb655e..fa42ecd4d 100644 --- a/examples/rap_example.cpp +++ b/examples/rap_example.cpp @@ -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) { diff --git a/tests/integration/resource_aware_pool_tests.cpp b/tests/integration/resource_aware_pool_tests.cpp index 69f83cb70..b39e07190 100644 --- a/tests/integration/resource_aware_pool_tests.cpp +++ b/tests/integration/resource_aware_pool_tests.cpp @@ -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 - -__device__ clock_value_t my_clock() -{ - return hipGetClock(); -} -#endif __device__ void my_sleep(clock_value_t sleep_cycles) {