1 // Copyright (c) 2022 The Khronos Group Inc.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 //
15 #include "procs.h"
16 #include "harness/testHarness.h"
17
18 test_definition test_list[] = {
19 ADD_TEST(single_ndrange), ADD_TEST(interleaved_enqueue),
20 ADD_TEST(mixed_commands), ADD_TEST(explicit_flush),
21 ADD_TEST(user_events), ADD_TEST(out_of_order)
22 };
23
24
main(int argc,const char * argv[])25 int main(int argc, const char *argv[])
26 {
27 // A device may report the required properties of a queue that
28 // is compatible with command-buffers via the query
29 // CL_DEVICE_COMMAND_BUFFER_REQUIRED_QUEUE_PROPERTIES_KHR. We account
30 // for this in the tests themselves, rather than here, where we have a
31 // device to query.
32 const cl_command_queue_properties queue_properties = 0;
33 return runTestHarnessWithCheck(argc, argv, ARRAY_SIZE(test_list), test_list,
34 false, queue_properties, nullptr);
35 }
36