Home
last modified time | relevance | path

Searched refs:numDevices (Results 1 – 25 of 48) sorted by relevance

12

/external/OpenCL-CTS/test_conformance/gl/
Dmain.cpp258 size_t numDevices = 0; in main() local
261 error = clGetContextInfo( sCurrentContext, CL_CONTEXT_DEVICES, 0, NULL, &numDevices); in main()
267 deviceIDs = (cl_device_id *)malloc(numDevices); in main()
272 error = clGetContextInfo( sCurrentContext, CL_CONTEXT_DEVICES, numDevices, deviceIDs, NULL); in main()
278 numDevices /= sizeof(cl_device_id); in main()
280 if (numDevices < 1) { in main()
288 for( size_t i = 0; i < numDevices; i++ ) { in main()
324 size_t numDevices = 0; in main() local
327 error = clGetContextInfo( sCurrentContext, CL_CONTEXT_DEVICES, 0, NULL, &numDevices); in main()
332 deviceIDs = (cl_device_id *)malloc(numDevices); in main()
[all …]
/external/OpenCL-CTS/test_conformance/gles/
Dmain.cpp193 size_t numDevices = 0; in main() local
196 error = clGetContextInfo( sCurrentContext, CL_CONTEXT_DEVICES, 0, NULL, &numDevices); in main()
203 numDevices /= sizeof(cl_device_id); in main()
205 if (numDevices < 1) { in main()
221 for( size_t i = 0; i < numDevices; i++ ) { in main()
299 size_t numDevices = 0; in main() local
302 error = clGetContextInfo( sCurrentContext, CL_CONTEXT_DEVICES, 0, NULL, &numDevices); in main()
308 numDevices /= sizeof(cl_device_id); in main()
310 if (numDevices < 1) { in main()
327 for( size_t i = 0; i < numDevices; i++ ) { in main()
/external/tensorflow/tensorflow/lite/nnapi/
Dnnapi_handler.h49 nnapi_->ANeuralNetworks_getDeviceCount = [](uint32_t* numDevices) -> int { in GetDeviceCountReturns()
50 *numDevices = 1; in GetDeviceCountReturns()
57 nnapi_->ANeuralNetworks_getDeviceCount = [](uint32_t* numDevices) -> int { in GetDeviceCountReturnsCount()
58 *numDevices = DeviceCount; in GetDeviceCountReturnsCount()
193 const ANeuralNetworksDevice* const* devices, uint32_t numDevices, in CompilationCreateForDevicesReturns()
202 uint32_t numDevices, ANeuralNetworksCompilation** compilation)) { in StubCompilationCreateForDevicesWith() argument
249 const ANeuralNetworksDevice* const* devices, uint32_t numDevices, in GetSupportedOperationsForDevicesReturns()
256 uint32_t numDevices, bool* supportedOps)) { in StubGetSupportedOperationsForDevicesWith() argument
DNeuralNetworksShim.h725 inline int ANeuralNetworks_getDeviceCount(uint32_t* numDevices) { in ANeuralNetworks_getDeviceCount() argument
727 EXECUTE_FUNCTION_RETURN(numDevices); in ANeuralNetworks_getDeviceCount()
854 const ANeuralNetworksDevice* const* devices, uint32_t numDevices, in ANeuralNetworksModel_getSupportedOperationsForDevices() argument
857 EXECUTE_FUNCTION_RETURN(model, devices, numDevices, supportedOps); in ANeuralNetworksModel_getSupportedOperationsForDevices()
880 uint32_t numDevices, ANeuralNetworksCompilation** compilation) { in ANeuralNetworksCompilation_createForDevices() argument
882 EXECUTE_FUNCTION_RETURN(model, devices, numDevices, compilation); in ANeuralNetworksCompilation_createForDevices()
Dnnapi_implementation.h607 int (*ANeuralNetworks_getDeviceCount)(uint32_t* numDevices);
740 const ANeuralNetworksDevice* const* devices, uint32_t numDevices,
763 uint32_t numDevices, ANeuralNetworksCompilation** compilation);
DNeuralNetworksTypes.h558 typedef int (*ANeuralNetworks_getDeviceCount_fn)(uint32_t* numDevices);
577 const ANeuralNetworksDevice* const* devices, uint32_t numDevices,
582 uint32_t numDevices, ANeuralNetworksCompilation** compilation);
/external/angle/src/libANGLE/
DCLContext.cpp268 cl_program Context::createProgramWithBinary(cl_uint numDevices, in createProgramWithBinary() argument
276 devs.reserve(numDevices); in createProgramWithBinary()
277 while (numDevices-- != 0u) in createProgramWithBinary()
285 cl_program Context::createProgramWithBuiltInKernels(cl_uint numDevices, in createProgramWithBuiltInKernels() argument
291 devs.reserve(numDevices); in createProgramWithBuiltInKernels()
292 while (numDevices-- != 0u) in createProgramWithBuiltInKernels()
299 cl_program Context::linkProgram(cl_uint numDevices, in linkProgram() argument
309 devices.reserve(numDevices); in linkProgram()
310 while (numDevices-- != 0u) in linkProgram()
DCLPlatform.cpp185 cl_uint *numDevices) const in getDeviceIDs()
199 if (numDevices != nullptr) in getDeviceIDs()
201 *numDevices = found; in getDeviceIDs()
214 cl_uint numDevices, in CreateContext() argument
225 devs.reserve(numDevices); in CreateContext()
226 while (numDevices-- != 0u) in CreateContext()
DCLProgram.cpp18 cl_int Program::build(cl_uint numDevices, in build() argument
25 devices.reserve(numDevices); in build()
26 while (numDevices-- != 0u) in build()
41 cl_int Program::compile(cl_uint numDevices, in compile() argument
51 devices.reserve(numDevices); in compile()
52 while (numDevices-- != 0u) in compile()
DCLContext.h88 cl_program createProgramWithBinary(cl_uint numDevices,
95 cl_program createProgramWithBuiltInKernels(cl_uint numDevices,
100 cl_program linkProgram(cl_uint numDevices,
DCLProgram.h28 cl_int build(cl_uint numDevices,
34 cl_int compile(cl_uint numDevices,
DCLPlatform.h41 cl_uint *numDevices) const;
44 cl_uint numDevices,
DCLDevice.cpp330 cl_uint numDevices, in createSubDevices() argument
336 numDevices = 0u; in createSubDevices()
340 mImpl->createSubDevices(properties, numDevices, subDeviceCreateFuncs, numDevicesRet); in createSubDevices()
DCLDevice.h31 cl_uint numDevices,
/external/OpenCL-CTS/test_conformance/multiple_device_context/
Dtest_multiple_devices.cpp188 cl_uint numDevices; in test_two_devices() local
194 err = clGetDeviceIDs(platform, CL_DEVICE_TYPE_ALL, 2, devices, &numDevices ); in test_two_devices()
197 if( numDevices < 2 ) in test_two_devices()
199 …to get two devices via CL_DEVICE_TYPE_ALL (got %d devices). Skipping test...\n", (int)numDevices ); in test_two_devices()
202 else if (numDevices > 2) in test_two_devices()
204 log_info("Note: got %d devices, using just the first two.\n", (int)numDevices); in test_two_devices()
/external/tensorflow/tensorflow/lite/experimental/acceleration/configuration/
Dnnapi_plugin_test.cc67 const ANeuralNetworksDevice* const* devices, uint32_t numDevices, in SetUp()
186 const ANeuralNetworksDevice* const* devices, uint32_t numDevices, in TEST_F()
190 return numDevices - 1; in TEST_F()
202 const ANeuralNetworksDevice* const* devices, uint32_t numDevices, in TEST_F() argument
206 return numDevices - 2; in TEST_F()
/external/tensorflow/tensorflow/lite/delegates/nnapi/
Dnnapi_delegate_device_selection_test.cc101 const ANeuralNetworksDevice* const* devices, uint32_t numDevices, in SetUp()
120 const ANeuralNetworksDevice* const* devices, uint32_t numDevices, in TEST_F() argument
137 const ANeuralNetworksDevice* const* devices, uint32_t numDevices, in TEST_F() argument
139 EXPECT_EQ(numDevices, 1); in TEST_F()
141 if (numDevices != 1 || in TEST_F()
161 const ANeuralNetworksDevice* const* devices, uint32_t numDevices, in TEST_F() argument
163 EXPECT_EQ(numDevices, 2); in TEST_F()
166 if (numDevices != 2 || in TEST_F()
290 const ANeuralNetworksDevice* const* devices, uint32_t numDevices, in TEST_F()
325 const ANeuralNetworksDevice* const* devices, uint32_t numDevices, in TEST_F()
[all …]
/external/angle/src/libANGLE/renderer/cl/
DCLProgramCL.cpp59 const cl_uint numDevices = static_cast<cl_uint>(nativeDevices.size()); in build() local
63 return mNative->getDispatch().clBuildProgram(mNative, numDevices, nativeDevicesPtr, options, in build()
78 const cl_uint numDevices = static_cast<cl_uint>(nativeDevices.size()); in compile() local
92 return mNative->getDispatch().clCompileProgram(mNative, numDevices, nativeDevicesPtr, options, in compile()
DCLDeviceCL.cpp214 cl_uint numDevices, in createSubDevices() argument
218 if (numDevices == 0u) in createSubDevices()
224 std::vector<cl_device_id> nativeSubDevices(numDevices, nullptr); in createSubDevices()
226 mNative, properties, numDevices, nativeSubDevices.data(), nullptr); in createSubDevices()
DCLPlatformCL.cpp323 cl_uint numDevices = 0u; in createDevices() local
325 &numDevices) == CL_SUCCESS) in createDevices()
327 std::vector<cl_device_id> nativeDevices(numDevices, nullptr); in createDevices()
328 if (mNative->getDispatch().clGetDeviceIDs(mNative, CL_DEVICE_TYPE_ALL, numDevices, in createDevices()
DCLDeviceCL.h32 cl_uint numDevices,
/external/deqp/external/vulkancts/framework/vulkan/
DvkQueryUtil.cpp78 deUint32 numDevices = 0; in enumeratePhysicalDevices() local
81 VK_CHECK(vk.enumeratePhysicalDevices(instance, &numDevices, DE_NULL)); in enumeratePhysicalDevices()
83 if (numDevices > 0) in enumeratePhysicalDevices()
85 devices.resize(numDevices); in enumeratePhysicalDevices()
86 VK_CHECK(vk.enumeratePhysicalDevices(instance, &numDevices, &devices[0])); in enumeratePhysicalDevices()
88 if ((size_t)numDevices != devices.size()) in enumeratePhysicalDevices()
/external/angle/src/libANGLE/renderer/vulkan/
DCLDeviceVk.h33 cl_uint numDevices,
DCLDeviceVk.cpp51 cl_uint numDevices, in createSubDevices() argument
/external/OpenCL-CTS/test_common/harness/
DkernelHelpers.cpp466 cl_uint numDevices = 0; in get_first_device_id() local
468 sizeof(cl_uint), &numDevices, NULL); in get_first_device_id()
471 if (numDevices == 0) in get_first_device_id()
477 std::vector<cl_device_id> devices(numDevices, 0); in get_first_device_id()
480 numDevices * sizeof(cl_device_id), &devices[0], NULL); in get_first_device_id()
988 int numDevices, i, j, error; in get_max_allowed_work_group_size() local
1004 numDevices = (int)(outSize / sizeof(cl_device_id)); in get_max_allowed_work_group_size()
1006 for (i = 0; i < numDevices; i++) in get_max_allowed_work_group_size()

12