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

Fix bug in `FMPI_FUTHARK_NEW_{2,3}()` where `x` and `y` params were swapped

Futhark functions dealing with arrays takes dimensions parameters in
order from innermost to outermost.
parent 4202ad35
Branches
Tags
No related merge requests found
......@@ -58,10 +58,10 @@ struct fmpi_futhark_ctx;
((void)(y), (void)(z), futhark_new_##T##_1d(ctx, array, (int64_t)(x)))
#define FMPI_FUTHARK_NEW_2(T, ctx, array, x, y, z) \
((void)(z), futhark_new_##T##_2d(ctx, array, (int64_t)(x), (int64_t)(y)))
((void)(z), futhark_new_##T##_2d(ctx, array, (int64_t)(y), (int64_t)(x)))
#define FMPI_FUTHARK_NEW_3(T, ctx, array, x, y, z) \
futhark_new_##T##_3d(ctx, array, (int64_t)(x), (int64_t)(y), (int64_t)(z))
futhark_new_##T##_3d(ctx, array, (int64_t)(z), (int64_t)(y), (int64_t)(x))
#define FMPI_FUTHARK_DECLARATION(D, T) \
void * fmpi_futhark_new_##D##d_##T( \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment