forked from mindspore-Ecosystem/mindspore
code check
This commit is contained in:
parent
b1ccab290a
commit
aab3b1b5a5
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue