<s> import subprocess as sp <EOL> total_flops = <NUM_LIT> <EOL> output = [ ] <EOL> for kernal in [ '<STR_LIT>' ] : <EOL> print '<STR_LIT>' % kernal <EOL> for k in range ( <NUM_LIT:4> , <NUM_LIT:15> , <NUM_LIT:2> ) : <EOL> k = <NUM_LIT:2> ** k <EOL> iter_total_flops = int ( total_flops / k ** <NUM_LIT:3> ) <EOL> if iter_total_flops == <NUM_LIT:0> : <EOL> continue <EOL> cmd = '<STR_LIT>' + str ( k ) + '<STR_LIT:U+0020>' + str ( iter_total_flops ) + '<STR_LIT:U+0020>' + kernal <EOL> proc = sp . Popen ( cmd , shell = True , stdin = sp . PIPE , stdout = sp . PIPE , stderr = sp . STDOUT , close_fds = True ) <EOL> data = proc . stdout . read ( ) <EOL> print data . strip ( ) </s>
