Skip to content

Commit

Permalink
Update ggml/src/ggml-backend-reg.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
slaren authored Dec 22, 2024
1 parent a68c7ee commit 5887497
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ggml/src/ggml-backend-reg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -407,11 +407,11 @@ static std::string get_executable_path() {
std::vector<char> path(1024);
while (true) {
// get executable path
# if defined(__linux__)
# if defined(__linux__)
ssize_t len = readlink("/proc/self/exe", path.data(), path.size());
# elif defined(__FreeBSD__)
# elif defined(__FreeBSD__)
ssize_t len = readlink("/proc/curproc/file", path.data(), path.size());
# endif
# endif
if (len == -1) {
break;
}
Expand Down

0 comments on commit 5887497

Please sign in to comment.