lib/opentuner/streamjit/tuner2.py
def save_final_config(self, configuration):
		'''called at the end of autotuning with the best resultsdb.models.Configuration'''
		cfg = dict.copy(configuration.data)
		print "\033[32;1mFinal Config...\033[0m"
		(state, time) = self.runApp(cfg)
		conn = sqlite3.connect('streamjit.db', 100)
		cur = conn.cursor()
		query = 'INSERT INTO FinalResult VALUES ("%s","%s", %d, "%s", "%f")'%(self.program, cfg, self.trycount, state, float(time))
		cur.execute(query)
		conn.commit()
called at the end of autotuning with the best resultsdb.models.Configuration
called at the end of autotuning with the best resultsdb.models.Configuration
called at the end of autotuning with the best resultsdb . models . Configuration
def save_final_config(self, configuration):
		cfg = dict.copy(configuration.data)
		print "\033[32;1mFinal Config...\033[0m"
		(state, time) = self.runApp(cfg)
		conn = sqlite3.connect('streamjit.db', 100)
		cur = conn.cursor()
		query = 'INSERT INTO FinalResult VALUES ("%s","%s", %d, "%s", "%f")'%(self.program, cfg, self.trycount, state, float(time))
		cur.execute(query)
		conn.commit()
def save_final_config ( self , configuration ) : cfg = dict . copy ( configuration . data ) print "\033[32;1mFinal Config...\033[0m" ( state , time ) = self . runApp ( cfg ) conn = sqlite3 . connect ( 'streamjit.db' , 100 ) cur = conn . cursor ( ) query = 'INSERT INTO FinalResult VALUES ("%s","%s", %d, "%s", "%f")' % ( self . program , cfg , self . trycount , state , float ( time ) ) cur . execute ( query ) conn . commit ( )
called at the end of autotuning with the best resultsdb.models.Configuration
called at the end of autotuning with the best resultsdb . models . Configuration
'''called at the end of autotuning with the best resultsdb.models.Configuration'''
self
configuration