Home
last modified time | relevance | path

Searched refs:GPUDeviceInfo (Results 1 – 25 of 43) sorted by relevance

12

/third_party/flutter/skia/third_party/externals/angle2/src/gpu_info_util/
DSystemInfo.h30 struct GPUDeviceInfo struct
32 GPUDeviceInfo();
33 ~GPUDeviceInfo();
35 GPUDeviceInfo(const GPUDeviceInfo &other);
59 std::vector<GPUDeviceInfo> gpus; argument
DSystemInfo.cpp49 GPUDeviceInfo::GPUDeviceInfo() = default;
51 GPUDeviceInfo::~GPUDeviceInfo() = default;
53 GPUDeviceInfo::GPUDeviceInfo(const GPUDeviceInfo &other) = default;
63 for (const GPUDeviceInfo &gpu : gpus) in hasNVIDIAGPU()
75 for (const GPUDeviceInfo &gpu : gpus) in hasIntelGPU()
87 for (const GPUDeviceInfo &gpu : gpus) in hasAMDGPU()
DSystemInfo_linux.cpp66 bool GetPCIDevicesWithLibPCI(std::vector<GPUDeviceInfo> *devices) in GetPCIDevicesWithLibPCI()
88 GPUDeviceInfo *gpu = &info->gpus[i]; in GetSystemInfo()
129 GPUDeviceInfo nvidiaInfo; in GetSystemInfo()
DSystemInfo_win.cpp29 bool GetDevicesFromDXGI(std::vector<GPUDeviceInfo> *devices) in GetDevicesFromDXGI()
62 GPUDeviceInfo device; in GetDevicesFromDXGI()
DSystemInfo_libpci.cpp87 bool GetPCIDevicesWithLibPCI(std::vector<GPUDeviceInfo> *devices) in GetPCIDevicesWithLibPCI()
121 GPUDeviceInfo info; in GetPCIDevicesWithLibPCI()
DSystemInfo_internal.h18 bool GetPCIDevicesWithLibPCI(std::vector<GPUDeviceInfo> *devices);
DSystemInfo_mac.mm74 bool GetPCIDevices(std::vector<GPUDeviceInfo> *devices)
92 GPUDeviceInfo info;
/third_party/skia/third_party/externals/angle2/src/gpu_info_util/
DSystemInfo.cpp55 GPUDeviceInfo::GPUDeviceInfo() = default;
57 GPUDeviceInfo::~GPUDeviceInfo() = default;
59 GPUDeviceInfo::GPUDeviceInfo(const GPUDeviceInfo &other) = default;
69 for (const GPUDeviceInfo &gpu : gpus) in hasNVIDIAGPU()
81 for (const GPUDeviceInfo &gpu : gpus) in hasIntelGPU()
93 for (const GPUDeviceInfo &gpu : gpus) in hasAMDGPU()
DSystemInfo.h31 struct GPUDeviceInfo struct
33 GPUDeviceInfo();
34 ~GPUDeviceInfo();
36 GPUDeviceInfo(const GPUDeviceInfo &other);
61 std::vector<GPUDeviceInfo> gpus; argument
DSystemInfo_linux.cpp66 bool GetPCIDevicesWithLibPCI(std::vector<GPUDeviceInfo> *devices) in GetPCIDevicesWithLibPCI()
93 GPUDeviceInfo *gpu = &info->gpus[i]; in GetSystemInfo()
134 GPUDeviceInfo nvidiaInfo; in GetSystemInfo()
DSystemInfo_win.cpp28 bool GetDevicesFromDXGI(std::vector<GPUDeviceInfo> *devices) in GetDevicesFromDXGI()
70 GPUDeviceInfo device; in GetDevicesFromDXGI()
DSystemInfo_libpci.cpp90 bool GetPCIDevicesWithLibPCI(std::vector<GPUDeviceInfo> *devices) in GetPCIDevicesWithLibPCI()
119 GPUDeviceInfo info; in GetPCIDevicesWithLibPCI()
DSystemInfo_ios.cpp23 GPUDeviceInfo deviceInfo; in GetSystemInfo_ios()
DSystemInfo_internal.h18 bool GetPCIDevicesWithLibPCI(std::vector<GPUDeviceInfo> *devices);
/third_party/mindspore/tests/ut/cpp/cxx_api/
Dcontext_test.cc28 std::shared_ptr<DeviceInfoContext> gpu = std::make_shared<GPUDeviceInfo>(); in TEST_F()
34 ASSERT_TRUE(gpu->Cast<GPUDeviceInfo>() != nullptr); in TEST_F()
42 std::shared_ptr<DeviceInfoContext> gpu = std::make_shared<GPUDeviceInfo>(); in TEST_F()
47 ASSERT_TRUE(cpu->Cast<GPUDeviceInfo>() == nullptr); in TEST_F()
48 ASSERT_TRUE(kirin_npu->Cast<GPUDeviceInfo>() == nullptr); in TEST_F()
49 ASSERT_TRUE(ascend310->Cast<GPUDeviceInfo>() == nullptr); in TEST_F()
50 ASSERT_TRUE(ascend910->Cast<GPUDeviceInfo>() == nullptr); in TEST_F()
/third_party/mindspore/mindspore/ccsrc/cxx_api/
Dcontext.cc130 void GPUDeviceInfo::SetEnableFP16(bool is_fp16) { in SetEnableFP16()
134 bool GPUDeviceInfo::GetEnableFP16() const { in GetEnableFP16()
148 void GPUDeviceInfo::SetDeviceID(uint32_t device_id) { in SetDeviceID()
152 uint32_t GPUDeviceInfo::GetDeviceID() const { in GetDeviceID()
157 void GPUDeviceInfo::SetPrecisionMode(const std::vector<char> &precision_mode) { in SetPrecisionMode()
161 std::vector<char> GPUDeviceInfo::GetPrecisionModeChar() const { in GetPrecisionModeChar()
/third_party/mindspore/mindspore/lite/src/cxx_api/
Dcontext.cc224 void GPUDeviceInfo::SetEnableFP16(bool is_fp16) { in SetEnableFP16()
231 bool GPUDeviceInfo::GetEnableFP16() const { in GetEnableFP16()
255 void GPUDeviceInfo::SetDeviceID(uint32_t device_id) { in SetDeviceID()
263 uint32_t GPUDeviceInfo::GetDeviceID() const { in GetDeviceID()
271 void GPUDeviceInfo::SetPrecisionMode(const std::vector<char> &precision_mode) { in SetPrecisionMode()
274 std::vector<char> GPUDeviceInfo::GetPrecisionModeChar() const { in GetPrecisionModeChar()
/third_party/mindspore/mindspore/lite/src/delegate/tensorrt/
Dtensorrt_subgraph.h35 … std::shared_ptr<GPUDeviceInfo> device_info, TensorRTRuntime *runtime, bool support_hw_resize) in TensorRTSubGraph()
85 std::shared_ptr<GPUDeviceInfo> device_info_{nullptr};
/third_party/flutter/skia/third_party/externals/angle2/src/tests/test_expectations/
DGPUTestConfig.cpp336 inline bool GetActiveGPU(GPUDeviceInfo **devInfo) in GetActiveGPU()
360 GPUDeviceInfo *activeGPU = nullptr; in GetActiveGPUVendorID()
375 GPUDeviceInfo *activeGPU = nullptr; in GetActiveGPUDeviceID()
/third_party/skia/third_party/externals/angle2/src/tests/test_expectations/
DGPUTestConfig.cpp308 inline bool GetActiveGPU(GPUDeviceInfo **devInfo) in GetActiveGPU()
326 GPUDeviceInfo *activeGPU = nullptr; in GetActiveGPUVendorID()
341 GPUDeviceInfo *activeGPU = nullptr; in GetActiveGPUDeviceID()
/third_party/mindspore/include/api/
Dcontext.h215 class MS_API GPUDeviceInfo : public DeviceInfoContext {
257 void GPUDeviceInfo::SetPrecisionMode(const std::string &precision_mode) { in SetPrecisionMode()
260 std::string GPUDeviceInfo::GetPrecisionMode() const { return CharToString(GetPrecisionModeChar()); } in GetPrecisionMode()
/third_party/mindspore/mindspore/lite/test/st/
Dmultiple_device_test.cc371 context->MutableDeviceInfo().push_back(std::make_shared<mindspore::GPUDeviceInfo>()); in TEST_F()
384 context.MutableDeviceInfo().push_back(std::make_shared<mindspore::GPUDeviceInfo>()); in TEST_F()
406 context.MutableDeviceInfo().push_back(std::make_shared<mindspore::GPUDeviceInfo>()); in TEST_F()
429 context->MutableDeviceInfo().push_back(std::make_shared<mindspore::GPUDeviceInfo>()); in TEST_F()
475 context->MutableDeviceInfo().push_back(std::make_shared<mindspore::GPUDeviceInfo>()); in TEST_F()
519 context->MutableDeviceInfo().push_back(std::make_shared<mindspore::GPUDeviceInfo>()); in TEST_F()
543 context->MutableDeviceInfo().push_back(std::make_shared<mindspore::GPUDeviceInfo>()); in TEST_F()
/third_party/mindspore/mindspore/lite/src/common/
Dcontext_util.cc47 std::shared_ptr<mindspore::GPUDeviceInfo> GPUDeviceInfoFromGPUDeviceContext(const lite::DeviceConte… in GPUDeviceInfoFromGPUDeviceContext()
52 auto gpu_info = std::make_shared<mindspore::GPUDeviceInfo>(); in GPUDeviceInfoFromGPUDeviceContext()
/third_party/skia/third_party/externals/angle2/src/tests/test_utils/
Dangle_test_instantiate.cpp128 GPUDeviceInfo *GetActiveGPUDeviceInfo() in GetActiveGPUDeviceInfo()
141 GPUDeviceInfo *gpuInfo = GetActiveGPUDeviceInfo(); in HasSystemVendorID()
148 GPUDeviceInfo *gpuInfo = GetActiveGPUDeviceInfo(); in HasSystemDeviceID()
/third_party/mindspore/mindspore/lite/examples/runtime_gpu_extend/
Dmain.cc111 std::shared_ptr<GPUDeviceInfo> provider_gpu_device_info = std::make_shared<GPUDeviceInfo>(); in InitMSContext()

12