Skip to content

Commit 4c10ed9

Browse files
committed
feat: Flag Cuda
1 parent c54e7f7 commit 4c10ed9

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

‎AiManager.cs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ namespace NoteUI;
99

1010
public class AiManager
1111
{
12+
1213
// ── Data models ──
1314

1415
public record ModelInfo(string Id, string Name);

‎NoteUI.csproj‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
<Nullable>enable</Nullable>
1313
<ImplicitUsings>enable</ImplicitUsings>
1414
<ApplicationIcon>app.ico</ApplicationIcon>
15+
<EnableCudaBackend>true</EnableCudaBackend>
1516
</PropertyGroup>
1617

1718
<ItemGroup>
@@ -39,7 +40,7 @@
3940
<PackageReference Include="Whisper.net.Runtime" Version="1.7.4" />
4041
<PackageReference Include="LLamaSharp" Version="0.26.0" />
4142
<PackageReference Include="LLamaSharp.Backend.Cpu" Version="0.26.0" />
42-
<PackageReference Include="LLamaSharp.Backend.Cuda12" Version="0.26.0" />
43+
<PackageReference Include="LLamaSharp.Backend.Cuda12" Version="0.26.0" Condition="'$(EnableCudaBackend)' == 'true'" />
4344
<PackageReference Include="System.Security.Cryptography.ProtectedData" Version="8.0.0" />
4445
</ItemGroup>
4546
</Project>

0 commit comments

Comments
 (0)