public void Setup()
 {
     _platformId = OclHelper.GetPlatforms().First();
     _deviceId   = OclHelper.GetDevicesForPlatform(_platformId).First();
     _contextId  = OclHelper.CreateContext(_platformId, new[] { _deviceId });
     _queueId    = OclHelper.CreateCommandQueue(_contextId, _deviceId);
     _bufferId   = OclHelper.CreateBuffer <int>(_contextId, 1200 * 1920);
     _pattern    = new int[1] {
         13
     };
 }
        public async Task Setup()
        {
            _platformId = OclHelper.GetPlatforms().First();
            _deviceId   = OclHelper.GetDevicesForPlatform(_platformId).First();
            _contextId  = OclHelper.CreateContext(_platformId, new[] { _deviceId });
            _queueId    = OclHelper.CreateCommandQueue(_contextId, _deviceId);
            _programId  = OclHelper.CreateProgram(_contextId, Kernels.multiply);

            await OclHelper.BuildProgram(_programId, _deviceId);

            _kernelId = OclHelper.CreateKernel(_programId, "multiply");
        }