From 2ccd36585dc47ad1c5171894585a11611b991003 Mon Sep 17 00:00:00 2001 From: Rahul Garg Date: Tue, 29 Oct 2019 11:41:08 -0700 Subject: [PATCH] Revert "Fix occupany APIs (#1560)" This reverts commit 75f4baa12ce7f2cc9d877be23f12296aef0cc8b2. [ROCm/hip-tests commit: 1aa9eab331cc272a8c8acebe355be0c172264c83] --- .../samples/2_Cookbook/13_occupancy/occupancy.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/projects/hip-tests/samples/2_Cookbook/13_occupancy/occupancy.cpp b/projects/hip-tests/samples/2_Cookbook/13_occupancy/occupancy.cpp index 01fa7aafed..a9f4e198b0 100644 --- a/projects/hip-tests/samples/2_Cookbook/13_occupancy/occupancy.cpp +++ b/projects/hip-tests/samples/2_Cookbook/13_occupancy/occupancy.cpp @@ -56,9 +56,9 @@ void launchKernel(float* C, float* A, float* B, bool manual){ const unsigned threadsperblock = 32; const unsigned blocks = (NUM/threadsperblock)+1; - int mingridSize = 0; - int gridSize = 0; - int blockSize = 0; + uint32_t mingridSize = 0; + uint32_t gridSize = 0; + uint32_t blockSize = 0; if (manual){ blockSize = threadsperblock; @@ -86,7 +86,7 @@ void launchKernel(float* C, float* A, float* B, bool manual){ printf("kernel Execution time = %6.3fms\n", eventMs); //Calculate Occupancy - int numBlock = 0; + uint32_t numBlock = 0; HIP_CHECK(hipOccupancyMaxActiveBlocksPerMultiprocessor(&numBlock, multiply, blockSize, 0)); if(devProp.maxThreadsPerMultiProcessor){