From 380d29ed3171644c0ce1c0c9d2ed89c112289711 Mon Sep 17 00:00:00 2001 From: github-actions Date: Thu, 3 Oct 2024 21:16:48 +0000 Subject: [PATCH] Apply style updates --- examples/rap_example.cpp | 11 ++++++++--- tests/unit/resource/shared_memory_resource_tests.cpp | 4 ++-- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/examples/rap_example.cpp b/examples/rap_example.cpp index 12b8689e6..833b96dbe 100644 --- a/examples/rap_example.cpp +++ b/examples/rap_example.cpp @@ -37,12 +37,17 @@ constexpr int BLOCK_SIZE = 16; using clock_value_t = long long; #if defined(UMPIRE_ENABLE_CUDA) - __device__ clock_value_t my_clock() {return clock64();} +__device__ clock_value_t my_clock() +{ + return clock64(); +} #elif defined(UMPIRE_ENABLE_HIP) - __device__ clock_value_t my_clock() {return hipGetClock();} +__device__ clock_value_t my_clock() +{ + return hipGetClock(); +} #endif - __device__ void sleep(clock_value_t sleep_cycles) { clock_value_t start = my_clock(); diff --git a/tests/unit/resource/shared_memory_resource_tests.cpp b/tests/unit/resource/shared_memory_resource_tests.cpp index 5be4d1ccf..b4ac74717 100644 --- a/tests/unit/resource/shared_memory_resource_tests.cpp +++ b/tests/unit/resource/shared_memory_resource_tests.cpp @@ -176,8 +176,8 @@ TEST_F(SharedMemoryTest, UnitTests) { if (m_rank == 0) { for (int loop{0}; loop < 100; loop++) { - ASSERT_NO_THROW( - allocator.deallocate(allocator.allocate(std::string("AllocLargest"), shmem_state->largest_allocation_size));); + ASSERT_NO_THROW(allocator.deallocate( + allocator.allocate(std::string("AllocLargest"), shmem_state->largest_allocation_size));); } } }