4
4
#include < mutex>
5
5
#include < optional>
6
6
#include < string>
7
- #include < string_view>
8
7
#include < unordered_map>
9
8
#include < vector>
10
9
17
16
#include " utils/cpuid/cpu_info.h"
18
17
#include " utils/dylib.h"
19
18
#include " utils/dylib_path_manager.h"
20
- #include " utils/engine_constants.h"
21
19
#include " utils/github_release_utils.h"
22
20
#include " utils/result.hpp"
23
21
#include " utils/system_info_utils.h"
@@ -48,10 +46,6 @@ class EngineService : public EngineServiceI {
48
46
struct EngineInfo {
49
47
std::unique_ptr<cortex_cpp::dylib> dl;
50
48
EngineV engine;
51
- #if defined(_WIN32)
52
- DLL_DIRECTORY_COOKIE cookie;
53
- DLL_DIRECTORY_COOKIE cuda_cookie;
54
- #endif
55
49
};
56
50
57
51
std::mutex engines_mutex_;
@@ -105,21 +99,23 @@ class EngineService : public EngineServiceI {
105
99
106
100
cpp::result<DefaultEngineVariant, std::string> SetDefaultEngineVariant (
107
101
const std::string& engine, const std::string& version,
108
- const std::string& variant);
102
+ const std::string& variant) override ;
109
103
110
104
cpp::result<DefaultEngineVariant, std::string> GetDefaultEngineVariant (
111
- const std::string& engine);
105
+ const std::string& engine) override ;
112
106
113
107
cpp::result<std::vector<EngineVariantResponse>, std::string>
114
- GetInstalledEngineVariants (const std::string& engine) const ;
108
+ GetInstalledEngineVariants (const std::string& engine) const override ;
115
109
116
110
cpp::result<EngineV, std::string> GetLoadedEngine (
117
111
const std::string& engine_name);
118
112
119
113
std::vector<EngineV> GetLoadedEngines ();
120
114
121
- cpp::result<void , std::string> LoadEngine (const std::string& engine_name);
122
- cpp::result<void , std::string> UnloadEngine (const std::string& engine_name);
115
+ cpp::result<void , std::string> LoadEngine (
116
+ const std::string& engine_name) override ;
117
+ cpp::result<void , std::string> UnloadEngine (
118
+ const std::string& engine_name) override ;
123
119
124
120
cpp::result<github_release_utils::GitHubRelease, std::string>
125
121
GetLatestEngineVersion (const std::string& engine) const ;
@@ -137,7 +133,7 @@ class EngineService : public EngineServiceI {
137
133
138
134
cpp::result<cortex::db::EngineEntry, std::string> GetEngineByNameAndVariant (
139
135
const std::string& engine_name,
140
- const std::optional<std::string> variant = std::nullopt );
136
+ const std::optional<std::string> variant = std::nullopt ) override ;
141
137
142
138
cpp::result<cortex::db::EngineEntry, std::string> UpsertEngine (
143
139
const std::string& engine_name, const std::string& type,
0 commit comments