Changeset 2721


Ignore:
Timestamp:
Feb 17, 2011, 7:53:13 PM (11 years ago)
Author:
Sven Rech
Message:

setting to block nvidia gpus in keysearcher

Location:
trunk/CrypPlugins/KeySearcher
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/KeySearcher/KeySearcherSettings.cs

    r2705 r2721  
    4545                foreach (var device in oclManager.Context.Devices)
    4646                {
    47                     string deviceName = device.Vendor + ":" + device.Name;
    48                     deviceSettings.Add(new OpenCLDeviceSettings() {name = deviceName, index = c, mode = 1, useDevice = false});
    49                     devicesAvailable.Add(deviceName);
    50                     c++;
     47                    if (Settings.Default.AllowOpenCLNvidia || device.Vendor != "NVIDIA Corporation")
     48                    {
     49                        string deviceName = device.Vendor + ":" + device.Name;
     50                        deviceSettings.Add(new OpenCLDeviceSettings() {name = deviceName, index = c, mode = 1, useDevice = false});
     51                        devicesAvailable.Add(deviceName);
     52                        c++;
     53                    }
    5154                }
    5255
  • trunk/CrypPlugins/KeySearcher/KeysearcherSettingsTab.xaml

    r2517 r2721  
    1212                <Label Content="OpenCL:" FontWeight="Bold" />
    1313                <CheckBox Name="UseOpenCL" Content="Use OpenCL in KeySearcher" IsChecked="{Binding Source={x:Static Properties:Settings.Default}, Path=UseOpenCL, Mode=TwoWay}" ToolTip="Check this to enable the KeySearcher to make use of OpenCL for bruteforcing." Style="{StaticResource ResourceKey=settingsStyle}" />
    14                 <CheckBox Content="Enable using OpenCL with high load (not recommend)" IsChecked="{Binding Source={x:Static Properties:Settings.Default}, Path=EnableHighLoad, Mode=TwoWay}" IsEnabled="{Binding ElementName=UseOpenCL, Path=IsChecked}" Style="{StaticResource ResourceKey=settingsStyle}" Margin="40,5,0,10" />
     14                <CheckBox Content="Enable using OpenCL with high load (not recommend)" IsChecked="{Binding Source={x:Static Properties:Settings.Default}, Path=EnableHighLoad, Mode=TwoWay}" IsEnabled="{Binding ElementName=UseOpenCL, Path=IsChecked}" Style="{StaticResource ResourceKey=settingsStyle}" Margin="40,5,0,0" />
     15                <CheckBox Content="Allow using OpenCL with NVidia (not recommend)" IsChecked="{Binding Source={x:Static Properties:Settings.Default}, Path=AllowOpenCLNvidia, Mode=TwoWay}" IsEnabled="{Binding ElementName=UseOpenCL, Path=IsChecked}" Style="{StaticResource ResourceKey=settingsStyle}" Margin="40,5,0,10" />
     16               
    1517            </StackPanel>
    1618        </ScrollViewer>
  • trunk/CrypPlugins/KeySearcher/Properties/Settings.Designer.cs

    r2516 r2721  
    4747            }
    4848        }
     49       
     50        [global::System.Configuration.UserScopedSettingAttribute()]
     51        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     52        [global::System.Configuration.DefaultSettingValueAttribute("False")]
     53        public bool AllowOpenCLNvidia {
     54            get {
     55                return ((bool)(this["AllowOpenCLNvidia"]));
     56            }
     57            set {
     58                this["AllowOpenCLNvidia"] = value;
     59            }
     60        }
    4961    }
    5062}
  • trunk/CrypPlugins/KeySearcher/Properties/Settings.settings

    r2516 r2721  
    99      <Value Profile="(Default)">False</Value>
    1010    </Setting>
     11    <Setting Name="AllowOpenCLNvidia" Type="System.Boolean" Scope="User">
     12      <Value Profile="(Default)">False</Value>
     13    </Setting>
    1114  </Settings>
    1215</SettingsFile>
  • trunk/CrypPlugins/KeySearcher/app.config

    r2516 r2721  
    1414                <value>False</value>
    1515            </setting>
     16            <setting name="AllowOpenCLNvidia" serializeAs="String">
     17                <value>False</value>
     18            </setting>
    1619        </KeySearcher.Properties.Settings>
    1720    </userSettings>
Note: See TracChangeset for help on using the changeset viewer.