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)
|
if (worker.WorkerTypes.SheepIt != null)
|
||||||
{
|
{
|
||||||
HasSheepIt = true;
|
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)
|
if (worker.WorkerTypes.Flamenco != null)
|
||||||
|
|||||||
@@ -36,9 +36,9 @@
|
|||||||
<TextBlock Text="GPU:" IsVisible="{Binding HasSheepIt}"/>
|
<TextBlock Text="GPU:" IsVisible="{Binding HasSheepIt}"/>
|
||||||
<ComboBox Name="GpuComboBox" IsVisible="{Binding HasSheepIt}" SelectedItem="{Binding SheepItGpu}">
|
<ComboBox Name="GpuComboBox" IsVisible="{Binding HasSheepIt}" SelectedItem="{Binding SheepItGpu}">
|
||||||
<ComboBox.Items>
|
<ComboBox.Items>
|
||||||
<ComboBoxItem Content="OPTIX_0"/>
|
<x:String>OPTIX_0</x:String>
|
||||||
<ComboBoxItem Content="CUDA_0"/>
|
<x:String>CUDA_0</x:String>
|
||||||
<ComboBoxItem Content="OPENCL_0"/>
|
<x:String>OPENCL_0</x:String>
|
||||||
</ComboBox.Items>
|
</ComboBox.Items>
|
||||||
</ComboBox>
|
</ComboBox>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user