/third_party/mindspore/mindspore/lite/src/runtime/gpu/opencl/ |
D | opencl_runtime.cc | 99 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/ |
D | matrix.hpp | 37 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
|
D | vector.hpp | 36 { 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/ |
D | vulkan_swapchain.cc | 46 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 …]
|
D | vulkan_backbuffer.cc | 19 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()
|
D | vulkan_device.cc | 101 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()
|
D | vulkan_command_buffer.cc | 15 : 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()
|
D | vulkan_proc_table.cc | 34 return instance_ && device_; in IsValid() 42 return device_; in AreDeviceProcsSetup() 143 device_ = {handle, nullptr}; in SetupDeviceProcAddresses()
|
D | vulkan_command_buffer.h | 48 const VulkanHandle<VkDevice>& device_; variable
|
/third_party/boost/boost/iostreams/ |
D | compose.hpp | 105 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/ |
D | GPUDevice.cpp | 79 : 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 …]
|
D | AsyncRunner.cpp | 22 AsyncRunner::AsyncRunner(Napi::Env env, wgpu::Device device) : env_(env), device_(device) { in AsyncRunner() 53 device_.Tick(); in QueueTick()
|
D | GPUBuffer.cpp | 36 device_(std::move(device)), in GPUBuffer() 58 device_.InjectError(wgpu::ErrorType::Validation, in mapAsync() 143 device_.InjectError(wgpu::ErrorType::Validation, in unmap()
|
D | AsyncRunner.h | 46 wgpu::Device const device_; variable
|
/third_party/cef/tests/cefclient/browser/ |
D | osr_render_handler_win_d3d11.cc | 16 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()
|
D | osr_d3d11_win.cc | 292 : 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 …]
|
D | osr_d3d11_win.h | 90 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/ |
D | non_blocking_adapter.hpp | 26 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/ |
D | read_at.hpp | 188 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 …]
|
D | write_at.hpp | 173 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/ |
D | read_at.hpp | 188 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 …]
|
D | write_at.hpp | 173 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/ |
D | gstd3d11screencapture.cpp | 234 : 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/ |
D | benchmark_base.cc | 274 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/ |
D | sub_graph_split.cc | 221 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()
|