SWDEV-390281 - Pass correct vector size. (#221)

Change-Id: I485b6560ff2a2445970a7c6d720a9f8a9fa88164
このコミットが含まれているのは:
ROCm CI Service Account authored and GitHub committed 2023-06-05 12:57:20 -07:00
1 親 eeeca04107
コミット 5a8fabd4e7
1ファイル変更
+2 -2
+2 -2
ファイルの表示
@@ -267,7 +267,7 @@ TEST_CASE("Unit_hipMemRangeGetAttribute_Positive_AccessedBy_MultiDevice") {
LinearAllocGuard<void> allocation(LinearAllocs::hipMallocManaged, kPageSize);
std::vector<int32_t> data(device_count);
HIP_CHECK(hipMemRangeGetAttribute(data.data(), sizeof(data), hipMemRangeAttributeAccessedBy,
HIP_CHECK(hipMemRangeGetAttribute(data.data(), sizeof(int32_t) * data.size(), hipMemRangeAttributeAccessedBy,
allocation.ptr(), kPageSize));
for (auto device : data) {
@@ -278,7 +278,7 @@ TEST_CASE("Unit_hipMemRangeGetAttribute_Positive_AccessedBy_MultiDevice") {
HIP_CHECK(hipMemAdvise(allocation.ptr(), kPageSize, hipMemAdviseSetAccessedBy, device));
}
HIP_CHECK(hipMemRangeGetAttribute(data.data(), sizeof(data), hipMemRangeAttributeAccessedBy,
HIP_CHECK(hipMemRangeGetAttribute(data.data(), sizeof(int32_t) * data.size(), hipMemRangeAttributeAccessedBy,
allocation.ptr(), kPageSize));
// Use std::find since there is no guaranteed order in which devices will be returned