SWDEV-455869 - hip and hsa runtime cannot detect uninitialized pointer

Change-Id: I93459f5d8b7dd4ed7aecf84703ba9aa796777038


[ROCm/hip-tests commit: 8676d3637a]
이 커밋은 다음에 포함됨:
Anusha GodavarthySurya 작성하고 Anusha Godavarthy Surya가 2024-04-16 11:09:27 -04:00를 커밋함
1 부모 500a08991d
커밋 9139122063
1 파일이 변경됨
-7
-7
파일 보기
@@ -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)") {