feat: add kernel preload
This commit is contained in:
@@ -42,6 +42,13 @@ public:
|
||||
Compiler::library_version = get_library_version();
|
||||
}
|
||||
|
||||
static std::filesystem::path get_cache_dir() {
|
||||
std::filesystem::path cache_dir = std::filesystem::path(get_env<std::string>("HOME")) / ".deep_gemm";
|
||||
if (const auto& env_cache_dir = get_env<std::string>("DG_JIT_CACHE_DIR"); !env_cache_dir.empty())
|
||||
cache_dir = env_cache_dir;
|
||||
return cache_dir;
|
||||
}
|
||||
|
||||
std::string signature, flags;
|
||||
std::filesystem::path cache_dir_path;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user