Skip to content

Commit

Permalink
Implement Wasi's feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
philipmarshall21 committed Mar 15, 2024
1 parent f5dbcee commit ebbaf85
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion test/shmemx/c11_test_shmem_ibget.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
} while (0)

#else
#define TEST_SHMEM_GET(USE_CTX, TYPE)
#define TEST_SHMEM_IBGET(USE_CTX, TYPE)

#endif

Expand Down
2 changes: 1 addition & 1 deletion test/shmemx/c11_test_shmem_ibput.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
} while (0)

#else
#define TEST_SHMEM_PUT(USE_CTX, TYPE)
#define TEST_SHMEM_IBPUT(USE_CTX, TYPE)

#endif

Expand Down
7 changes: 3 additions & 4 deletions test/shmemx/cxx_test_shmem_ibget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@

#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>
#include <stdio.h>
#include <shmem.h>
#include <shmemx.h>
Expand All @@ -49,11 +48,11 @@
\
if (USE_CTX) \
shmemx_ctx_##TYPENAME##_ibget(SHMEM_CTX_DEFAULT, local, \
remote, 1, 1, 1, 10, \
(mype + 1) % npes); \
remote, 1, 1, 1, 10, \
(mype + 1) % npes); \
else \
shmemx_##TYPENAME##_ibget(local, remote, 1, 1, 1, 10, \
(mype + 1) % npes); \
(mype + 1) % npes); \
\
for (int i = 0; i < 10; i++) \
if (local[i] != (TYPE)((mype + 1) % npes)) { \
Expand Down
7 changes: 3 additions & 4 deletions test/shmemx/cxx_test_shmem_ibput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@

#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>
#include <stdio.h>
#include <shmem.h>
#include <shmemx.h>
Expand All @@ -48,11 +47,11 @@
\
if (USE_CTX) \
shmemx_ctx_##TYPENAME##_ibput(SHMEM_CTX_DEFAULT, remote, \
local, 1, 1, 1, 10, \
(mype + 1) % npes); \
local, 1, 1, 1, 10, \
(mype + 1) % npes); \
else \
shmemx_##TYPENAME##_ibput(remote, local, 1, 1, 1, 10, \
(mype + 1) % npes); \
(mype + 1) % npes); \
\
shmem_barrier_all(); \
for (int i = 0; i < 10; i++) \
Expand Down

0 comments on commit ebbaf85

Please sign in to comment.