Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
Fix bad symbol load detection
Daniel Hiltgen52ce350b7aec
diff --git a/gpu/gpu_info_cudart.c b/gpu/gpu_info_cudart.cindex 9db89529a..03f15a2c3 100644--- a/gpu/gpu_info_cudart.c+++ b/gpu/gpu_info_cudart.c@@ -40,7 +40,7 @@ void cudart_init(char *cudart_lib_path, cudart_init_resp_t *resp) {for (i = 0; l[i].s != NULL; i++) {*l[i].p = LOAD_SYMBOL(resp->ch.handle, l[i].s);- if (!l[i].p) {+ if (!*(l[i].p)) {char *msg = LOAD_ERR();LOG(resp->ch.verbose, "dlerr: %s\n", msg);UNLOAD_LIBRARY(resp->ch.handle);diff --git a/gpu/gpu_info_nvcuda.c b/gpu/gpu_info_nvcuda.cindex 675ce5cc4..abe140844 100644--- a/gpu/gpu_info_nvcuda.c+++ b/gpu/gpu_info_nvcuda.c@@ -43,7 +43,7 @@ void nvcuda_init(char *nvcuda_lib_path, nvcuda_init_resp_t *resp) {for (i = 0; l[i].s != NULL; i++) {*l[i].p = LOAD_SYMBOL(resp->ch.handle, l[i].s);- if (!*l[i].p) {+ if (!*(l[i].p)) {char *msg = LOAD_ERR();LOG(resp->ch.verbose, "dlerr: %s\n", msg);UNLOAD_LIBRARY(resp->ch.handle);diff --git a/gpu/gpu_info_nvml.c b/gpu/gpu_info_nvml.cindex ef0a97df2..11293e448 100644--- a/gpu/gpu_info_nvml.c+++ b/gpu/gpu_info_nvml.c@@ -42,7 +42,7 @@ void nvml_init(char *nvml_lib_path, nvml_init_resp_t *resp) {// LOG(resp->ch.verbose, "dlsym: %s\n", l[i].s);*l[i].p = LOAD_SYMBOL(resp->ch.handle, l[i].s);- if (!l[i].p) {+ if (!*(l[i].p)) {resp->ch.handle = NULL;char *msg = LOAD_ERR();LOG(resp->ch.verbose, "dlerr: %s\n", msg);