def main(): proc() res = [] for point in points: res.append([point, points[point], distances[point]]) print max_distance, min_distance db.write_data('overhead-output_mt.txt', res)
def main(): proc() res = [] for point in dict(points): res.append([point, points[point], distances[point]]) print max_distance.value, min_distance.value db.write_data('overhead-output_mp.txt', res)
def make(): for i in range(LIST_LEN): a = random.randint(RANDOM_START, RANDOM_END) b = random.randint(RANDOM_START, RANDOM_END) if a == b: continue distance = random.randint(RANDOM_START, RANDOM_END) t = [a, b, distance] target_list.append(t) db.write_data(DATA_FILENAME, target_list)
def main(): #import os #print os.getpid() set_globals() proc() db.write_data('memory_bound-output_mp.txt', list(matrix_c))
def main(): global target_list target_list = db.read_data(DATA_FILENAME) proc() output_filename = db.get_output_path(DATA_FILENAME, 'output_mt') db.write_data(output_filename, target_list)
def main(): set_globals() proc() db.write_data('memory_bound-output_mt.txt', list(matrix_c))
def make(): matrix_a_data = rand_matrix(MATRIX_SIZE, RANDOM_SIZE) matrix_b_data = rand_matrix(MATRIX_SIZE, RANDOM_SIZE) db.write_data(MATRIX_A_DATA_FILENAME, list(matrix_a_data)) db.write_data(MATRIX_B_DATA_FILENAME, list(matrix_b_data))