Ignore:
Timestamp:
Dec 25, 2019, 2:33:23 PM (2 years ago)
Author:
Sven Rech
Message:

KeySearcher OpenCL:

  • Reactivated OpenCL for Cloud KeySearcher
    • Fixed bug in best list evaluation metric
    • Fixed bug in finding out correct device by index
    • Fixed releasing of mutex
  • Local KeySearcher: Made all OpenCL devices of all contexts available for selection (previously, only first context was used)
File:
1 edited

Legend:

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

    r8109 r8528  
    7171            if (oclManager != null)
    7272            {
    73                 foreach (var device in oclManager.Context.Devices)
    74                 {
    75                     string deviceName = device.Vendor + ":" + device.Name;
    76                     deviceSettings.Add(new OpenCLDeviceSettings(this) { name = deviceName, index = c, mode = 1, UseDevice = false });
    77                     devicesAvailable.Add(deviceName);
    78                     c++;
     73                for (var id = 0; id < OpenCL.GetPlatforms().Length; id++)
     74                {
     75                    oclManager.CreateDefaultContext(id, DeviceType.ALL);
     76                    foreach (var device in oclManager.Context.Devices)
     77                    {
     78                        string deviceName = device.Vendor + ":" + device.Name;
     79                        deviceSettings.Add(new OpenCLDeviceSettings(this) { name = deviceName, index = c, mode = 1, UseDevice = false });
     80                        devicesAvailable.Add(deviceName);
     81                        c++;
     82                    }
    7983                }
    8084            }
Note: See TracChangeset for help on using the changeset viewer.