Rename hipDrvOccupancy to hipModuleOccupancy and match CUDA syntax (#1943)

[ROCm/hip commit: ba8a556ea9]
This commit is contained in:
Rahul Garg
2020-04-07 01:32:52 -07:00
committed by GitHub
parent 326bd0fe1d
commit 003d776e72
10 changed files with 222 additions and 112 deletions
@@ -116,7 +116,7 @@ int main() {
dimBlock.x = workgroups[i];
// Calculate the device occupancy to know how many blocks can be run concurrently
hipOccupancyMaxActiveBlocksPerMultiprocessor(reinterpret_cast<uint32_t*>(&numBlocks),
hipOccupancyMaxActiveBlocksPerMultiprocessor(&numBlocks,
test_gws, dimBlock.x * dimBlock.y * dimBlock.z, dimBlock.x * sizeof(long));
dimGrid.x = deviceProp.multiProcessorCount * std::min(numBlocks, 32);