예제 #1
0
        public int AdapterIndex; // init this with the ADL

        public AmdGpuDevice(OpenCLDevice openClSubset, bool isOldDriver, string infSection, bool driverDisableAlgo)
        {
            DriverDisableAlgos = driverDisableAlgo;
            InfSection         = infSection;
            if (openClSubset != null)
            {
                _openClSubset = openClSubset;
            }
            // Check for optimized version
            // first if not optimized
            Helpers.ConsolePrint("AmdGpuDevice", "List: " + _openClSubset._CL_DEVICE_NAME);
            //if (isOldDriver) {
            //    UseOptimizedVersion = false;
            //    Helpers.ConsolePrint("AmdGpuDevice", "GPU (" + _openClSubset._CL_DEVICE_NAME + ") is optimized => NOO! OLD DRIVER.");
            //} else if (!( _openClSubset._CL_DEVICE_NAME.Contains("Bonaire")
            //    || _openClSubset._CL_DEVICE_NAME.Contains("Fiji")
            //    || _openClSubset._CL_DEVICE_NAME.Contains("Hawaii")
            //    || _openClSubset._CL_DEVICE_NAME.Contains("Pitcairn")
            //    || _openClSubset._CL_DEVICE_NAME.Contains("Tahiti")
            //    || _openClSubset._CL_DEVICE_NAME.Contains("Tonga"))) {
            //    UseOptimizedVersion = false;
            //    Helpers.ConsolePrint("AmdGpuDevice", "GPU (" + _openClSubset._CL_DEVICE_NAME + ") is optimized => NOO!");
            //} else {
            //    UseOptimizedVersion = true;
            //    Helpers.ConsolePrint("AmdGpuDevice", "GPU (" + _openClSubset._CL_DEVICE_NAME + ") is optimized => YES!");
            //}
        }
예제 #2
0
 public AmdGpuDevice(OpenCLDevice openClSubset, bool isOldDriver)
 {
     _openClSubset = openClSubset;
     // Check for optimized version
     // first if not optimized
     Helpers.ConsolePrint("AmdGpuDevice", "List: " + _openClSubset._CL_DEVICE_NAME);
     if (isOldDriver)
     {
         UseOptimizedVersion = false;
         Helpers.ConsolePrint("AmdGpuDevice", "GPU (" + _openClSubset._CL_DEVICE_NAME + ") is optimized => NOO! OLD DRIVER.");
     }
     else if (!(_openClSubset._CL_DEVICE_NAME.Contains("Bonaire") ||
                _openClSubset._CL_DEVICE_NAME.Contains("Fiji") ||
                _openClSubset._CL_DEVICE_NAME.Contains("Hawaii") ||
                _openClSubset._CL_DEVICE_NAME.Contains("Pitcairn") ||
                _openClSubset._CL_DEVICE_NAME.Contains("Tahiti") ||
                _openClSubset._CL_DEVICE_NAME.Contains("Tonga")))
     {
         UseOptimizedVersion = false;
         Helpers.ConsolePrint("AmdGpuDevice", "GPU (" + _openClSubset._CL_DEVICE_NAME + ") is optimized => NOO!");
     }
     else
     {
         UseOptimizedVersion = true;
         Helpers.ConsolePrint("AmdGpuDevice", "GPU (" + _openClSubset._CL_DEVICE_NAME + ") is optimized => YES!");
     }
 }
예제 #3
0
        internal AmdGpuDevice(OpenCLDevice openClSubset, string infSection, bool driverDisableAlgo, string name, string uuid)
        {
            DriverDisableAlgos = driverDisableAlgo;
            InfSection         = infSection;

            _openClSubset = openClSubset ?? new OpenCLDevice();

            DeviceName = name;
            Uuid       = uuid;

            // Check for optimized version
            // first if not optimized
            Helpers.ConsolePrint("AmdGpuDevice", "List: " + _openClSubset._CL_DEVICE_NAME);
        }
예제 #4
0
 public AmdGpuDevice(OpenCLDevice openClSubset, bool isOldDriver)
 {
     _openClSubset = openClSubset;
     // Check for optimized version
     // first if not optimized
     Helpers.ConsolePrint("AmdGpuDevice", "List: " + _openClSubset._CL_DEVICE_NAME);
     if (isOldDriver) {
         UseOptimizedVersion = false;
         Helpers.ConsolePrint("AmdGpuDevice", "GPU (" + _openClSubset._CL_DEVICE_NAME + ") is optimized => NOO! OLD DRIVER.");
     } else if (!( _openClSubset._CL_DEVICE_NAME.Contains("Bonaire")
         || _openClSubset._CL_DEVICE_NAME.Contains("Fiji")
         || _openClSubset._CL_DEVICE_NAME.Contains("Hawaii")
         || _openClSubset._CL_DEVICE_NAME.Contains("Pitcairn")
         || _openClSubset._CL_DEVICE_NAME.Contains("Tahiti")
         || _openClSubset._CL_DEVICE_NAME.Contains("Tonga"))) {
         UseOptimizedVersion = false;
         Helpers.ConsolePrint("AmdGpuDevice", "GPU (" + _openClSubset._CL_DEVICE_NAME + ") is optimized => NOO!");
     } else {
         UseOptimizedVersion = true;
         Helpers.ConsolePrint("AmdGpuDevice", "GPU (" + _openClSubset._CL_DEVICE_NAME + ") is optimized => YES!");
     }
 }
예제 #5
0
 internal AmdGpuDevice(OpenCLDevice openClSubset, bool driverDisableAlgo, string name, AmdBusIDInfo busIdInfo)
     : this(openClSubset, busIdInfo.InfSection, driverDisableAlgo, name, busIdInfo.Uuid)
 {
     Adl1Index = busIdInfo.Adl1Index;
     Adl2Index = busIdInfo.Adl2Index;
 }