From 9fc8bd07d6a33435c2e0da921bb92a95c624ba12 Mon Sep 17 00:00:00 2001 From: "raphael.bach" <raphael.bach@etu.hesge.ch> Date: Tue, 28 Jun 2022 20:28:02 +0200 Subject: [PATCH] Update `rule-110` example --- examples/rule_110/main.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/examples/rule_110/main.c b/examples/rule_110/main.c index 05469ec..d5006fd 100644 --- a/examples/rule_110/main.c +++ b/examples/rule_110/main.c @@ -1,5 +1,4 @@ // C Standard Library -#include <assert.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> @@ -31,13 +30,11 @@ int main(int argc, char * argv[]) fmpi_data_1d_in(ctx, in, in_size) ); for(size_t i = 0; i < STEP_CNT; i++) { - const int err = fmpi_run_task(ctx, &rule_110_task); - if(err != FMPI_SUCCESS) { - printf("Error rank=%d: fmpi_task_run_sync()\n", fmpi_world_rank(ctx)); + if(fmpi_run_task(ctx, &rule_110_task) != FMPI_SUCCESS) { + printf("Error rank=%d: fmpi_run_task()\n", fmpi_world_rank(ctx)); } } - const int err = fmpi_task_finalize(ctx, &rule_110_task, FMPI_TASK_OP_GATHER); - if(err != FMPI_SUCCESS) { + if(fmpi_task_finalize(ctx, &rule_110_task, FMPI_TASK_OP_GATHER) != FMPI_SUCCESS) { printf("Error rank=%d: fmpi_task_finalize()\n", fmpi_world_rank(ctx)); } if(fmpi_is_root(ctx)) { -- GitLab