From aab3b1b5a5c32f34b018108922b51318360b4749 Mon Sep 17 00:00:00 2001 From: lzk Date: Mon, 7 Jun 2021 18:53:49 -0700 Subject: [PATCH] code check --- mindspore/lite/src/runtime/gpu/cuda/cuda_runtime.cc | 1 - mindspore/lite/src/runtime/gpu/gpu_runtime.cc | 1 - mindspore/lite/src/runtime/gpu/opencl/opencl_runtime.cc | 3 --- 3 files changed, 5 deletions(-) diff --git a/mindspore/lite/src/runtime/gpu/cuda/cuda_runtime.cc b/mindspore/lite/src/runtime/gpu/cuda/cuda_runtime.cc index 2062e5e6516..7bcd5bcf275 100644 --- a/mindspore/lite/src/runtime/gpu/cuda/cuda_runtime.cc +++ b/mindspore/lite/src/runtime/gpu/cuda/cuda_runtime.cc @@ -75,5 +75,4 @@ CudaRuntime::~CudaRuntime() { Uninit(); } const GpuInfo &CudaRuntime::GetGpuInfo() { return gpu_info_; } bool CudaRuntime::GetFp16Enable() const { return true; } - } // namespace mindspore::lite::cuda diff --git a/mindspore/lite/src/runtime/gpu/gpu_runtime.cc b/mindspore/lite/src/runtime/gpu/gpu_runtime.cc index 6246ef54809..68c4f9147b1 100644 --- a/mindspore/lite/src/runtime/gpu/gpu_runtime.cc +++ b/mindspore/lite/src/runtime/gpu/gpu_runtime.cc @@ -27,5 +27,4 @@ namespace mindspore::lite::gpu { const GpuInfo &GpuRuntime::GetGpuInfo() { return gpu_info_; } - } // namespace mindspore::lite::gpu diff --git a/mindspore/lite/src/runtime/gpu/opencl/opencl_runtime.cc b/mindspore/lite/src/runtime/gpu/opencl/opencl_runtime.cc index 98a5bf6473b..1ecb7fb7720 100644 --- a/mindspore/lite/src/runtime/gpu/opencl/opencl_runtime.cc +++ b/mindspore/lite/src/runtime/gpu/opencl/opencl_runtime.cc @@ -467,7 +467,6 @@ GpuInfo OpenCLRuntime::ParseGpuInfo(std::string device_name, std::string device_ if (device_name == "QUALCOMM Adreno(TM)") { info.type = ADRENO; sscanf(device_version.c_str(), "%*s%f%*s%d", &info.opencl_version, &info.model_num); - } else if (device_name.find("Mali") != std::string::npos) { info.type = MALI; @@ -481,7 +480,6 @@ GpuInfo OpenCLRuntime::ParseGpuInfo(std::string device_name, std::string device_ } sscanf(device_version.c_str(), "%*s%f%*s", &info.opencl_version); } - return info; } @@ -785,5 +783,4 @@ cl::Buffer *OpenCLRuntime::CreateSharedMemoryBuffer(size_t size, void *host_ptr) } return buffer; } - } // namespace mindspore::lite::opencl