Beispiel #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!");
            //}
        }
Beispiel #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!");
     }
 }
Beispiel #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);
        }
 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!");
     }
 }
Beispiel #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;
 }