コード例 #1
0
                nnnb = 0
            else:
                continue

        input_folder = '/data/i-am-mkbera/data/multilevel-cache-sim/{}_sharing_history/{}MB'.format(
            l, cs)
        output_folder = '/data/i-am-mkbera/data/multilevel-cache-sim/{}analysis/{}MB'.format(
            l, cs)

        file_name = '{}-{}-{}-{}-{}-{}'.format(p, nb, pn, pnnb, nn, nnnb)

        input_file = '{}/{}/{}.{}_sharing_history'.format(
            input_folder, s, p, l)
        output_file = '{}/{}/{}.{}analysis'.format(output_folder, s, file_name,
                                                   l)

        command = '{} {} {} {} {} {} {} {}'.format(
            exe,  # executable
            input_file,  # input file name
            output_file,  # output file name 
            nb,  # num bits
            pn,  # prev nbr
            pnnb,  # prev nbr num bits
            nn,  # next nbr
            nnnb,  # next nbr num bits
        )

        cmd_list.append(command)

rpp(cmd_list, 10)
コード例 #2
0
         'freqmine',
         'raytrace',
         'streamcluster',
         'vips', 
         # 'swaptions', ERROR build
         # 'dedup', ERROR build
         # 'x264', ERROR run
 ]


exe = './L1L2cache_LRU'

input_folder = '../../../pin-3.6/source/tools/multilevel-cache-sim-pintool/output'
output_folder = '../../../data/multilevel-cache-sim/LLCtrace'


commands = []
for p in progs:

	input_file =  '{}/simmedium/addrtrace_{}.out'.format(input_folder, p) 
	output_file = '{}/simmedium/{}.LLCtrace'.format(output_folder, p)

	cmd = '{} {} {}'.format(exe, input_file, output_file)

	commands.append(cmd)

rpp(commands, 10)



コード例 #3
0
from itertools import product as zip_prod
import sys
sys.path.insert(0, '/data/i-am-mkbera/')
from utilities.parallel_prog import run_parallel_progs as rpp

sizes = [
    'simsmall',
    'simmedium',
]

levels = [
    'LLC',
    'L2',
]

cache_sizes = [
    4,
    8,
]

cmd_list = []
for x in zip_prod(sizes, levels, cache_sizes):
    s, l, cs = x

    command = 'python LLCanalysis_table.py --size {} --level {} --cache-size {}'.format(
        s, l, cs)
    cmd_list.append(command)

rpp(cmd_list, 2)
コード例 #4
0
]

cache_sizes = [4, 8]

exe = './LLC_MIN_meta'

cmd_list = []
for p in progs:
    for s in sizes:
        for cs in cache_sizes:
            for l in levels:
                input_folder = '/data/i-am-mkbera/data/multilevel-cache-sim/{}trace'.format(
                    l)
                output_folder = '/data/i-am-mkbera/data/multilevel-cache-sim/{}meta/{}MB'.format(
                    l, cs)
                history_folder = '/data/i-am-mkbera/data/multilevel-cache-sim/{}_sharing_history/{}MB'.format(
                    l, cs)

                input_file = '{}/{}/{}.{}trace'.format(input_folder, s, p, l)
                output_file = '{}/{}/{}.{}meta'.format(output_folder, s, p, l)
                sharing_history_file = '{}/{}/{}.{}_sharing_history'.format(
                    history_folder, s, p, l)
                LLC_NUMSET = cs * 1024

                command = '{} {} {} {} {}'.format(exe, input_file, output_file,
                                                  sharing_history_file,
                                                  LLC_NUMSET)
                cmd_list.append(command)

rpp(cmd_list, 17)
コード例 #5
0
    'bodytrack',
    'canneal',
    'facesim',
    'ferret',
    'fluidanimate',
    'freqmine',
    'raytrace',
    'streamcluster',
    'vips',
    # 'swaptions', ERROR build
    # 'dedup', ERROR build
    # 'x264', ERROR run
]

exe = './L1cache_LRU'

input_folder = '../../../pin-3.6/source/tools/multilevel-cache-sim-pintool/output'
output_folder = '../../../data/multilevel-cache-sim/L2trace'

commands = []
for p in progs:

    input_file = '{}/simmedium/addrtrace_{}.out'.format(input_folder, p)
    output_file = '{}/simmedium/{}.L2trace'.format(output_folder, p)

    cmd = '{} {} {}'.format(exe, input_file, output_file)

    commands.append(cmd)

rpp(commands, 12)