SWDEV-455869 - hip and hsa runtime cannot detect uninitialized pointer
Change-Id: I93459f5d8b7dd4ed7aecf84703ba9aa796777038
[ROCm/hip-tests commit: 8676d3637a]
이 커밋은 다음에 포함됨:
1 부모
500a08991d
커밋
9139122063
1 파일이 변경됨
-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)") {
|
||||
|
||||
새 이슈에서 참조
사용자 차단