fix sheepit GPU selection
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -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)
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user