Migrate subgroups suite to the new test registration framework (#2313)

Contributes to #2181.

Signed-off-by: Ahmed Hesham <ahmed.hesham@arm.com>
This commit is contained in:
Ahmed Hesham
2025-03-09 09:53:47 +00:00
committed by GitHub
parent aed6c3a214
commit 3f7774b089
15 changed files with 25 additions and 160 deletions

View File

@@ -13,7 +13,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//
#include "procs.h"
#include "subhelpers.h"
#include "harness/conversions.h"
#include "harness/typeWrappers.h"
@@ -332,8 +331,7 @@ static test_status checkIFPSupport(cl_device_id device, bool &ifpSupport)
return TEST_PASS;
}
int test_ifp_core(cl_device_id device, cl_context context,
cl_command_queue queue, int num_elements)
REGISTER_TEST_VERSION(ifp_core, Version(2, 1))
{
bool ifpSupport = true;
test_status error;
@@ -351,8 +349,7 @@ int test_ifp_core(cl_device_id device, cl_context context,
return test_ifp(device, context, queue, num_elements, true);
}
int test_ifp_ext(cl_device_id device, cl_context context,
cl_command_queue queue, int num_elements)
REGISTER_TEST_VERSION(ifp_ext, Version(2, 0))
{
bool hasExtension = is_extension_available(device, "cl_khr_subgroups");
bool ifpSupport = true;