Ignore:
Timestamp:
Oct 30, 2010, 3:12:20 PM (11 years ago)
Author:
Sven Rech
Message:
  • added OpenCL.Net project
  • added OpenCL settings in KeySearcher
  • changed rereservation status message behavior
File:
1 edited

Legend:

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

    r2010 r2040  
    3636using KeySearcherPresentation;
    3737using KeySearcherPresentation.Controls;
     38using OpenCLNet;
    3839
    3940namespace KeySearcher
     
    5960        private readonly LocalQuickWatchPresentation localQuickWatchPresentation;
    6061
     62        private OpenCLManager oclManager = null;
     63
    6164        private readonly Stopwatch localBruteForceStopwatch;
    6265
     
    232235        {
    233236            IsKeySearcherRunning = false;
    234             settings = new KeySearcherSettings(this);
     237            if (OpenCL.NumberOfPlatforms > 0)
     238            {
     239                oclManager = new OpenCLManager();
     240                oclManager.CreateDefaultContext(0, DeviceType.ALL);
     241            }
     242
     243            settings = new KeySearcherSettings(this, oclManager);
    235244            QuickWatchPresentation = new QuickWatch();
    236245            localQuickWatchPresentation = ((QuickWatch) QuickWatchPresentation).LocalQuickWatchPresentation;
     
    308317        public void Initialize()
    309318        {
     319            settings.Initialize();
    310320        }
    311321
Note: See TracChangeset for help on using the changeset viewer.