Home
last modified time | relevance | path

Searched refs:device_ (Results 1 – 25 of 46) sorted by relevance

12

/third_party/mindspore/mindspore/lite/src/runtime/gpu/opencl/
Dopencl_runtime.cc99 device_ = new (std::nothrow) cl::Device(); in InitGPUDevice()
100 if (device_ == nullptr) { in InitGPUDevice()
104 *device_ = devices[0]; in InitGPUDevice()
105 max_work_item_sizes_ = device_->getInfo<CL_DEVICE_MAX_WORK_ITEM_SIZES>(); in InitGPUDevice()
107 const std::string device_name = device_->getInfo<CL_DEVICE_NAME>(); in InitGPUDevice()
108 const std::string device_version = device_->getInfo<CL_DEVICE_VERSION>(); in InitGPUDevice()
109 const std::string opencl_version = device_->getInfo<CL_DEVICE_OPENCL_C_VERSION>(); in InitGPUDevice()
110 …clGetDeviceInfo((*device_)(), CL_DEVICE_IMAGE_PITCH_ALIGNMENT, sizeof(cl_uint), &image_pitch_align… in InitGPUDevice()
120 ret = device_->getInfo(CL_DEVICE_GLOBAL_MEM_CACHE_SIZE, &global_memery_cachesize_); in InitGPUDevice()
124 ret = device_->getInfo(CL_DEVICE_MAX_COMPUTE_UNITS, &compute_units_); in InitGPUDevice()
[all …]
/third_party/boost/boost/numeric/ublas/opencl/
Dmatrix.hpp37 size1_(0), size2_(0), data_() , device_() in matrix()
42 size1_(size1), size2_(size2), device_(c.get_device()) in matrix()
50 size1_(size1), size2_(size2), device_(q.get_device()) in matrix()
74 const compute::device &device() const { return device_;} in device()
75 compute::device &device() { return device_;} in device()
79 assert(device_ == queue.get_device()); in fill()
91 assert(device_ == queue.get_device()); in from_host()
106 assert(device_ == queue.get_device()); in to_host()
118 compute::device device_; member in boost::numeric::ublas::matrix
Dvector.hpp36 { device_ = context.get_device();} in vector()
41 device_ = queue.get_device(); in vector()
52 const compute::device device() const { return device_;} in device()
53 compute::device device() { return device_;} in device()
85 compute::device device_; member in boost::numeric::ublas::vector
/third_party/flutter/engine/flutter/vulkan/
Dvulkan_swapchain.cc46 device_(device), in VulkanSwapchain()
53 if (!device_.IsValid() || !surface.IsValid() || skia_context == nullptr) { in VulkanSwapchain()
58 if (!device_.GetSurfaceCapabilities(surface, &capabilities_)) { in VulkanSwapchain()
75 device_.ChooseSurfaceFormat(surface, desired_formats, &surface_format_); in VulkanSwapchain()
82 if (!device_.ChoosePresentMode(surface, &present_mode)) { in VulkanSwapchain()
91 device_.GetPhysicalDeviceHandle(), // physical device in VulkanSwapchain()
139 if (VK_CALL_LOG_ERROR(vk.CreateSwapchainKHR(device_.GetHandle(), &create_info, in VulkanSwapchain()
147 FML_ALLOW_UNUSED_LOCAL(device_.WaitIdle()); in VulkanSwapchain()
148 vk.DestroySwapchainKHR(device_.GetHandle(), swapchain, in VulkanSwapchain()
171 device_.GetHandle(), swapchain_, &count, nullptr)) != VK_SUCCESS) { in GetImages()
[all …]
Dvulkan_backbuffer.cc19 device_(device), in VulkanBackbuffer()
57 vk.DestroySemaphore(device_, semaphore, nullptr); in CreateSemaphores()
63 if (VK_CALL_LOG_ERROR(vk.CreateSemaphore(device_, &create_info, nullptr, in CreateSemaphores()
82 vk.DestroyFence(device_, fence, nullptr); in CreateFences()
88 if (VK_CALL_LOG_ERROR(vk.CreateFence(device_, &create_info, nullptr, in CreateFences()
107 device_, static_cast<uint32_t>(use_fences_.size()), fences, true, in WaitFences()
119 device_, static_cast<uint32_t>(use_fences_.size()), fences)) == in ResetFences()
Dvulkan_device.cc101 device_ = {device, in VulkanDevice()
104 if (!vk.SetupDeviceProcAddresses(device_)) { in VulkanDevice()
111 vk.GetDeviceQueue(device_, graphics_queue_index_, 0, &queue); in VulkanDevice()
128 if (VK_CALL_LOG_ERROR(vk.CreateCommandPool(device_, &command_pool_create_info, in VulkanDevice()
136 vk.DestroyCommandPool(device_, pool, nullptr); in VulkanDevice()
151 return VK_CALL_LOG_ERROR(vk.DeviceWaitIdle(device_)) == VK_SUCCESS; in WaitIdle()
155 return device_; in GetHandle()
159 device_.ReleaseOwnership(); in ReleaseDeviceOwnership()
Dvulkan_command_buffer.cc15 : vk(p_vk), device_(device), pool_(pool), valid_(false) { in VulkanCommandBuffer()
26 if (VK_CALL_LOG_ERROR(vk.AllocateCommandBuffers(device_, &allocate_info, in VulkanCommandBuffer()
33 vk.FreeCommandBuffers(device_, pool_, 1, &buffer); in VulkanCommandBuffer()
Dvulkan_proc_table.cc34 return instance_ && device_; in IsValid()
42 return device_; in AreDeviceProcsSetup()
143 device_ = {handle, nullptr}; in SetupDeviceProcAddresses()
Dvulkan_command_buffer.h48 const VulkanHandle<VkDevice>& device_; variable
/third_party/boost/boost/iostreams/
Dcompose.hpp105 iostreams::imbue(device_, loc); in imbue()
109 Device& second() { return device_; } in second()
112 value_type device_; member in boost::iostreams::detail::composite_device
401 : filter_(flt), device_(dev) in composite_device()
407 { return iostreams::read(filter_, device_, s, n); } in read()
412 { return iostreams::write(filter_, device_, s, n); } in write()
417 { return iostreams::seek(filter_, device_, off, way, which); } in seek()
433 detail::call_close(device_, BOOST_IOS::in), in close()
434 detail::call_close(filter_, device_, BOOST_IOS::in), in close()
435 detail::call_close(filter_, device_, BOOST_IOS::out), in close()
[all …]
/third_party/skia/third_party/externals/dawn/src/dawn_node/binding/
DGPUDevice.cpp79 : env_(env), device_(device), async_(std::make_shared<AsyncRunner>(env, device)) { in GPUDevice()
80 device_.SetLoggingCallback( in GPUDevice()
85 device_.SetUncapturedErrorCallback( in GPUDevice()
91 device_.SetDeviceLostCallback( in GPUDevice()
130 if (!device_.GetLimits(&limits)) { in getLimits()
138 return interop::GPUQueue::Create<GPUQueue>(env, device_.GetQueue(), async_); in getQueue()
147 device_.Release(); in destroy()
161 return interop::GPUBuffer::Create<GPUBuffer>(env, device_.CreateBuffer(&desc), desc, in createBuffer()
162 device_, async_); in createBuffer()
179 return interop::GPUTexture::Create<GPUTexture>(env, device_.CreateTexture(&desc)); in createTexture()
[all …]
DAsyncRunner.cpp22 AsyncRunner::AsyncRunner(Napi::Env env, wgpu::Device device) : env_(env), device_(device) { in AsyncRunner()
53 device_.Tick(); in QueueTick()
DGPUBuffer.cpp36 device_(std::move(device)), in GPUBuffer()
58 device_.InjectError(wgpu::ErrorType::Validation, in mapAsync()
143 device_.InjectError(wgpu::ErrorType::Validation, in unmap()
DAsyncRunner.h46 wgpu::Device const device_; variable
/third_party/cef/tests/cefclient/browser/
Dosr_render_handler_win_d3d11.cc16 frame_buffer_ = std::make_shared<d3d11::FrameBuffer>(device_); in BrowserLayer()
83 device_ = d3d11::Device::create(); in Initialize()
84 DCHECK(device_); in Initialize()
85 if (!device_) in Initialize()
89 swap_chain_ = device_->create_swapchain(hwnd()); in Initialize()
95 browser_layer_ = std::make_shared<BrowserLayer>(device_); in Initialize()
98 composition_ = std::make_shared<d3d11::Composition>(device_, width, height); in Initialize()
147 popup_layer_ = std::make_shared<PopupLayer>(device_); in OnPopupShow()
197 auto ctx = device_->immedidate_context(); in Render()
Dosr_d3d11_win.cc292 : device_(to_com_ptr(pdev)), ctx_(std::make_shared<Context>(pctx)) { in Device()
341 auto hr = device_->QueryInterface(__uuidof(dxgi_dev), (void**)&dxgi_dev); in adapter_name()
381 hr = device_->QueryInterface(__uuidof(IDXGIDevice), in create_swapchain()
421 hr = dxgi_factory2->CreateSwapChainForHwnd(device_.get(), window, &sd, in create_swapchain()
446 hr = dxgi_factory->CreateSwapChain(device_.get(), &sd, &swapchain); in create_swapchain()
466 hr = device_->CreateRenderTargetView(back_buffer, nullptr, &rtv); in create_swapchain()
498 device_->CreateSamplerState(&desc, &sampler); in create_swapchain()
518 device_->CreateBlendState(&desc, &blender); in create_swapchain()
563 const auto hr = device_->CreateBuffer(&desc, &srd, &buffer); in create_quad()
575 auto hr = device_->OpenSharedResource(handle, __uuidof(ID3D11Texture2D), in open_shared_texture()
[all …]
Dosr_d3d11_win.h90 operator ID3D11Device*() { return device_.get(); }
129 const std::shared_ptr<ID3D11Device> device_; variable
260 const std::shared_ptr<Device> device_; variable
304 const std::shared_ptr<Device> device_; variable
321 const std::shared_ptr<Device> device_;
/third_party/boost/boost/iostreams/detail/adapter/
Dnon_blocking_adapter.hpp26 explicit non_blocking_adapter(Device& dev) : device_(dev) { } in non_blocking_adapter()
31 std::streamsize amt = iostreams::read(device_, s + result, n - result); in read()
43 iostreams::write(device_, s + result, n - result); in write()
54 { return iostreams::seek(device_, off, way, which); } in seek()
57 Device& device_; member in boost::iostreams::non_blocking_adapter
/third_party/boost/libs/asio/include/boost/asio/impl/
Dread_at.hpp188 device_(device), in read_at_op()
199 device_(other.device_), in read_at_op()
211 device_(other.device_), in read_at_op()
232 device_.async_read_some_at( in operator ()()
251 AsyncRandomAccessReadDevice& device_; member in boost::asio::detail::read_at_op
354 : device_(device) in initiate_async_read_at_buffer_sequence()
360 return device_.get_executor(); in get_executor()
375 start_read_at_buffer_sequence_op(device_, offset, buffers, in operator ()()
381 AsyncRandomAccessReadDevice& device_; member in boost::asio::detail::initiate_async_read_at_buffer_sequence
481 device_(device), in read_at_streambuf_op()
[all …]
Dwrite_at.hpp173 device_(device), in write_at_op()
184 device_(other.device_), in write_at_op()
196 device_(other.device_), in write_at_op()
217 device_.async_write_some_at( in operator ()()
236 AsyncRandomAccessWriteDevice& device_; member in boost::asio::detail::write_at_op
339 : device_(device) in initiate_async_write_at_buffer_sequence()
345 return device_.get_executor(); in get_executor()
360 start_write_at_buffer_sequence_op(device_, offset, buffers, in operator ()()
366 AsyncRandomAccessWriteDevice& device_; member in boost::asio::detail::initiate_async_write_at_buffer_sequence
559 : device_(device) in initiate_async_write_at_streambuf()
[all …]
/third_party/boost/boost/asio/impl/
Dread_at.hpp188 device_(device), in read_at_op()
199 device_(other.device_), in read_at_op()
211 device_(other.device_), in read_at_op()
232 device_.async_read_some_at( in operator ()()
251 AsyncRandomAccessReadDevice& device_; member in boost::asio::detail::read_at_op
354 : device_(device) in initiate_async_read_at_buffer_sequence()
360 return device_.get_executor(); in get_executor()
375 start_read_at_buffer_sequence_op(device_, offset, buffers, in operator ()()
381 AsyncRandomAccessReadDevice& device_; member in boost::asio::detail::initiate_async_read_at_buffer_sequence
481 device_(device), in read_at_streambuf_op()
[all …]
Dwrite_at.hpp173 device_(device), in write_at_op()
184 device_(other.device_), in write_at_op()
196 device_(other.device_), in write_at_op()
217 device_.async_write_some_at( in operator ()()
236 AsyncRandomAccessWriteDevice& device_; member in boost::asio::detail::write_at_op
339 : device_(device) in initiate_async_write_at_buffer_sequence()
345 return device_.get_executor(); in get_executor()
360 start_write_at_buffer_sequence_op(device_, offset, buffers, in operator ()()
366 AsyncRandomAccessWriteDevice& device_; member in boost::asio::detail::initiate_async_write_at_buffer_sequence
559 : device_(device) in initiate_async_write_at_streambuf()
[all …]
/third_party/gstreamer/gstplugins_bad/sys/d3d11/
Dgstd3d11screencapture.cpp234 : device_(nullptr) in D3D11DesktopDupObject()
250 gst_clear_object (&device_); in ~D3D11DesktopDupObject()
293 device_ = (GstD3D11Device *) gst_object_ref (device); in Init()
336 if (!gst_d3d11_result (hr, device_)) { in Capture()
546 if (device == device_) { in CopyToTexture()
557 if (!gst_d3d11_result (hr, device_)) in CopyToTexture()
561 if (!gst_d3d11_result (hr, device_)) in CopyToTexture()
778 if (!gst_d3d11_result (hr, device_)) { in GetMouse()
780 gst_d3d11_device_get_device_handle (device_); in GetMouse()
808 ID3D11Device *device_handle = gst_d3d11_device_get_device_handle (device_); in GetFrame()
[all …]
/third_party/mindspore/mindspore/lite/tools/benchmark/
Dbenchmark_base.cc274 if (flags_->device_ != "CPU" && flags_->device_ != "GPU" && flags_->device_ != "NPU" && in CheckDeviceTypeValid()
275 flags_->device_ != "Ascend310" && flags_->device_ != "NNRT") { in CheckDeviceTypeValid()
276 MS_LOG(ERROR) << "Device type:" << flags_->device_ << " is not supported."; in CheckDeviceTypeValid()
277 std::cerr << "Device type:" << flags_->device_ << " is not supported." << std::endl; in CheckDeviceTypeValid()
372 MS_LOG(INFO) << "DeviceType = " << this->flags_->device_; in Init()
384 std::cout << "DeviceType = " << this->flags_->device_ << std::endl; in Init()
/third_party/mindspore/mindspore/lite/src/
Dsub_graph_split.cc221 DeviceType device_type = subgraph.device_; in ConvertSubGraphToModel()
703 sub_graphs->at(i).device_ = major_dt_; in InitSubgraphRuntimeInfo()
707 sub_graphs->at(i).device_ = minor_dt_; in InitSubgraphRuntimeInfo()
742 new_sub.device_ = sub_graphs->at(sub1_index).device_; in SubgraphFusion()
883 …subgraph.device_ = static_cast<lite::DeviceType>(model_->graph_.all_nodes_.at(head_node_index)->de… in SubGraphSplitByOffLineParallel()
884 if (subgraph.device_ == DT_GPU) { in SubGraphSplitByOffLineParallel()
945 subgraph->device_ = static_cast<DeviceType>(node->device_type_); in InsertParallelNode()
948 if (subgraph->device_ != static_cast<DeviceType>(node->device_type_)) { in InsertParallelNode()

12