Update ggml/src/ggml-backend-reg.cpp
This commit is contained in:
parent
a68c7eeec5
commit
5887497cdc
1 changed files with 3 additions and 3 deletions
|
@ -407,11 +407,11 @@ static std::string get_executable_path() {
|
||||||
std::vector<char> path(1024);
|
std::vector<char> path(1024);
|
||||||
while (true) {
|
while (true) {
|
||||||
// get executable path
|
// get executable path
|
||||||
# if defined(__linux__)
|
# if defined(__linux__)
|
||||||
ssize_t len = readlink("/proc/self/exe", path.data(), path.size());
|
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());
|
ssize_t len = readlink("/proc/curproc/file", path.data(), path.size());
|
||||||
# endif
|
# endif
|
||||||
if (len == -1) {
|
if (len == -1) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue