diff --git a/projects/hip-tests/catch/unit/dynamicLoading/liblazyLoad.cc b/projects/hip-tests/catch/unit/dynamicLoading/liblazyLoad.cc index ef99c848f4..b2fd275791 100644 --- a/projects/hip-tests/catch/unit/dynamicLoading/liblazyLoad.cc +++ b/projects/hip-tests/catch/unit/dynamicLoading/liblazyLoad.cc @@ -139,7 +139,7 @@ static int cooperativeKernelTest() { int64_t* Ah; hipDeviceProp_t deviceProp; - hipGetDeviceProperties(&deviceProp, 0); + CHECK_RET_VAL(hipGetDeviceProperties(&deviceProp, 0)); if (!deviceProp.cooperativeLaunch) { return testResult; @@ -170,8 +170,8 @@ static int cooperativeKernelTest() { dimBlock.x = workgroups[i]; /* Calculate the device occupancy to know how many blocks can be run concurrently */ - hipOccupancyMaxActiveBlocksPerMultiprocessor( - &numBlocks, test_gws, dimBlock.x * dimBlock.y * dimBlock.z, dimBlock.x * sizeof(int64_t)); + CHECK_RET_VAL(hipOccupancyMaxActiveBlocksPerMultiprocessor( + &numBlocks, test_gws, dimBlock.x * dimBlock.y * dimBlock.z, dimBlock.x * sizeof(int64_t))); dimGrid.x = deviceProp.multiProcessorCount * std::min(numBlocks, 32); CHECK_RET_VAL(hipMalloc(reinterpret_cast(&dB), dimGrid.x * sizeof(int64_t)));