Skip to content

Conversation

@skiselev
Copy link

@skiselev skiselev commented Dec 8, 2025

Apparently the code tries to send an uninitialized buffer, which results in a build error with Intel Compiler 2025.3: ../src_c/IMB_bandwidth.c:160:23: error: variable 'ack' is uninitialized when passed as a const pointer argument here [-Werror,-Wuninitialized-const-pointer]
160 | MPI_Send(&ack, 1, MPI_CHAR, source, s_tag, c_info->communicator);
| ^~~
../src_c/IMB_bandwidth.c:288:23: error: variable 'ack' is uninitialized when passed as a const pointer argument here [-Werror,-Wuninitialized-const-pointer]
288 | MPI_Send(&ack, 1, MPI_CHAR, source, s_tag, c_info->communicator);
|

Initialize the ack variable to fix the issue

Apparently the code tries to send an uninitialized buffer, which results in a build error with Intel Compiler 2025.3:
../src_c/IMB_bandwidth.c:160:23: error: variable 'ack' is uninitialized when passed as a const pointer argument here [-Werror,-Wuninitialized-const-pointer]
  160 |             MPI_Send(&ack, 1, MPI_CHAR, source, s_tag, c_info->communicator);
      |                       ^~~
../src_c/IMB_bandwidth.c:288:23: error: variable 'ack' is uninitialized when passed as a const pointer argument here [-Werror,-Wuninitialized-const-pointer]
  288 |             MPI_Send(&ack, 1, MPI_CHAR, source, s_tag, c_info->communicator);
      |                

Initialize the ack variable to fix the issue
Apparently the code tries to send an uninitialized buffer, which results in a build error with Intel Compiler 2025.3:
../src_c/IMB_open_close.c:119:60: error: variable 'dum' is uninitialized when passed as a const pointer argument here [-Werror,-Wuninitialized-const-pointer]
  119 |             MPI_ERRHAND(MPI_File_write(c_info->fh, (void*)&dum, 1, c_info->etype, &stat));
      |  

Initialize the dum variable to fix the issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant