From 8676d3637aec328226f50d03e9b7392ca25933bb Mon Sep 17 00:00:00 2001 From: Anusha GodavarthySurya Date: Wed, 10 Apr 2024 11:49:35 +0000 Subject: [PATCH] SWDEV-455869 - hip and hsa runtime cannot detect uninitialized pointer Change-Id: I93459f5d8b7dd4ed7aecf84703ba9aa796777038 --- catch/unit/memory/hipMemPrefetchAsyncExtTsts.cc | 7 ------- 1 file changed, 7 deletions(-) diff --git a/catch/unit/memory/hipMemPrefetchAsyncExtTsts.cc b/catch/unit/memory/hipMemPrefetchAsyncExtTsts.cc index 51ae0be143..e76a17a47f 100644 --- a/catch/unit/memory/hipMemPrefetchAsyncExtTsts.cc +++ b/catch/unit/memory/hipMemPrefetchAsyncExtTsts.cc @@ -233,18 +233,11 @@ TEST_CASE("Unit_hipMemPrefetchAsyncNegativeTst") { hipStream_t strm; HIP_CHECK(hipStreamCreate(&strm)); SECTION("Passing null for dev ptr") { - int *Ptr; err = hipMemPrefetchAsync(NULL, MemSz, 0, strm); if (err == hipSuccess) { WARN("hipMemPrefetchAsync() gives hipSuccess when NULL is passed!!"); IfTestPassed = false; } - err = hipMemPrefetchAsync(Ptr, MemSz, 0, strm); - if (err == hipSuccess) { - WARN("hipMemPrefetchAsync() gives hipSuccess when uninitialized" - " pointer is passed!!"); - IfTestPassed = false; - } } SECTION("Passing unusual count size(2nd param)") {