Project

General

Profile

Cleanup #1192

AMPI is missing const qualifiers on buffer arguments to communication routines

Added by Sam White almost 3 years ago. Updated about 2 years ago.

Status:
Merged
Priority:
Low
Category:
AMPI
Target version:
Start date:
08/27/2016
Due date:
% Done:

0%


Description

All Gather, Scatter, Alltoall, Reduce, and Scan variants, as well as MPI_Sendrecv and possibly others, are missing const qualifiers on buffer arguments, resulting in warnings like this when users compile their code with ampicc:

warning: passing 'const void *' to parameter of type 'void *' discards qualifiers
      [-Wincompatible-pointer-types-discards-qualifiers]
    return MPI_Scan(sendbuf, recvbuf, count, datatype, op, comm);

History

#1 Updated by Sam White almost 3 years ago

AMPI currently doesn't use const on sendbuf arguments so that we can handle MPI_BOTTOM and MPI_IN_PLACE in the easiest way possible.

#2 Updated by Sam White almost 3 years ago

  • Priority changed from Normal to Low

#3 Updated by Sam White almost 3 years ago

  • Tracker changed from Bug to Cleanup

#4 Updated by Sam White over 2 years ago

  • Target version changed from 6.8.0 to 6.8.1

#5 Updated by Sam White about 2 years ago

  • Target version changed from 6.8.1 to 6.8.0
  • Assignee changed from Sam White to Matthias Diener
  • Status changed from New to Implemented

#6 Updated by Sam White about 2 years ago

  • Status changed from Implemented to Merged

Also available in: Atom PDF