# Setup logging logging.config.fileConfig('logging.conf') log = logging.getLogger('stripminer') # Collection GPU card information log.info('Collecting available GPU information') os.environ['DISPLAY'] = ':0' devices = ADL.getNumGPU() # Fire off mining workers for each device processes = [] for device in devices: gpuidx = device['GPU'] ADL.setIndex(gpuidx) log.info('Device[GPU%d] %s (Core: %d, Memory: %d, Fan %d%%)', gpuidx, device['Name'], ADL.getCoreClockSpeed(), ADL.getMemoryClockSpeed(), ADL.getFanSpeed()) if cParser.has_section('ADL_GPU%d' % gpuidx): log.debug('Found ADL settings for GPU%d', gpuidx) if cParser.has_option('ADL_GPU%d' % gpuidx, 'core'): core = cParser.getint('ADL_GPU%d' % gpuidx, 'core') log.debug('Device[GPU%d] setting Core to %d Mhz', gpuidx, core) ADL.setCoreClockSpeed(2, core) if cParser.has_option('ADL_GPU%d' % gpuidx, 'memory'): memory = cParser.getint('ADL_GPU%d' % gpuidx, 'memory') log.debug('Device[GPU%d] setting Memory to %d Mhz', gpuidx, memory) ADL.setMemoryClockSpeed(1, memory) ADL.setMemoryClockSpeed(2, memory) if cParser.has_option('ADL_GPU%d' % gpuidx, 'fan'): fan = cParser.getint('ADL_GPU%d' % gpuidx, 'fan') log.debug('Device[GPU%d] setting Fan to %d%%', gpuidx, fan)
** FAN SPEED IS NOT ADVISABLE! ** ** ALL ADL code has been taken from AMDOverdriveCtrl ( http://amdovdrvctrl.sourceforge.net/ ) ** ** AMDOverdriveCtrl Author: Thorsten Gilling ([email protected]) ** ** pyADL.py ** This is just a simple python extended library for AMD ADL ** Author: netxshare - http://www.bitshift.io ** ** 1CWddfhXagPoWgzUCs7oVHFjwBmqbAoJRr ** -------------------------------------------------------------------------*/ ''' import ADL ADL.SetupADL(0) print ADL.getGPULoad() print ADL.getTemp() print ADL.getFanSpeed() print ADL.getFanRPM() print ADL.getCoreClockSpeed() print ADL.getMemoryClockSpeed() print ADL.getVoltage() ADL.setFanSpeed(75) #ADL.setCoreClockSpeed(2,900) ADL.SetupADL(5) # Switch to Second GPU on 6990 #ADL.setCoreClockSpeed(2,900) print ADL.getTemp() print ADL.getGPULoad() #ADL.setMemoryClockSpeed(2,1000)