diff --git a/mace/core/runtime/opencl/opencl_runtime.cc b/mace/core/runtime/opencl/opencl_runtime.cc index 1ee0e99526e5a5bb09b9e4020154f4c1f11edc2c..31cd5a541ee809d53f065e9ef63c67d819963c5f 100644 --- a/mace/core/runtime/opencl/opencl_runtime.cc +++ b/mace/core/runtime/opencl/opencl_runtime.cc @@ -229,20 +229,6 @@ GPUType ParseGPUType(const std::string &device_name) { } } -std::string FindFirstExistPath(const std::vector &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