Skip to content

Commit 3677bbf

Browse files
author
iburylov
committed
ensured data returned back to host in test
Signed-off-by: iburylov <[email protected]>
1 parent e3f3bb6 commit 3677bbf

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

sycl/test/basic_tests/accessor/accessor.cpp

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,12 @@ int main() {
526526
});
527527
});
528528

529-
assert(data == 399);
529+
#ifndef simplification_test
530+
auto host_acc = d.get_access<sycl::access::mode::read>();
531+
#else
532+
sycl::host_accessor host_acc(d, sycl::read_only);
533+
#endif
534+
assert(host_acc[0] == 399);
530535
}
531536

532537
} catch (sycl::exception e) {
@@ -569,7 +574,12 @@ int main() {
569574
});
570575
});
571576

572-
assert(data == 399);
577+
#ifndef simplification_test
578+
auto host_acc = d.get_access<sycl::access::mode::read>();
579+
#else
580+
sycl::host_accessor host_acc(d, sycl::read_only);
581+
#endif
582+
assert(host_acc[0] == 399);
573583
}
574584

575585
} catch (sycl::exception e) {

0 commit comments

Comments
 (0)