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

Undo changes to `fmpi_task_generic.h` wrongly made in 14ab80d4

parent 14ab80d4
No related branches found
No related tags found
No related merge requests found
......@@ -42,14 +42,7 @@ int FUNC##_##N( \
assert(ctx != NULL); \
assert(args != NULL); \
assert(args->cnt == N); \
if(args->out.type.derived == FMPI_TYPE_ARRAY) { \
if(args->out.type.base == FMPI_TYPE_u8) { \
struct futhark_u8_1d ** out = &args->out.start; \
return FMPI_TASK_FUNC_##N(FUNC, ctx->fut->ctx, out, args); \
} \
} else { \
} \
return FMPI_TASK_FUNC_##N(FUNC, ctx->fut->ctx, args->out.start, args); \
return FMPI_TASK_FUNC_##N(FUNC, ctx->fut->ctx, args); \
}
#define FMPI_TASK_REGISTER_IMPL(ctx, func, stencil, ...) \
......@@ -69,11 +62,11 @@ int FUNC##_##N( \
.cnt = CPL_ARG_COUNT(__VA_ARGS__) \
})
#define FMPI_TASK_FUNC_0(func, ctx, out, args) \
#define FMPI_TASK_FUNC_0(func, ctx, args) \
futhark_entry_##func(ctx, args->out.start)
#define FMPI_TASK_FUNC_1(func, ctx, out, args) \
futhark_entry_##func(ctx, out, \
#define FMPI_TASK_FUNC_1(func, ctx, args) \
futhark_entry_##func(ctx, args->out.start, \
args->in[00].start \
)
#define FMPI_TASK_FUNC_2(func, ctx, args) \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment