Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit 3f6b08f

Browse files
committed
fix: load engine linux
Signed-off-by: vansangpfiev <[email protected]>
1 parent 2361815 commit 3f6b08f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

engine/services/engine_service.cc

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -759,15 +759,17 @@ void EngineService::RegisterEngineLibPath() {
759759
}
760760
auto engine_dir_path = engine_dir_path_res.value().first;
761761
auto custom_engine_path = engine_dir_path_res.value().second;
762+
auto cuda_path = file_manager_utils::GetCudaToolkitPath(ne);
762763

763764
auto dylib = std::make_unique<cortex_cpp::dylib>(engine_dir_path.string(),
764765
"engine");
765766

766-
auto cuda_path = file_manager_utils::GetCudaToolkitPath(ne);
767767
// init
768768
auto func = dylib->get_function<EngineI*()>("get_engine");
769769
auto engine = func();
770770
std::vector<std::filesystem::path> paths{};
771+
paths.push_back(std::move(cuda_path));
772+
paths.push_back(std::move(engine_dir_path));
771773
auto register_opts = EngineI::RegisterLibraryOption{
772774
.paths = paths,
773775
};
@@ -1066,5 +1068,7 @@ cpp::result<Json::Value, std::string> EngineService::GetRemoteModels(
10661068

10671069
cpp::result<std::vector<std::string>, std::string>
10681070
EngineService::GetSupportedEngineNames() {
1069-
return file_manager_utils::GetCortexConfig().supportedEngines;
1071+
std::vector<std::string> test{"llama-cpp"};
1072+
return test;
1073+
// return file_manager_utils::GetCortexConfig().supportedEngines;
10701074
}

0 commit comments

Comments
 (0)