Beispiel #1
0
        private static void setADLVersion(OpenCLDevice device)
        {
            int available = 0, enabled = 0, ADLVersion = 0;

            device.ADLVersion = -1;
            if (ADL.ADL2_Overdrive_Caps != null &&
                ADL.ADL2_Overdrive_Caps(ADL2Context, device.ADLAdapterIndex, ref available, ref enabled, ref ADLVersion) == ADL.ADL_SUCCESS &&
                available != 0)
            {
                device.ADLVersion = ADLVersion;
            }
        }