SWDEV-345188 - hip-tests size_t to unsigned long warning (#175)

Change-Id: Id315ba0de6900f714190a09ac09c977830360c72
This commit is contained in:
ROCm CI Service Account
2023-02-28 05:24:39 +05:30
committed by GitHub
parent 798c4e7255
commit 0a8235e5c8
2 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ TEST_CASE("Unit_hipPtrGetAttribute_Simple") {
size_t free, total;
HIP_CHECK(hipMemGetInfo(&free, &total));
printf("hipMemGetInfo: free=%zu (%4.2f) Nbytes=%lu total=%zu (%4.2f)\n", free,
(free / 1024.0 / 1024.0), Nbytes, total,
(free / 1024.0 / 1024.0), static_cast<unsigned long>(Nbytes), total,
(total / 1024.0 / 1024.0));
REQUIRE(free + Nbytes <= total);