From 266355ffb3b28811854cceabfd26af080689bb5c Mon Sep 17 00:00:00 2001 From: Maneesh Gupta Date: Thu, 30 Sep 2021 13:17:15 +0530 Subject: [PATCH] [dtest] Remove unused variables in hipMemset2DAsyncMultiThreadAndKernel.cc [ROCm/hip commit: 865b40d8bd8b26a7dfe4d9719e8dcf26f4b3afc6] --- .../unit/memory/hipMemset2DAsyncMultiThreadAndKernel.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/projects/hip/tests/catch/unit/memory/hipMemset2DAsyncMultiThreadAndKernel.cc b/projects/hip/tests/catch/unit/memory/hipMemset2DAsyncMultiThreadAndKernel.cc index 04240a4104..479e163c26 100644 --- a/projects/hip/tests/catch/unit/memory/hipMemset2DAsyncMultiThreadAndKernel.cc +++ b/projects/hip/tests/catch/unit/memory/hipMemset2DAsyncMultiThreadAndKernel.cc @@ -112,9 +112,6 @@ TEST_CASE("Unit_hipMemset2DAsync_WithKernel") { * hipMemSet2DAsync execution in multiple threads. */ TEST_CASE("Unit_hipMemset2DAsync_MultiThread") { - constexpr auto N = 4 * 1024 * 1024; - constexpr auto blocksPerCU = 6; // to hide latency - constexpr auto threadsPerBlock = 256; constexpr auto memPerThread = 200; constexpr int memsetval = 0x22; char *A_d, *A_h, *B_d, *B_h, *C_d; @@ -122,11 +119,10 @@ TEST_CASE("Unit_hipMemset2DAsync_MultiThread") { size_t width = NUM_W * sizeof(char); size_t sizeElements = width * NUM_H; size_t elements = NUM_W * NUM_H; - unsigned blocks{}; + int validateCount{}; hipStream_t stream; - blocks = HipTest::setNumBlocks(blocksPerCU, threadsPerBlock, N); auto thread_count = HipTest::getHostThreadCount(memPerThread, NUM_THREADS); if (thread_count == 0) { WARN("Resources not available for thread creation");