1
1

coll/libnbc: Suppress compiler warnings

Signed-off-by: KAWASHIMA Takahiro <t-kawashima@jp.fujitsu.com>
Этот коммит содержится в:
KAWASHIMA Takahiro 2018-07-12 14:41:33 +09:00
родитель 34bc77747c
Коммит 37a05e74aa
3 изменённых файлов: 4 добавлений и 3 удалений

Просмотреть файл

@ -388,7 +388,8 @@ OBJ_CLASS_INSTANCE(ompi_coll_libnbc_module_t,
static int static int
request_start(size_t count, ompi_request_t ** requests) request_start(size_t count, ompi_request_t ** requests)
{ {
int i, res; int res;
size_t i;
NBC_DEBUG(5, " ** request_start **\n"); NBC_DEBUG(5, " ** request_start **\n");

Просмотреть файл

@ -50,7 +50,7 @@ static int nbc_alltoallv_init(const void* sendbuf, const int *sendcounts, const
MPI_Aint sndext, rcvext; MPI_Aint sndext, rcvext;
NBC_Schedule *schedule; NBC_Schedule *schedule;
char *rbuf, *sbuf, inplace; char *rbuf, *sbuf, inplace;
ptrdiff_t gap, span; ptrdiff_t gap = 0, span;
void * tmpbuf = NULL; void * tmpbuf = NULL;
ompi_coll_libnbc_module_t *libnbc_module = (ompi_coll_libnbc_module_t*) module; ompi_coll_libnbc_module_t *libnbc_module = (ompi_coll_libnbc_module_t*) module;

Просмотреть файл

@ -294,7 +294,7 @@ static inline int a2aw_sched_pairwise(int rank, int p, NBC_Schedule *schedule,
static inline int a2aw_sched_inplace(int rank, int p, NBC_Schedule *schedule, static inline int a2aw_sched_inplace(int rank, int p, NBC_Schedule *schedule,
void *buf, const int *counts, const int *displs, void *buf, const int *counts, const int *displs,
struct ompi_datatype_t * const * types) { struct ompi_datatype_t * const * types) {
ptrdiff_t gap; ptrdiff_t gap = 0;
int res; int res;
for (int i = 1; i < (p+1)/2; i++) { for (int i = 1; i < (p+1)/2; i++) {