/external/tensorflow/tensorflow/core/grappler/costs/ |
D | virtual_placer_test.cc | 28 std::unordered_map<string, DeviceProperties> devices; in TEST() local 31 devices["/job:localhost/replica:0/task:0/cpu:0"] = cpu_device; in TEST() 34 devices["/job:localhost/replica:0/task:0/device:GPU:0"] = gpu_device; in TEST() 35 VirtualCluster cluster(devices); in TEST() 36 VirtualPlacer placer(devices); in TEST() 58 std::unordered_map<string, DeviceProperties> devices; in TEST() local 61 devices["/CPU:0"] = cpu_device; in TEST() 64 devices["/GPU:0"] = gpu_device; in TEST() 65 VirtualCluster cluster(devices); in TEST() 66 VirtualPlacer placer(devices); in TEST() [all …]
|
/external/autotest/server/site_tests/bluetooth_AdapterCLHealth/ |
D | bluetooth_AdapterCLHealth.py | 35 @test_wrapper('Discovery Test', devices={"MOUSE":1}) 38 device = self.devices['MOUSE'][0] 44 @test_wrapper('Discoverable Test', devices={"MOUSE":1}) 48 device = self.devices['MOUSE'][0] 57 @test_wrapper('Pairing Test', devices={"MOUSE":1}) 60 device = self.devices['MOUSE'][0] 66 @test_wrapper('keyboard Pairing Test', devices={"KEYBOARD":1}) 69 device = self.devices['KEYBOARD'][0] 75 @test_wrapper('Pairing Suspend Resume Test', devices={"MOUSE": 1}) 78 device = self.devices['MOUSE'][0] [all …]
|
/external/tensorflow/tensorflow/core/common_runtime/gpu/ |
D | gpu_device_test.cc | 119 std::vector<std::unique_ptr<Device>> devices; in TEST_F() local 121 opts, kDeviceNamePrefix, &devices); in TEST_F() 128 std::vector<std::unique_ptr<Device>> devices; in TEST_F() local 130 opts, kDeviceNamePrefix, &devices); in TEST_F() 138 std::vector<std::unique_ptr<Device>> devices; in TEST_F() local 140 opts, kDeviceNamePrefix, &devices); in TEST_F() 148 std::vector<std::unique_ptr<Device>> devices; in TEST_F() local 150 opts, kDeviceNamePrefix, &devices); in TEST_F() 160 std::vector<std::unique_ptr<Device>> devices; in TEST_F() local 162 opts, kDeviceNamePrefix, &devices); in TEST_F() [all …]
|
/external/autotest/server/site_tests/bluetooth_AdapterLEHealth/ |
D | bluetooth_AdapterLEHealth.py | 40 @test_wrapper('Discovery Test', devices={"BLE_MOUSE":1}) 43 device = self.devices['BLE_MOUSE'][0] 52 @test_wrapper('Connect Disconnect Loop', devices={'BLE_MOUSE':1}) 61 device = self.devices['BLE_MOUSE'][0] 64 @test_wrapper('Mouse Reports', devices={'BLE_MOUSE':1}) 68 device = self.devices['BLE_MOUSE'][0] 81 @test_wrapper('Keyboard Reports', devices={'BLE_KEYBOARD':1}) 85 device = self.devices['BLE_KEYBOARD'][0] 98 @test_wrapper('Battery Reporting', devices={'BLE_MOUSE': 1}) 102 device = self.devices['BLE_MOUSE'][0] [all …]
|
/external/mtools/ |
D | config.c | 52 struct device *devices; /* the device table */ variable 243 drive = devices[cur_dev].drive; in syntax() 412 if(devices[i].drive != drive || in purge() 413 devices[i].file_nr == fn) in purge() 414 devices[j++] = devices[i]; in purge() 423 if(!(devices=Grow(devices, nr_dev, struct device))){ in grow() 433 memset((char *)&devices[cur_dev], 0, sizeof(struct device)); in init_drive() 434 devices[cur_dev].ssize = 2; in init_drive() 444 devices[i] = devices[i-1]; in prepend() 467 if(!devices[cur_dev].name) in finish_drive_clause() [all …]
|
/external/chromium-trace/catapult/third_party/pyserial/serial/tools/ |
D | list_ports_posix.py | 34 devices = glob.glob('/dev/com*') 35 return [(d, d, d) for d in devices] 39 devices = glob.glob('/dev/cua*') 40 return [(d, d, d) for d in devices] 46 devices = glob.glob('/dev/cuad*') 47 return [(d, d, d) for d in devices] 55 devices = glob.glob('/dev/dty*') 56 return [(d, d, d) for d in devices] 61 devices = glob.glob('/dev/ttyf*') 62 return [(d, d, d) for d in devices] [all …]
|
/external/tensorflow/tensorflow/python/distribute/v1/ |
D | cross_device_ops_test.py | 53 def _get_devices(devices): argument 54 if isinstance(devices, (tuple, list)): 55 return tuple(device_util.resolve(d) for d in devices) 56 elif isinstance(devices, value_lib.DistributedValues): 57 return devices._devices 58 elif isinstance(devices, ops.Tensor): 59 return (device_util.resolve(devices.device),) 60 return (device_util.resolve(devices),) 63 def _make_per_replica(values, devices, regroup=False): argument 64 devices = _get_devices(devices) [all …]
|
/external/autotest/server/site_tests/bluetooth_AdapterSRHealth/ |
D | bluetooth_AdapterSRHealth.py | 145 @test_wrapper('Reconnect Classic HID', devices={'MOUSE': 1}) 149 device = self.devices[device_type][0] 153 @test_wrapper('Reconnect LE HID', devices={'BLE_MOUSE': 1}) 157 device = self.devices[device_type][0] 163 devices={ 170 devices = [('MOUSE', self.devices['MOUSE'][0], 172 ('KEYBOARD', self.devices['KEYBOARD'][0], 174 self.run_reconnect_device(devices) 177 devices={ 183 devices = [('BLE_MOUSE', self.devices['BLE_MOUSE'][0], [all …]
|
/external/autotest/server/site_tests/bluetooth_AdapterAUHealth/ |
D | bluetooth_AdapterAUHealth.py | 53 device = self.devices['BLUETOOTH_AUDIO'][0] 60 @test_wrapper('A2DP sinewave test', devices={'BLUETOOTH_AUDIO':1}) 66 @test_wrapper('A2DP sinewave long test', devices={'BLUETOOTH_AUDIO':1}, 129 devices={'BLUETOOTH_AUDIO':1}) 132 device = self.devices['BLUETOOTH_AUDIO'][0] 139 devices={'BLUETOOTH_AUDIO':1}) 142 device = self.devices['BLUETOOTH_AUDIO'][0] 147 devices={'BLUETOOTH_AUDIO':1}) 150 device = self.devices['BLUETOOTH_AUDIO'][0] 155 devices={'BLUETOOTH_AUDIO':1}) [all …]
|
/external/autotest/server/site_tests/bluetooth_AdapterMDHealth/ |
D | bluetooth_AdapterMDHealth.py | 67 devices={'BLE_MOUSE':1, 'KEYBOARD':1}) 72 devices = [ 73 (self.devices['BLE_MOUSE'][0], self.test_mouse_left_click), 74 (self.devices['KEYBOARD'][0], self.run_keyboard_tests) 77 self.pair_and_test_connection(devices) 81 devices={'BLE_MOUSE':1, 'BLE_KEYBOARD':1}) 86 devices = [ 87 (self.devices['BLE_MOUSE'][0], self.test_mouse_left_click), 88 (self.devices['BLE_KEYBOARD'][0], self.run_keyboard_tests) 91 self.pair_and_test_connection(devices) [all …]
|
/external/tensorflow/tensorflow/core/framework/ |
D | device_factory.cc | 93 Status DeviceFactory::ListAllPhysicalDevices(std::vector<string>* devices) { in ListAllPhysicalDevices() argument 101 size_t init_size = devices->size(); in ListAllPhysicalDevices() 102 TF_RETURN_IF_ERROR(cpu_factory->ListPhysicalDevices(devices)); in ListAllPhysicalDevices() 103 if (devices->size() == init_size) { in ListAllPhysicalDevices() 112 TF_RETURN_IF_ERROR(factory->ListPhysicalDevices(devices)); in ListAllPhysicalDevices() 134 std::vector<string> devices; in GetAnyDeviceDetails() local 135 TF_RETURN_IF_ERROR(cpu_factory->ListPhysicalDevices(&devices)); in GetAnyDeviceDetails() 136 if (device_index < devices.size()) { in GetAnyDeviceDetails() 139 device_index -= devices.size(); in GetAnyDeviceDetails() 146 devices.clear(); in GetAnyDeviceDetails() [all …]
|
/external/openssh/ |
D | auth2-chall.c | 64 KbdintDevice *devices[] = { variable 78 char *devices; member 91 for (i = 0; devices[i] != NULL; i++) in remove_kbdint_device() 92 if (strcmp(devices[i]->name, devname) == 0) { in remove_kbdint_device() 93 for (j = i; devices[j] != NULL; j++) in remove_kbdint_device() 94 devices[j] = devices[j+1]; in remove_kbdint_device() 116 for (i = 0; devices[i]; i++) { in kbdint_alloc() 118 sshbuf_len(b) ? "," : "", devices[i]->name)) != 0) in kbdint_alloc() 122 if ((kbdintctxt->devices = sshbuf_dup_string(b)) == NULL) in kbdint_alloc() 126 kbdintctxt->devices = xstrdup(devs); in kbdint_alloc() [all …]
|
/external/tensorflow/tensorflow/python/distribute/ |
D | mirrored_strategy.py | 53 def _is_device_list_single_worker(devices): argument 68 for d in devices: 89 devices = [] 93 devices.append("/job:%s/task:%d/device:CPU:0" % (task_type, task_id)) 95 devices.extend([ 99 return devices 102 def _group_device_list(devices): argument 112 assert not _is_device_list_single_worker(devices) 115 for d in devices: 135 def _infer_num_gpus_per_worker(devices): argument [all …]
|
/external/tensorflow/tensorflow/python/ops/ |
D | nccl_ops_test.py | 33 def _DeviceTensors(tensors, devices): argument 35 for t, d in zip(tensors, devices): 41 def _NcclAllReduce(nccl_fun, tensors, devices): argument 42 return nccl_fun(_DeviceTensors(tensors, devices)) 45 def _NcclReduce(nccl_fun, tensors, devices): argument 46 receiver = np.random.randint(0, len(devices)) 47 with ops.device(devices[receiver]): 48 return [nccl_fun(_DeviceTensors(tensors, devices))] 51 def _NcclBroadcast(tensors, devices): argument 52 sender = np.random.randint(0, len(devices)) [all …]
|
/external/ltp/testcases/kernel/hotplug/cpu_hotplug/include/ |
D | cpuhotplug_hotplug.sh | 72 if [ ! -w /sys/devices/system/cpu/cpu${CPU}/online ]; then 78 $TIME echo 1 > /sys/devices/system/cpu/cpu${CPU}/online 93 if [ ! -w /sys/devices/system/cpu/cpu${CPU}/online ]; then 99 $TIME echo 0 > /sys/devices/system/cpu/cpu${CPU}/online 112 [ -d /sys/devices/system/cpu/cpu0 ] || return -1 113 NUM=`ls /sys/devices/system/cpu/ \ 128 [ -d /sys/devices/system/cpu ] || return 1 129 (cd /sys/devices/system/cpu; ls -d cpu[0-9]*) 157 if [ -e /sys/devices/system/cpu/cpu$cpu ]; then 185 if [ -e /sys/devices/system/cpu/$cpu/online ]; then [all …]
|
/external/angle/src/libANGLE/ |
D | CLProgram.cpp | 24 DevicePtrs devices; in build() local 25 devices.reserve(numDevices); in build() 28 devices.emplace_back(&(*deviceList++)->cast<Device>()); in build() 38 return mImpl->build(devices, options, notify); in build() 50 DevicePtrs devices; in compile() local 51 devices.reserve(numDevices); in compile() 54 devices.emplace_back(&(*deviceList++)->cast<Device>()); in compile() 70 return mImpl->compile(devices, options, programs, headerIncludeNames, notify); in compile() 75 std::vector<cl_device_id> devices; in getInfo() local 99 devices.reserve(mDevices.size()); in getInfo() [all …]
|
/external/tensorflow/tensorflow/core/common_runtime/ |
D | dynamic_device_mgr_test.cc | 87 std::vector<std::unique_ptr<Device>> devices; in TEST() local 88 devices.emplace_back(std::move(d0)); in TEST() 89 devices.emplace_back(std::move(d1)); in TEST() 90 TF_CHECK_OK(dm->AddDevices(std::move(devices))); in TEST() 136 std::vector<std::unique_ptr<Device>> devices; in TEST() local 137 devices.emplace_back(std::move(d0)); in TEST() 138 devices.emplace_back(std::move(d1)); in TEST() 139 TF_CHECK_OK(dm->AddDevices(std::move(devices))); in TEST() 152 std::vector<std::unique_ptr<Device>> devices; in TEST() local 153 devices.emplace_back(std::move(d0)); in TEST() [all …]
|
D | placer.cc | 136 const DeviceSet* devices, const Device* default_local_device, in Placer() argument 141 devices_(devices), in Placer() 147 const DeviceSet* devices, const Device* default_local_device) in Placer() argument 148 : Placer(graph, function_name, &graph->flib_def(), devices, in Placer() 152 const DeviceSet* devices) in Placer() argument 153 : Placer(graph, function_name, &graph->flib_def(), devices, nullptr, true, in Placer() 159 if (devices_->devices().empty()) { in Run() 205 const std::vector<Device*>* devices; in Run() local 206 Status status = colocation_graph.GetDevicesForNode(node, &devices); in Run() 236 if (CanAssignToDevice(input->assigned_device_name(), *devices)) { in Run() [all …]
|
/external/deqp/scripts/android/ |
D | install_apk.py | 59 devices = [] 69 devices.append(Device(m.group(1), m.group(2), m.group(3), m.group(4))) 71 return devices 145 def installToDevices (devices, doParallel, adbPath, packageName, apkPath): argument 146 padLen = max([len(device.model) for device in devices])+1 148 …apkPath, ("(%s):%s" % (device.model, ' ' * (padLen - len(device.model))))) for device in devices]); 150 serialApply(installToDevice, [(device, adbPath, packageName, apkPath) for device in devices]); 153 devices = getDevices(adbPath) 154 installToDevices(devices, doParallel, adbPath, packageName, apkPath) 227 devices = getDevices(args.adbPath) variable [all …]
|
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/utils/ |
D | device_util.cc | 67 mlir::TF::RuntimeDevices* devices) { in GetDevicesFromOp() argument 79 devices->AddDevice(device); in GetDevicesFromOp() 93 mlir::TF::RuntimeDevices* devices) { in GetDevicesFromOp() argument 107 devices->AddGpuDevice(device, gpu_metadata); in GetDevicesFromOp() 109 devices->AddDevice(device); in GetDevicesFromOp() 125 llvm::SmallVector<mlir::NamedAttribute, 8> devices; in AddDevicesToOp() local 126 devices.reserve(device_set->devices().size()); in AddDevicesToOp() 130 for (Device* device : device_set->devices()) { in AddDevicesToOp() 135 devices.push_back(builder.getNamedAttr(name, metadata)); in AddDevicesToOp() 138 devices.push_back(builder.getNamedAttr(name, metadata)); in AddDevicesToOp() [all …]
|
D | device_util_test.cc | 70 llvm::SmallVector<std::unique_ptr<Device>, 2> devices; in TEST() local 71 devices.push_back(FakeDevice::Make(cpu0)); in TEST() 72 devices.push_back(FakeDevice::Make(gpu0, "compute capability: 7.0")); in TEST() 73 devices.push_back(FakeDevice::Make(gpu1)); in TEST() 76 for (auto& device : devices) device_set.AddDevice(device.get()); in TEST() 116 mlir::TF::RuntimeDevices devices; in TEST() local 117 EXPECT_TRUE(mlir::succeeded(GetDevicesFromOp(*module_ref, &devices))); in TEST() 127 mlir::TF::RuntimeDevices devices; in TEST() local 128 EXPECT_TRUE(mlir::failed(GetDevicesFromOp(*module_ref, &devices))); in TEST() 138 mlir::TF::RuntimeDevices devices; in TEST() local [all …]
|
/external/OpenCL-CTS/test_common/gl/ |
D | setup_win32.cpp | 80 cl_device_id devices[MAX_DEVICES]; in CreateCLContext() local 125 sizeof(devices), in CreateCLContext() 126 devices, in CreateCLContext() 137 sizeof(devices), in CreateCLContext() 138 devices, in CreateCLContext() 147 log_info("GL context current device: 0x%x\n", devices[0]); in CreateCLContext() 149 if (m_devices[i] == devices[0]) { in CreateCLContext() 150 ctxDevice = devices[0]; in CreateCLContext() 163 cl_device_id devices[MAX_DEVICES]; in SupportsCLGLInterop() local 171 error = clGetDeviceIDs(m_platform, device_type, MAX_DEVICES, devices, &num_of_devices); in SupportsCLGLInterop() [all …]
|
/external/tensorflow/tensorflow/python/client/ |
D | device_lib_test.py | 31 devices = device_lib.list_local_devices() 32 self.assertGreater(len(devices), 0) 33 self.assertEqual(devices[0].device_type, "CPU") 35 devices = device_lib.list_local_devices(config_pb2.ConfigProto()) 36 self.assertGreater(len(devices), 0) 37 self.assertEqual(devices[0].device_type, "CPU") 41 self.assertGreater(len(devices), 1) 42 self.assertIn("GPU", [d.device_type for d in devices])
|
D | session_list_devices_test.py | 37 devices = sess.list_devices() 39 [d.name for d in devices]), devices) 41 self.assertTrue(all(d.incarnation != 0 for d in devices)) 56 devices = sess.list_devices() 59 [d.name for d in devices]), devices) 61 self.assertTrue(all(d.incarnation != 0 for d in devices)) 74 devices = sess.list_devices() 75 device_names = set(d.name for d in devices) 81 self.assertTrue(all(d.incarnation != 0 for d in devices))
|
/external/libdrm/tests/ |
D | drmdevice.c | 110 drmDevicePtr *devices; in main() local 125 devices = calloc(max_devices, sizeof(drmDevicePtr)); in main() 126 if (devices == NULL) { in main() 132 ret = drmGetDevices2(0, devices, max_devices); in main() 135 free(devices); in main() 140 print_device_info(devices[i], i, false); in main() 143 if (devices[i]->available_nodes & 1 << j) { in main() 144 printf("--- Opening device node %s ---\n", devices[i]->nodes[j]); in main() 145 fd = open(devices[i]->nodes[j], O_RDONLY | O_CLOEXEC, 0); in main() 151 printf("--- Retrieving device info, for node %s ---\n", devices[i]->nodes[j]); in main() [all …]
|