Home
last modified time | relevance | path

Searched refs:dev_list (Results 1 – 25 of 56) sorted by relevance

123

/third_party/mindspore/tests/ut/cpp/parallel/
Ddevice_matrix_test.cc34 RankList dev_list = {0, 1, 2, 3, 4, 5}; in TEST_F() local
37 DeviceMatrix arr(0, dev_list, shape); in TEST_F()
45 RankList dev_list = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}; in TEST_F() local
48 DeviceMatrix arr(5, dev_list, shape); in TEST_F()
56 RankList dev_list = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15}; in TEST_F() local
59 DeviceMatrix arr(5, dev_list, shape); in TEST_F()
67 RankList dev_list; in TEST_F() local
68 for (int i = 0; i < 144; i++) dev_list.push_back(i); in TEST_F()
71 DeviceMatrix arr(5, dev_list, shape); in TEST_F()
80 RankList dev_list = {0, 1, 2, 3, 4, 5, 6, 7, 8}; in TEST_F() local
[all …]
Ddevice_manager_test.cc72 RankList dev_list; in TEST_F() local
76 dev_list.push_back(5); in TEST_F()
77 dev_list.push_back(3); in TEST_F()
78 dev_list.push_back(1); in TEST_F()
79 dev_list.push_back(0); in TEST_F()
83 ASSERT_EQ(dm_.Init(dev_list, local_dev, stage_map, "hccl"), Status::SUCCESS); in TEST_F()
109 std::vector<Device> dev_list; in TEST_F() local
113 dev_list = dm_.CreateDeviceListByRankList(rlist); in TEST_F()
115 std::vector<Device>::iterator it = dev_list.begin(); in TEST_F()
122 RankList dev_list; in TEST_F() local
[all …]
Dgroup_manager_test.cc45 std::vector<Device> dev_list; in Init() local
47 dev_list.push_back(one); in Init()
49 dev_list.push_back(two); in Init()
51 return gp.Init(gname, dev_list); in Init()
91 std::vector<Device> dev_list; in Init() local
93 dev_list.push_back(one); in Init()
95 dev_list.push_back(two); in Init()
97 return gm.CreateGroup(gname, dev_list, *gp_ptr); in Init()
Dvirtual_dataset_test.cc40 RankList dev_list; in SetUp() local
43 dev_list.push_back(i); in SetUp()
54 g_device_manager->Init(dev_list, local_dev, stage_map, "hccl"); in SetUp()
/third_party/ffmpeg/libavdevice/
Dpulse_audio_common.c203 PulseAudioDeviceList dev_list = { 0 }; in ff_pulse_audio_get_devices() local
206 dev_list.output = output; in ff_pulse_audio_get_devices()
207 dev_list.devices = devices; in ff_pulse_audio_get_devices()
213 …if ((dev_list.error_code = ff_pulse_audio_connect_context(&pa_ml, &pa_ctx, server, "Query devices"… in ff_pulse_audio_get_devices()
217 pa_op = pa_context_get_sink_info_list(pa_ctx, pulse_audio_sink_device_cb, &dev_list); in ff_pulse_audio_get_devices()
219 pa_op = pa_context_get_source_info_list(pa_ctx, pulse_audio_source_device_cb, &dev_list); in ff_pulse_audio_get_devices()
223 dev_list.error_code = AVERROR_EXTERNAL; in ff_pulse_audio_get_devices()
225 if (dev_list.error_code < 0) in ff_pulse_audio_get_devices()
228 pa_op = pa_context_get_server_info(pa_ctx, pulse_server_info_cb, &dev_list); in ff_pulse_audio_get_devices()
232 dev_list.error_code = AVERROR_EXTERNAL; in ff_pulse_audio_get_devices()
[all …]
/third_party/mindspore/tests/ut/cpp/parallel/auto_parallel/
Doperator_costmodel_test.cc36 RankList dev_list; in SetUp() local
39 dev_list.push_back(i); in SetUp()
50 g_device_manager->Init(dev_list, local_dev, stage_map, "hccl"); in SetUp()
93 RankList dev_list; in SetUp() local
96 dev_list.push_back(i); in SetUp()
107 g_device_manager->Init(dev_list, local_dev, stage_map, "hccl"); in SetUp()
145 RankList dev_list; in SetUp() local
148 dev_list.push_back(i); in SetUp()
159 g_device_manager->Init(dev_list, local_dev, stage_map, "hccl"); in SetUp()
/third_party/mesa3d/src/egl/main/
Degldevice.c58 _EGLDevice *dev_list, *dev; in _eglFiniDevice() local
62 dev_list = _eglGlobal.DeviceList; in _eglFiniDevice()
65 assert(dev_list); in _eglFiniDevice()
66 assert(_eglDeviceSupports(dev_list, _EGL_DEVICE_SOFTWARE)); in _eglFiniDevice()
67 dev_list = dev_list->Next; in _eglFiniDevice()
69 while (dev_list) { in _eglFiniDevice()
71 dev = dev_list; in _eglFiniDevice()
72 dev_list = dev_list->Next; in _eglFiniDevice()
/third_party/alsa-lib/src/ucm/
Dutils.c150 list_for_each_safe(pos, npos, &ctl_list->dev_list) { in uc_mgr_free_ctl()
178 list_for_each(pos, &ctl_list->dev_list) { in uc_mgr_ctl_add_dev()
193 list_add_tail(&ctl_dev->list, &ctl_list->dev_list); in uc_mgr_ctl_add_dev()
215 INIT_LIST_HEAD(&cl->dev_list); in uc_mgr_ctl_add()
281 list_for_each(pos2, &ctl_list->dev_list) { in uc_mgr_open_ctl()
417 void uc_mgr_free_dev_list(struct dev_list *dev_list) in uc_mgr_free_dev_list() argument
422 list_for_each_safe(pos, npos, &dev_list->list) { in uc_mgr_free_dev_list()
430 int uc_mgr_put_to_dev_list(struct dev_list *dev_list, const char *name) in uc_mgr_put_to_dev_list() argument
436 list_for_each(pos, &dev_list->list) { in uc_mgr_put_to_dev_list()
451 list_add(&dlist->list, &dev_list->list); in uc_mgr_put_to_dev_list()
[all …]
Ducm_local.h110 struct dev_list { struct
122 struct list_head dev_list; argument
154 struct dev_list dev_list; member
179 struct dev_list dev_list; member
296 int uc_mgr_put_to_dev_list(struct dev_list *dev_list, const char *name);
/third_party/mindspore/tests/ut/cpp/parallel/tensor_layout/
Dredistribution_operator_infer_test.cc31 RankList dev_list; in SetUp() local
34 dev_list.push_back(i); in SetUp()
45 g_device_manager->Init(dev_list, local_dev, stage_map, "hccl"); in SetUp()
77 RankList dev_list; in InferOperatorCheckAll() local
78 for (int32_t i = 0; i < static_cast<int32_t>(pow(2, dim_len)); i++) dev_list.push_back(i); in InferOperatorCheckAll()
93 if (operatorInfer.Init(layout, out_tensor_map, dev_list) == Status::FAILED) { in InferOperatorCheckAll()
Dtensor_redistribution_test.cc31 RankList dev_list; in SetUp() local
34 dev_list.push_back(i); in SetUp()
45 g_device_manager->Init(dev_list, local_dev, stage_map, "hccl"); in SetUp()
87 RankList dev_list = g_device_manager->GetDeviceListByStageId(0); in TEST_F() local
88 tensor_redistribution.Init(from_layout, to_layout, dev_list); in TEST_F()
140 RankList dev_list = g_device_manager->GetDeviceListByStageId(0); in TEST_F() local
141 tensor_redistribution.Init(from_layout, to_layout, dev_list); in TEST_F()
193 RankList dev_list = g_device_manager->GetDeviceListByStageId(0); in TEST_F() local
194 tensor_redistribution.Init(from_layout, to_layout, dev_list); in TEST_F()
Dconstruct_operator_test.cc42 RankList dev_list; in SetUp() local
45 dev_list.push_back(i); in SetUp()
54 g_device_manager->Init(dev_list, local_dev, stage_map, "hccl"); in SetUp()
/third_party/alsa-utils/alsaucm/
Ddump.c452 const char **dev_list; in render_devlist() local
457 dev_num = snd_use_case_get_list(uc_mgr, buf, &dev_list); in render_devlist()
468 err = value(render, dev_list[j], j + 1 == dev_num); in render_devlist()
475 snd_use_case_free_list(dev_list, dev_num); in render_devlist()
551 const char **list, **dev_list, *verb, *comment; in render() local
569 dev_num = snd_use_case_get_list(uc_mgr, buf, &dev_list); in render()
578 snd_use_case_free_list(dev_list, dev_num); in render()
582 render->device_begin(render, dev_list[j + 0], dev_list[j + 1]); in render()
583 if (render_device(context, render, verb, dev_list[j + 0])) { in render()
584 snd_use_case_free_list(dev_list, dev_num); in render()
[all …]
/third_party/mindspore/tests/ut/cpp/parallel/ops_info/
Dlog_softmax_info_test.cc41 RankList dev_list; in SetUp() local
44 dev_list.push_back(i); in SetUp()
55 g_device_manager->Init(dev_list, local_dev, stage_map, "hccl"); in SetUp()
174 RankList dev_list = log_softmax->stage_device_list(); in TEST_F() local
175 ASSERT_EQ(dev_list.size(), 128); in TEST_F()
Dactivation_test.cc43 RankList dev_list; in SetUp() local
46 dev_list.push_back(i); in SetUp()
57 g_device_manager->Init(dev_list, local_dev, stage_map, "hccl"); in SetUp()
Dgelu_info_test.cc41 RankList dev_list; in SetUp() local
44 dev_list.push_back(i); in SetUp()
55 g_device_manager->Init(dev_list, local_dev, stage_map, "hccl"); in SetUp()
Dpow_info_test.cc41 RankList dev_list; in SetUp() local
44 dev_list.push_back(i); in SetUp()
55 g_device_manager->Init(dev_list, local_dev, stage_map, "hccl"); in SetUp()
Dgenerate_strategy_test.cc37 RankList dev_list; in SetUp() local
40 dev_list.push_back(i); in SetUp()
51 g_device_manager->Init(dev_list, local_dev, stage_map, "hccl"); in SetUp()
Dtanh_info_test.cc41 RankList dev_list; in SetUp() local
44 dev_list.push_back(i); in SetUp()
55 g_device_manager->Init(dev_list, local_dev, stage_map, "hccl"); in SetUp()
Dsoftmax_info_test.cc42 RankList dev_list; in SetUp() local
45 dev_list.push_back(i); in SetUp()
55 g_device_manager->Init(dev_list, local_dev, stage_map, "hccl"); in SetUp()
Dactivation_info_test.cc41 RankList dev_list; in SetUp() local
44 dev_list.push_back(i); in SetUp()
55 g_device_manager->Init(dev_list, local_dev, stage_map, "hccl"); in SetUp()
Donehot_info_test_axis_0.cc41 RankList dev_list; in SetUp() local
44 dev_list.push_back(i); in SetUp()
55 g_device_manager->Init(dev_list, local_dev, stage_map, "hccl"); in SetUp()
Dsoftmax_entropy_loss_info_test.cc41 RankList dev_list; in SetUp() local
44 dev_list.push_back(i); in SetUp()
55 g_device_manager->Init(dev_list, local_dev, stage_map, "hccl"); in SetUp()
/third_party/libdrm/amdgpu/
Damdgpu_device.c47 static amdgpu_device_handle dev_list; variable
98 amdgpu_device_handle *node = &dev_list; in amdgpu_device_free_internal()
167 for (dev = dev_list; dev; dev = dev->next) in amdgpu_device_initialize()
268 dev->next = dev_list; in amdgpu_device_initialize()
269 dev_list = dev; in amdgpu_device_initialize()
/third_party/mindspore/mindspore/ccsrc/frontend/parallel/
Ddevice_manager.cc224 std::vector<Device> dev_list; in CreateDeviceListByRankList() local
227 dev_list.push_back(one); in CreateDeviceListByRankList()
229 return dev_list; in CreateDeviceListByRankList()
303 auto dev_list = CreateDeviceListByRankList(dev_ranks); in CreateGroup() local
304 return CreateGroup(group_name, dev_list); in CreateGroup()

123