Skip to content

Commit 18444c0

Browse files
committed
[SYCL] Fix host data allocation in USM test
Signed-off-by: Alexey Bader <[email protected]>
1 parent 07df60f commit 18444c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/test/usm/allocator_vector.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ int main() {
2626
usm_allocator<int, usm::alloc::host> alloc(ctxt, dev);
2727

2828
std::vector<int, decltype(alloc)> vec(alloc);
29-
vec.reserve(N);
29+
vec.resize(N);
3030

3131
for (int i = 0; i < N; i++) {
3232
vec[i] = i;

0 commit comments

Comments
 (0)