未验证 提交 54bbb62b 编写于 作者: L Liu Qi 提交者: GitHub

Merge pull request #331 from TCLResearchEurope/no_FindFirstExistPath

Removed unused function FindFirstExistPath in OpenCLRuntime
......@@ -229,20 +229,6 @@ GPUType ParseGPUType(const std::string &device_name) {
}
}
std::string FindFirstExistPath(const std::vector<std::string> &paths) {
std::string result;
struct stat st;
for (auto path : paths) {
if (stat(path.c_str(), &st) == 0) {
if (S_ISREG(st.st_mode)) {
result = path;
break;
}
}
}
return result;
}
const char *kOpenCLPlatformInfoKey =
"mace_opencl_precompiled_platform_info_key";
} // namespace
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册