mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-23 23:49:02 +00:00
Migrate extensions suites to the new test registration framework (#2334)
This covers: * cl_ext_cxx_for_opencl * cl_khr_command_buffer * cl_khr_command_buffer/cl_khr_command_buffer_mutable_dispatch * cl_khr_dx9_media_sharing * cl_khr_external_semaphore * cl_khr_kernel_clock * cl_khr_semaphore Contributes to #2181. --------- Signed-off-by: Ahmed Hesham <ahmed.hesham@arm.com>
This commit is contained in:
@@ -12,7 +12,6 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
//
|
||||
#include "procs.h"
|
||||
#include "harness/typeWrappers.h"
|
||||
|
||||
namespace {
|
||||
@@ -173,22 +172,19 @@ int MakeAndRunTest(cl_device_id device, cl_context context,
|
||||
|
||||
}
|
||||
|
||||
int test_device_scope(cl_device_id device, cl_context context,
|
||||
cl_command_queue queue, int num_elements)
|
||||
REGISTER_TEST(device_scope)
|
||||
{
|
||||
return MakeAndRunTest(device, context, queue,
|
||||
CL_DEVICE_KERNEL_CLOCK_SCOPE_DEVICE_KHR);
|
||||
}
|
||||
|
||||
int test_workgroup_scope(cl_device_id device, cl_context context,
|
||||
cl_command_queue queue, int num_elements)
|
||||
REGISTER_TEST(workgroup_scope)
|
||||
{
|
||||
return MakeAndRunTest(device, context, queue,
|
||||
CL_DEVICE_KERNEL_CLOCK_SCOPE_WORK_GROUP_KHR);
|
||||
}
|
||||
|
||||
int test_subgroup_scope(cl_device_id device, cl_context context,
|
||||
cl_command_queue queue, int num_elements)
|
||||
REGISTER_TEST(subgroup_scope)
|
||||
{
|
||||
return MakeAndRunTest(device, context, queue,
|
||||
CL_DEVICE_KERNEL_CLOCK_SCOPE_SUB_GROUP_KHR);
|
||||
|
||||
@@ -12,18 +12,10 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
//
|
||||
#include "procs.h"
|
||||
#include "harness/testHarness.h"
|
||||
|
||||
test_definition test_list[] = {
|
||||
ADD_TEST(device_scope),
|
||||
ADD_TEST(workgroup_scope),
|
||||
ADD_TEST(subgroup_scope),
|
||||
};
|
||||
|
||||
|
||||
int main(int argc, const char *argv[])
|
||||
{
|
||||
return runTestHarness(argc, argv, ARRAY_SIZE(test_list), test_list, false,
|
||||
0);
|
||||
return runTestHarness(argc, argv, test_registry::getInstance().num_tests(),
|
||||
test_registry::getInstance().definitions(), false, 0);
|
||||
}
|
||||
|
||||
@@ -1,27 +0,0 @@
|
||||
// Copyright (c) 2024 The Khronos Group Inc.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
//
|
||||
#ifndef CL_KHR_KERNEL_CLOCK_PROCS_H
|
||||
#define CL_KHR_KERNEL_CLOCK_PROCS_H
|
||||
|
||||
#include <CL/cl.h>
|
||||
|
||||
int test_device_scope(cl_device_id device, cl_context context,
|
||||
cl_command_queue queue, int num_elements);
|
||||
int test_workgroup_scope(cl_device_id device, cl_context context,
|
||||
cl_command_queue queue, int num_elements);
|
||||
int test_subgroup_scope(cl_device_id device, cl_context context,
|
||||
cl_command_queue queue, int num_elements);
|
||||
|
||||
#endif /*CL_KHR_KERNEL_CLOCK_PROCS_H*/
|
||||
Reference in New Issue
Block a user