forked from mindspore-Ecosystem/mindspore
!17950 [MS][LITE][CPU] code check
Merge pull request !17950 from liuzhongkai/codecheck2
This commit is contained in:
commit
850e3d4b2a
|
@ -75,5 +75,4 @@ CudaRuntime::~CudaRuntime() { Uninit(); }
|
|||
|
||||
const GpuInfo &CudaRuntime::GetGpuInfo() { return gpu_info_; }
|
||||
bool CudaRuntime::GetFp16Enable() const { return true; }
|
||||
|
||||
} // namespace mindspore::lite::cuda
|
||||
|
|
|
@ -27,5 +27,4 @@
|
|||
|
||||
namespace mindspore::lite::gpu {
|
||||
const GpuInfo &GpuRuntime::GetGpuInfo() { return gpu_info_; }
|
||||
|
||||
} // namespace mindspore::lite::gpu
|
||||
|
|
|
@ -466,7 +466,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;
|
||||
|
||||
|
@ -480,7 +479,6 @@ GpuInfo OpenCLRuntime::ParseGpuInfo(std::string device_name, std::string device_
|
|||
}
|
||||
sscanf(device_version.c_str(), "%*s%f%*s", &info.opencl_version);
|
||||
}
|
||||
|
||||
return info;
|
||||
}
|
||||
|
||||
|
@ -784,5 +782,4 @@ cl::Buffer *OpenCLRuntime::CreateSharedMemoryBuffer(size_t size, void *host_ptr)
|
|||
}
|
||||
return buffer;
|
||||
}
|
||||
|
||||
} // namespace mindspore::lite::opencl
|
||||
|
|
Loading…
Reference in New Issue