diff --git a/catch/unit/memory/hipMemPoolSetGetAccess.cc b/catch/unit/memory/hipMemPoolSetGetAccess.cc index ce42aff87f..ddb0f4e8fc 100644 --- a/catch/unit/memory/hipMemPoolSetGetAccess.cc +++ b/catch/unit/memory/hipMemPoolSetGetAccess.cc @@ -273,12 +273,12 @@ TEST_CASE("Unit_hipMemPoolSetAccess_Negative_Parameters") { #endif SECTION("Count > num_device") { HIP_CHECK_ERROR(hipMemPoolSetAccess(mempool.mempool(), &desc, (num_dev + 1)), - hipErrorNotSupported); + hipErrorInvalidDevice); } SECTION("Passing invalid desc location type") { desc.location.type = hipMemLocationTypeInvalid; - HIP_CHECK_ERROR(hipMemPoolSetAccess(mempool.mempool(), &desc, 1), hipErrorNotSupported); + HIP_CHECK_ERROR(hipMemPoolSetAccess(mempool.mempool(), &desc, 1), hipErrorInvalidValue); desc.location.type = hipMemLocationTypeDevice; } diff --git a/catch/unit/memory/mempool_common.hh b/catch/unit/memory/mempool_common.hh index 9bd95f0511..6e0dcc98bb 100644 --- a/catch/unit/memory/mempool_common.hh +++ b/catch/unit/memory/mempool_common.hh @@ -29,7 +29,6 @@ constexpr hipMemPoolProps kPoolProps = { constexpr auto wait_ms = 500; } // anonymous namespace - template __global__ void kernel_500ms(T* host_res, int clk_rate) { int tid = threadIdx.x + blockIdx.x * blockDim.x; host_res[tid] = tid + 1; @@ -87,7 +86,7 @@ template void MallocMemPoolAsync_OneAlloc(F malloc_func, const MemP HIP_CHECK(malloc_func(reinterpret_cast(&alloc_mem), allocation_size, mempool.mempool(), stream.stream())); - int blocks = 1024; + int blocks = 16; int clk_rate; hipMemPoolAttr attr; if (IsGfx11()) { @@ -154,7 +153,7 @@ void MallocMemPoolAsync_TwoAllocs(F malloc_func, const MemPools mempool_type) { HIP_CHECK(malloc_func(reinterpret_cast(&alloc_mem2), allocation_size, mempool.mempool(), stream.stream())); - int blocks = 1024; + int blocks = 16; int clk_rate; hipMemPoolAttr attr; if (IsGfx11()) {