llmodel: add CUDA to the DLL search path if CUDA_PATH is set (#2357)

Signed-off-by: Jared Van Bortel <jared@nomic.ai>
This commit is contained in:
Jared Van Bortel
2024-05-16 17:39:49 -04:00
committed by GitHub
parent a92d266cea
commit 2025d2d15b
2 changed files with 28 additions and 3 deletions

View File

@@ -58,14 +58,15 @@ public:
#include <string>
#include <exception>
#include <stdexcept>
#define WIN32_LEAN_AND_MEAN
#ifndef NOMINMAX
#define NOMINMAX
# define NOMINMAX
#endif
#include <windows.h>
#include <libloaderapi.h>
class Dlhandle {
HMODULE chandle;