Exemplo n.º 1
0
 public MergingMethod(MergingDevice eDeviceType, int nDeviceNumber)
 {
     _eDeviceType       = eDeviceType;
     _nDeviceNumber     = nDeviceNumber;
     _nHash             = (int)_eDeviceType * 1000 + _nDeviceNumber;
     nPMTripleIndexSync = byte.MaxValue;
 }
Exemplo n.º 2
0
        public MergingMethod(XmlNode cXmlNode)
        {
            if (null != cXmlNode.AttributeValueGet("cuda", false))
            {
                bool bCuda = cXmlNode.AttributeGet <bool>("cuda");
                _eDeviceType   = bCuda ? MergingDevice.CUDA : MergingDevice.DisCom;
                _nDeviceNumber = 0;
            }
            else
            {
                _eDeviceType   = cXmlNode.AttributeOrDefaultGet <MergingDevice>("merging", MergingDevice.DisCom);
                _nDeviceNumber = cXmlNode.AttributeOrDefaultGet <int>("merging_id", 0);
            }

            _nHash             = (int)_eDeviceType * 1000 + _nDeviceNumber;
            nPMTripleIndexSync = byte.MaxValue;
        }