code check

This commit is contained in:
lzk 2021-06-07 18:53:49 -07:00
parent b1ccab290a
commit aab3b1b5a5
3 changed files with 0 additions and 5 deletions

View File

@ -75,5 +75,4 @@ CudaRuntime::~CudaRuntime() { Uninit(); }
const GpuInfo &CudaRuntime::GetGpuInfo() { return gpu_info_; }
bool CudaRuntime::GetFp16Enable() const { return true; }
} // namespace mindspore::lite::cuda

View File

@ -27,5 +27,4 @@
namespace mindspore::lite::gpu {
const GpuInfo &GpuRuntime::GetGpuInfo() { return gpu_info_; }
} // namespace mindspore::lite::gpu

View File

@ -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