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

Commit 5e7bda4

Browse files
authored
fix: align github syntax for cuda (#1316)
1 parent ae8be75 commit 5e7bda4

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

engine/services/engine_service.cc

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,12 @@ void EngineService::UnzipEngine(const std::string& engine,
119119
CTL_INF("engine: " << engine);
120120
CTL_INF("CUDA version: " << hw_inf_.cuda_driver_version);
121121
std::string cuda_variant = "cuda-";
122-
cuda_variant += GetSuitableCudaVersion(engine, hw_inf_.cuda_driver_version) +
123-
"-" + hw_inf_.sys_inf->os + "-" + hw_inf_.sys_inf->arch +
124-
".tar.gz";
122+
auto cuda_github =
123+
GetSuitableCudaVersion(engine, hw_inf_.cuda_driver_version);
124+
// Github release cuda example: cuda-12-0-windows-amd64.tar.gz
125+
std::replace(cuda_github.begin(), cuda_github.end(), '.', '-');
126+
cuda_variant += cuda_github + "-" + hw_inf_.sys_inf->os + "-" +
127+
hw_inf_.sys_inf->arch + ".tar.gz";
125128
CTL_INF("cuda_variant: " << cuda_variant);
126129

127130
std::vector<std::string> variants;

0 commit comments

Comments
 (0)