We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a68c7ee commit 5887497Copy full SHA for 5887497
ggml/src/ggml-backend-reg.cpp
@@ -407,11 +407,11 @@ static std::string get_executable_path() {
407
std::vector<char> path(1024);
408
while (true) {
409
// get executable path
410
-# if defined(__linux__)
+# if defined(__linux__)
411
ssize_t len = readlink("/proc/self/exe", path.data(), path.size());
412
-# elif defined(__FreeBSD__)
+# elif defined(__FreeBSD__)
413
ssize_t len = readlink("/proc/curproc/file", path.data(), path.size());
414
-# endif
+# endif
415
if (len == -1) {
416
break;
417
}
0 commit comments