CUDA работает!!

This commit is contained in:
2025-12-02 11:31:36 +00:00
parent a9a5104c84
commit 02a754f314
6 changed files with 51 additions and 4 deletions

View File

@@ -0,0 +1,12 @@
#include "gpu_loader.hpp"
#include <dlfcn.h>
gpu_is_available_fn load_gpu_is_available() {
void* h = dlopen("./libgpu_compute.so", RTLD_NOW | RTLD_LOCAL);
if (!h) return nullptr;
auto fn = (gpu_is_available_fn)dlsym(h, "gpu_is_available");
if (!fn) return nullptr;
return fn;
}