Home
last modified time | relevance | path

Searched refs:num_platforms (Results 1 – 25 of 26) sorted by relevance

12

/external/OpenCL-CTS/test_conformance/vulkan/
Dtest_vulkan_platform_device_info.cpp54 cl_uint num_platforms; in test_platform_info() local
63 errNum = clGetPlatformIDs(0, NULL, &num_platforms); in test_platform_info()
67 (cl_platform_id *)malloc(num_platforms * sizeof(cl_platform_id)); in test_platform_info()
73 log_info("%d platforms available\n", num_platforms); in test_platform_info()
74 errNum = clGetPlatformIDs(num_platforms, platforms, NULL); in test_platform_info()
77 for (i = 0; i < num_platforms; i++) in test_platform_info()
/external/OpenCL-CTS/test_conformance/api/
Dtest_platform.cpp154 cl_uint num_platforms; in test_get_platform_ids() local
163 err = clGetPlatformIDs(16, platforms, &num_platforms); in test_get_platform_ids()
166 if (num_platforms <= 16) { in test_get_platform_ids()
168 err = clGetPlatformIDs(num_platforms, platforms, NULL); in test_get_platform_ids()
172 if (num_platforms < 1) { in test_get_platform_ids()
176 log_info("Found %d platforms.\n", num_platforms); in test_get_platform_ids()
179 for (int p=0; p<(int)num_platforms; p++) { in test_get_platform_ids()
/external/mesa3d/src/gallium/frontends/clover/api/
Dcontext.cpp68 cl_uint num_platforms; in clCreateContextFromType() local
73 ret = clGetPlatformIDs(1, &d_platform, &num_platforms); in clCreateContextFromType()
74 if (ret || !num_platforms) in clCreateContextFromType()
/external/tensorflow/tensorflow/lite/delegates/gpu/cl/
Dcl_device.cc370 cl_uint num_platforms; in CreateDefaultGPUDevice() local
371 cl_int status = clGetPlatformIDs(0, nullptr, &num_platforms); in CreateDefaultGPUDevice()
376 if (num_platforms == 0) { in CreateDefaultGPUDevice()
379 std::vector<cl_platform_id> platforms(num_platforms); in CreateDefaultGPUDevice()
380 status = clGetPlatformIDs(num_platforms, platforms.data(), nullptr); in CreateDefaultGPUDevice()
/external/OpenCL-CTS/test_common/harness/
DtestHarness.cpp158 cl_uint num_platforms = 0; in runTestHarnessWithCheck() local
398 err = clGetPlatformIDs(0, NULL, &num_platforms); in runTestHarnessWithCheck()
406 (cl_platform_id *)malloc(num_platforms * sizeof(cl_platform_id)); in runTestHarnessWithCheck()
407 if (!platforms || choosen_platform_index >= num_platforms) in runTestHarnessWithCheck()
411 choosen_platform_index, num_platforms); in runTestHarnessWithCheck()
416 err = clGetPlatformIDs(num_platforms, platforms, NULL); in runTestHarnessWithCheck()
/external/mesa3d/include/CL/
Dcl_ext.h103 cl_uint * num_platforms);
108 cl_uint * num_platforms);
Dcl.h947 cl_uint * num_platforms) CL_API_SUFFIX__VERSION_1_0;
/external/OpenCL-CTS/test_conformance/spir/
Dmain.cpp6683 cl_uint num_platforms = 0; in get_platform_device() local
6689 error = clGetPlatformIDs(0, NULL, &num_platforms); in get_platform_device()
6694 if ( choosen_platform_index >= num_platforms ) in get_platform_device()
6699 platforms = (cl_platform_id *) malloc( num_platforms * sizeof( cl_platform_id ) ); in get_platform_device()
6706 error = clGetPlatformIDs(num_platforms, platforms, NULL); in get_platform_device()
/external/angle/src/libGLESv2/
Dcl_stubs.cpp38 cl_int IcdGetPlatformIDsKHR(cl_uint num_entries, cl_platform_id *platforms, cl_uint *num_platforms) in IcdGetPlatformIDsKHR() argument
40 return Platform::GetPlatformIDs(num_entries, platforms, num_platforms); in IcdGetPlatformIDsKHR()
43 cl_int GetPlatformIDs(cl_uint num_entries, cl_platform_id *platforms, cl_uint *num_platforms) in GetPlatformIDs() argument
45 return Platform::GetPlatformIDs(num_entries, platforms, num_platforms); in GetPlatformIDs()
Dentry_points_cl_autogen.cpp23 cl_uint *num_platforms) in clGetPlatformIDs() argument
29 num_entries, (uintptr_t)platforms, (uintptr_t)num_platforms); in clGetPlatformIDs()
31 ANGLE_CL_VALIDATE_ERROR(GetPlatformIDs, num_entries, platforms, num_platforms); in clGetPlatformIDs()
33 return GetPlatformIDs(num_entries, platforms, num_platforms); in clGetPlatformIDs()
2410 cl_uint *num_platforms) in clIcdGetPlatformIDsKHR() argument
2416 num_entries, (uintptr_t)platforms, (uintptr_t)num_platforms); in clIcdGetPlatformIDsKHR()
2418 ANGLE_CL_VALIDATE_ERROR(IcdGetPlatformIDsKHR, num_entries, platforms, num_platforms); in clIcdGetPlatformIDsKHR()
2420 return IcdGetPlatformIDsKHR(num_entries, platforms, num_platforms); in clIcdGetPlatformIDsKHR()
Dcl_stubs_autogen.h17 cl_int IcdGetPlatformIDsKHR(cl_uint num_entries, cl_platform_id *platforms, cl_uint *num_platforms);
18 cl_int GetPlatformIDs(cl_uint num_entries, cl_platform_id *platforms, cl_uint *num_platforms);
Dentry_points_cl_autogen.h22 cl_uint *num_platforms);
615 cl_uint *num_platforms);
/external/angle/src/libOpenCL/
DlibOpenCL_autogen.cpp17 cl_uint *num_platforms) in clGetPlatformIDs() argument
19 return cl::GetDispatch().clGetPlatformIDs(num_entries, platforms, num_platforms); in clGetPlatformIDs()
1156 cl_uint *num_platforms) in clIcdGetPlatformIDsKHR() argument
1158 return cl::GetDispatch().clIcdGetPlatformIDsKHR(num_entries, platforms, num_platforms); in clIcdGetPlatformIDsKHR()
/external/angle/src/libANGLE/
DvalidationCL_autogen.h22 const cl_uint *num_platforms);
582 const cl_uint *num_platforms);
DvalidationCL.cpp500 const cl_uint *num_platforms) in ValidateGetPlatformIDs() argument
505 (platforms == nullptr && num_platforms == nullptr)) in ValidateGetPlatformIDs()
3637 const cl_uint *num_platforms) in ValidateIcdGetPlatformIDsKHR() argument
3640 (platforms == nullptr && num_platforms == nullptr)) in ValidateIcdGetPlatformIDsKHR()
/external/ComputeLibrary/include/CL/
Dcl_ext.h103 cl_uint * num_platforms);
108 cl_uint * num_platforms);
Dcl.h949 cl_uint * num_platforms) CL_API_SUFFIX__VERSION_1_0;
Dcl_icd.h46 cl_uint *num_platforms) CL_API_SUFFIX__VERSION_1_0;
/external/angle/include/CL/
Dcl_ext.h103 cl_uint * num_platforms);
108 cl_uint * num_platforms);
Dcl.h949 cl_uint * num_platforms) CL_API_SUFFIX__VERSION_1_0;
Dcl_icd.h46 cl_uint *num_platforms) CL_API_SUFFIX__VERSION_1_0;
/external/ComputeLibrary/src/core/CL/
DOpenCL.cpp939 cl_int clGetPlatformIDs(cl_uint num_entries, cl_platform_id *platforms, cl_uint *num_platforms) in clGetPlatformIDs() argument
945 return func(num_entries, platforms, num_platforms); in clGetPlatformIDs()
/external/ImageMagick/MagickCore/
Dopencl-private.h68 cl_platform_id *platforms,cl_uint *num_platforms) CL_API_SUFFIX__VERSION_1_0;
/external/OpenCL-CTS/dependencies/ocl-headers/CL/
Dcl_ext.h591 cl_uint * num_platforms);
596 cl_uint * num_platforms);
Dcl.h956 cl_uint * num_platforms) CL_API_SUFFIX__VERSION_1_0;

12