示例#1
0
        /// <summary>
        /// Construct an OpenCL device.
        /// </summary>
        ///
        /// <param name="platform">The platform.</param>
        /// <param name="device">The device.</param>
        public EncogCLDevice(EncogCLPlatform platform,
                             ComputeDevice device)
        {
            this.platform = platform;
            Enabled       = true;
            this.device   = device;
            Name          = this.device.Name;
            Vender        = this.device.Vendor;

            this.cpu   = (this.device.Type == ComputeDeviceTypes.Cpu);
            this.queue = new EncogCLQueue(this);
        }
        /// <summary>
        /// Construct an OpenCL device.
        /// </summary>
        ///
        /// <param name="platform">The platform.</param>
        /// <param name="device">The device.</param>
        public EncogCLDevice(EncogCLPlatform platform,
                ComputeDevice device)
        {
            this.platform = platform;
            Enabled = true;
            this.device = device;
            Name = this.device.Name;
            Vender = this.device.Vendor;

            this.cpu = (this.device.Type == ComputeDeviceTypes.Cpu);
            this.queue = new EncogCLQueue(this);
        }