Update ggml/src/ggml-backend-reg.cpp
This commit is contained in:
parent
f17d2c721e
commit
1f032a9577
1 changed files with 2 additions and 2 deletions
|
@ -473,8 +473,8 @@ static ggml_backend_reg_t ggml_backend_load_best(const char * name, bool silent,
|
|||
if (!fs::exists(search_path)) {
|
||||
continue;
|
||||
}
|
||||
for (const auto & entry : fs::directory_iterator(search_path,
|
||||
std::filesystem::directory_options::skip_permission_denied)) {
|
||||
fs::directory_iterator dir_it(search_path, fs::directory_options::skip_permission_denied);
|
||||
for (const auto & entry : dir_it) {
|
||||
if (entry.is_regular_file()) {
|
||||
std::string filename = entry.path().filename().string();
|
||||
std::string ext = entry.path().extension().string();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue