Skip to content
Snippets Groups Projects
Verified Commit ca4f2101 authored by raphael.bach's avatar raphael.bach
Browse files

Add error check in `fmpi_task_run_sync()`

parent ea9a71b7
Branches
Tags
No related merge requests found
...@@ -137,6 +137,7 @@ int fmpi_task_run_sync( ...@@ -137,6 +137,7 @@ int fmpi_task_run_sync(
assert(task != NULL); assert(task != NULL);
const int err_id = task->func(ctx, &task->args); const int err_id = task->func(ctx, &task->args);
fmpi_futhark_sync(ctx->fut); fmpi_futhark_sync(ctx->fut);
fmpi_futhark_check_error(ctx->fut, "task->func");
if(task->args.out.type.derived == FMPI_TYPE_ARRAY) { if(task->args.out.type.derived == FMPI_TYPE_ARRAY) {
void * out = fmpi_futhark_get_data_sync( void * out = fmpi_futhark_get_data_sync(
ctx->fut, task->args.out_raw, task->args.out.start, ctx->fut, task->args.out_raw, task->args.out.start,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment