From 9139122063d89621f807f0c69d9beacf1c951644 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 [ROCm/hip-tests commit: 8676d3637aec328226f50d03e9b7392ca25933bb] --- .../catch/unit/memory/hipMemPrefetchAsyncExtTsts.cc | 7 ------- 1 file changed, 7 deletions(-) diff --git a/projects/hip-tests/catch/unit/memory/hipMemPrefetchAsyncExtTsts.cc b/projects/hip-tests/catch/unit/memory/hipMemPrefetchAsyncExtTsts.cc index 51ae0be143..e76a17a47f 100644 --- a/projects/hip-tests/catch/unit/memory/hipMemPrefetchAsyncExtTsts.cc +++ b/projects/hip-tests/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)") {