From 5e7bda4d0087f58810efde0a5d9cf0f1487cc449 Mon Sep 17 00:00:00 2001 From: vansangpfiev Date: Tue, 24 Sep 2024 08:32:37 +0700 Subject: [PATCH] fix: align github syntax for cuda (#1316) --- engine/services/engine_service.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/engine/services/engine_service.cc b/engine/services/engine_service.cc index 1b1f1d278..289bebd68 100644 --- a/engine/services/engine_service.cc +++ b/engine/services/engine_service.cc @@ -119,9 +119,12 @@ void EngineService::UnzipEngine(const std::string& engine, CTL_INF("engine: " << engine); CTL_INF("CUDA version: " << hw_inf_.cuda_driver_version); std::string cuda_variant = "cuda-"; - cuda_variant += GetSuitableCudaVersion(engine, hw_inf_.cuda_driver_version) + - "-" + hw_inf_.sys_inf->os + "-" + hw_inf_.sys_inf->arch + - ".tar.gz"; + auto cuda_github = + GetSuitableCudaVersion(engine, hw_inf_.cuda_driver_version); + // Github release cuda example: cuda-12-0-windows-amd64.tar.gz + std::replace(cuda_github.begin(), cuda_github.end(), '.', '-'); + cuda_variant += cuda_github + "-" + hw_inf_.sys_inf->os + "-" + + hw_inf_.sys_inf->arch + ".tar.gz"; CTL_INF("cuda_variant: " << cuda_variant); std::vector variants;