#!/usr/bin/python3 import os from common_exp import run_test cpu_filter_values = [0, 1] gpu_values = [None, 1] os.system('make') os.system('mkdir -p results/expensiveop') for cpu_filter in cpu_filter_values: for gpu in gpu_values: if gpu == 1 and cpu_filter == 0: continue postfix = "gpu" if gpu is not None else "cpu" for s in [0, 5, 10, 25, 50, 75, 100, 150, 200]: file = "expensiveop/results-expensiveop_{}.csv".format(postfix) run_test(fname=file, selectivity="1", slowdown=s, gpu_devices=gpu, cpu_filter=cpu_filter) file = "expensiveop/results-expensiveop_{}.csv".format(postfix) run_test(fname=file, selectivity="5", slowdown=s, gpu_devices=gpu, cpu_filter=cpu_filter)
#!/usr/bin/python3 import os from common_exp import run_test os.system('make') os.system('mkdir -p results/morsel') for cms in [16 * 1024, 128 * 1024, 1024 * 1024]: for gms in [128 * 1024, 1024 * 1024, 16 * 1024 * 1024, 128 * 1024 * 1024]: file = "morsel/results-morsel.csv" run_test(fname=file, selectivity="5", gpu_devices="1", cpu_filter="1", cpu_morsel_size=cms, gpu_morsel_size=gms)
('33554432'): 4194304, ('16777216'): 2097152, ('8388608'): 1048576 } default_probe_scale = 64 os.system('make') os.system('mkdir -p results/op_vs_bfsize') for s in [0, 50, 100, 200, 400, 800]: # calibrate for filter_size, build_size in my_dict.items(): tw = run_test(fname="tempfile", selectivity="1", slowdown=s, build_size=int(build_size), probe_size=int(536870912 * default_probe_scale / 8), measure_tw=1, num_payloads=1) for cpu_filter in cpu_filter_values: for gpu in gpu_values: postfix = "gpu" if gpu is not None else "cpu" file = "op_vs_bfsize/results-op_vs_bfsize{}.csv".format( postfix) run_test(fname=file, selectivity="1", slowdown=s, gpu_devices=gpu, cpu_filter=cpu_filter,
#!/usr/bin/python3 import os from common_exp import run_test from common_exp import default_filter_size cpu_filter_values = [0, 1] gpu_values = [None, 1] streams = [1, 2, 4, 6, 8, 16] keys_on_gpu = [0, 1] selectivities = list(range(0, 100, 5)) selectivities.append(1) cpu_filter = 1 gpu = 1 os.system('make') os.system('mkdir -p results/op_vs_bfsize') for select in selectivities: for stream in streams: for key_on_gpu in keys_on_gpu: postfix = "gpu" if key_on_gpu == 0 else "not_gpu" file = "op_vs_bfsize/results-stream_new{}.csv".format(postfix) run_test(fname=file, selectivity=select, keys_on_gpu=key_on_gpu, gpu_devices=1, cpu_filter=cpu_filter, streams=stream)
only_keys_on_gpu = False if only_keys_on_gpu: gpu = 1 cpu_filter = 1 postfix = "cpu" if gpu is not None: postfix = "gpu" if keys_on_gpu: postfix = postfix + "keys" for selectivity in selectivities: file = "selectivity/results-selectivity_{}.csv".format(postfix) run_test(fname=file, selectivity=selectivity, gpu_devices=gpu, cpu_filter=cpu_filter, keys_on_gpu=keys_on_gpu) if not only_keys_on_gpu: for keys_on_gpu in [True, None]: for cpu_filter in cpu_filter_values: for gpu in gpu_values: if gpu is None and keys_on_gpu is not None: continue postfix = "cpu" if gpu is not None: postfix = "gpu" keys_on_gpu_val = 0 if keys_on_gpu: