Files
rocm-systems/projects/clr/opencl/khronos/icd/test/loader_test/main.c
T
systems-assistant[bot] 64df0940b8 Add 'projects/clr/' from commit 'ed903e888949f3631f133847f834b06b817b63b8'
git-subtree-dir: projects/clr
git-subtree-mainline: 840ad49d28
git-subtree-split: ed903e8889
2025-08-10 02:09:38 +00:00

50 sor
1.1 KiB
C

/* Modifications Copyright(C) 2022 Advanced Micro Devices, Inc.
* All rights reserved.
*/
#include<stdio.h>
#include<CL/cl.h>
#include<platform/icd_test_log.h>
#include "param_struct.h"
extern int test_create_calls();
extern int test_platforms();
extern int test_cl_runtime();
extern int test_kernel();
extern int test_buffer_object();
extern int test_program_objects();
extern int test_image_objects();
extern int test_sampler_objects();
extern int test_OpenGL_share();
extern int test_release_calls();
extern int test_icd_match();
int main(int argc, char **argv)
{
test_icd_initialize_app_log();
test_icd_initialize_stub_log();
test_create_calls();
test_platforms();
test_cl_runtime();
test_kernel();
test_buffer_object();
test_program_objects();
test_image_objects();
test_sampler_objects();
test_OpenGL_share();
test_release_calls();
test_icd_close_app_log();
test_icd_close_stub_log();
if (test_icd_match()) {
printf("ICD Loader Test FAILED\n");
return 1;
} else {
printf("ICD Loader Test PASSED\n");
return 0;
}
}