Skip to content

Commit

Permalink
[SYCL] Added messages to asserts in sub buffer test
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Karachun <ivan.karachun@intel.com>
  • Loading branch information
Ivan Karachun committed Sep 12, 2019
1 parent f79d6eb commit fc99aa0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sycl/test/basic_tests/buffer/subbuffer_interop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ int main() {
{
auto host_acc = subbuf_copy->get_access<cl::sycl::access::mode::read>();
std::cout << "On host: offset = " << host_acc[0] << std::endl;
assert(host_acc[0] == 256);
assert(host_acc[0] == 256 && "Invalid subbuffer origin");
}

Q.submit([&](cl::sycl::handler &cgh) {
Expand All @@ -328,7 +328,7 @@ int main() {
{
auto host_acc = subbuf_copy->get_access<cl::sycl::access::mode::read>();
std::cout << "On host: offset = " << host_acc[0] << std::endl;
assert(host_acc[0] == 256 * 3);
assert(host_acc[0] == 256 * 3 && "Invalid subbuffer origin");
}
}

Expand Down

0 comments on commit fc99aa0

Please sign in to comment.