From ce2db2ba6732470b5ef26dcb3f46aee1ef153ada Mon Sep 17 00:00:00 2001 From: Maneesh Gupta Date: Mon, 10 Feb 2020 10:45:28 +0530 Subject: [PATCH] Revert "Match Occupancy APIs syntax with CUDA (#1625)" (#1857) Reverting this for now till we figure out how to avoid the build breakage. This reverts commit 884f9f5b8494bc3282cc064c72156c433192eb13. [ROCm/hip-tests commit: 3e0af4b4a932defb7defdc6e0b6805b1f32136f3] --- .../hip-tests/samples/2_Cookbook/13_occupancy/occupancy.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 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 605c7724b2..a9f4e198b0 100644 --- a/projects/hip-tests/samples/2_Cookbook/13_occupancy/occupancy.cpp +++ b/projects/hip-tests/samples/2_Cookbook/13_occupancy/occupancy.cpp @@ -86,8 +86,8 @@ void launchKernel(float* C, float* A, float* B, bool manual){ printf("kernel Execution time = %6.3fms\n", eventMs); //Calculate Occupancy - int numBlock = 0; - HIP_CHECK(hipOccupancyMaxActiveBlocksPerMultiprocessor(&numBlock, multiply,(int)blockSize, 0)); + uint32_t numBlock = 0; + HIP_CHECK(hipOccupancyMaxActiveBlocksPerMultiprocessor(&numBlock, multiply, blockSize, 0)); if(devProp.maxThreadsPerMultiProcessor){ std::cout << "Theoretical Occupancy is " << (double)numBlock* blockSize/devProp.maxThreadsPerMultiProcessor * 100 << "%" << std::endl;