fix sheepit GPU selection

This commit is contained in:
Nathan
2025-12-17 16:55:36 -07:00
parent 3833311f11
commit 84a518a9c9
3 changed files with 5248 additions and 4 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -105,7 +105,9 @@ namespace UnifiedFarmLauncher.ViewModels
if (worker.WorkerTypes.SheepIt != null)
{
HasSheepIt = true;
SheepItGpu = worker.WorkerTypes.SheepIt.Gpu;
SheepItGpu = string.IsNullOrEmpty(worker.WorkerTypes.SheepIt.Gpu)
? "OPTIX_0"
: worker.WorkerTypes.SheepIt.Gpu;
}
if (worker.WorkerTypes.Flamenco != null)

View File

@@ -36,9 +36,9 @@
<TextBlock Text="GPU:" IsVisible="{Binding HasSheepIt}"/>
<ComboBox Name="GpuComboBox" IsVisible="{Binding HasSheepIt}" SelectedItem="{Binding SheepItGpu}">
<ComboBox.Items>
<ComboBoxItem Content="OPTIX_0"/>
<ComboBoxItem Content="CUDA_0"/>
<ComboBoxItem Content="OPENCL_0"/>
<x:String>OPTIX_0</x:String>
<x:String>CUDA_0</x:String>
<x:String>OPENCL_0</x:String>
</ComboBox.Items>
</ComboBox>