def compss_barrier(no_more_tasks=False): """ Perform a barrier when called. Stop until all the submitted tasks have finished. :param no_more_tasks: No more tasks boolean """ barrier(no_more_tasks)
def test_terasort_example(): result_path = tempfile.mkdtemp() current_path = os.path.dirname(os.path.abspath(__file__)) terasort_dataset_path = os.path.join(current_path, "dataset", "terasort") argv_backup = sys.argv sys.argv = [EXAMPLES_NAME, terasort_dataset_path, result_path] terasort() sys.argv = argv_backup if in_pycompss(): barrier() time.sleep(5) # TODO: Why is this sleep needed? # Clean the results directory shutil.rmtree(result_path)
def compss_barrier(): """ Perform a barrier when called. Stop until all the submitted tasks have finished. """ barrier()