From c8ca2355aeb1ea2ed8da349dc6cba61de4803b17 Mon Sep 17 00:00:00 2001 From: Aryan Salmanpour Date: Thu, 26 Mar 2020 07:40:42 -0400 Subject: [PATCH] [hip] fix a build error when building hip with latest hcc (#1977) there is a build error when building HIP with latest HCC from GitHub after PR#1935 merged into HIP master branch. this PR changed blockDimX to blockDim and two lines missed this change where added in the current PR. --- src/hip_module.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hip_module.cpp b/src/hip_module.cpp index 794bf868e5..5334e3ff4d 100644 --- a/src/hip_module.cpp +++ b/src/hip_module.cpp @@ -510,7 +510,7 @@ hipError_t ihipLaunchCooperativeKernel(const void* f, dim3 gridDim, stream = ihipSyncAndResolveStream(stream); if (!stream->getDevice()->_props.cooperativeLaunch || - blockDimX.x * blockDimX.y * blockDimX.z > stream->getDevice()->_props.maxThreadsPerBlock) { + blockDim.x * blockDim.y * blockDim.z > stream->getDevice()->_props.maxThreadsPerBlock) { return hipErrorInvalidConfiguration; } @@ -553,7 +553,7 @@ hipError_t ihipLaunchCooperativeKernel(const void* f, dim3 gridDim, GET_TLS(); uint32_t numBlocksPerSm = 0; result = ihipOccupancyMaxActiveBlocksPerMultiprocessor(tls, &numBlocksPerSm, kd, - blockDimX.x * blockDimX.y * blockDimX.z, sharedMemBytes); + blockDim.x * blockDim.y * blockDim.z, sharedMemBytes); if (result != hipSuccess) { return hipErrorLaunchFailure; }