Skip to content

Commit

Permalink
Added check for command_buffer_multi_device
Browse files Browse the repository at this point in the history
  • Loading branch information
kamil-goras-mobica committed Jun 3, 2024
1 parent 4cccb1c commit 1010816
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ struct CommandBufferCopyBaseTest : BasicCommandBufferTest

bool Skip() override
{
bool command_buffer_multi_device = is_extension_available(
device, "cl_khr_command_buffer_multi_device");
if (check_image_support)
{
cl_bool image_support;
Expand All @@ -56,9 +58,10 @@ struct CommandBufferCopyBaseTest : BasicCommandBufferTest
test_error(error,
"clGetDeviceInfo for CL_DEVICE_IMAGE_SUPPORT failed");

return (!image_support || BasicCommandBufferTest::Skip());
return (!image_support || BasicCommandBufferTest::Skip()
|| command_buffer_multi_device);
}
return BasicCommandBufferTest::Skip();
return BasicCommandBufferTest::Skip() || command_buffer_multi_device;
}

protected:
Expand Down

0 comments on commit 1010816

Please sign in to comment.