oneAPI 2023 & 2024 icx raises warnings with mpich/4.1.2
Here are the warnings I'm seeing:
space.c:1698:14: warning: argument type 'const size_t *' (aka 'const unsigned long *') doesn't match specified 'MPI' type tag that requires 'long long *' [-Wtype-safety]
1698 | MPI_Exscan(&local_nr_parts, &offset_parts, 1, MPI_LONG_LONG_INT, MPI_SUM,
| ^~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~
space.c:1700:14: warning: argument type 'const size_t *' (aka 'const unsigned long *') doesn't match specified 'MPI' type tag that requires 'long long *' [-Wtype-safety]
1700 | MPI_Exscan(&local_nr_sinks, &offset_sinks, 1, MPI_LONG_LONG_INT, MPI_SUM,
| ^~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~
space.c:1702:14: warning: argument type 'const size_t *' (aka 'const unsigned long *') doesn't match specified 'MPI' type tag that requires 'long long *' [-Wtype-safety]
1702 | MPI_Exscan(&local_nr_sparts, &offset_sparts, 1, MPI_LONG_LONG_INT, MPI_SUM,
| ^~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~
space.c:1704:14: warning: argument type 'const size_t *' (aka 'const unsigned long *') doesn't match specified 'MPI' type tag that requires 'long long *' [-Wtype-safety]
1704 | MPI_Exscan(&local_nr_bparts, &offset_bparts, 1, MPI_LONG_LONG_INT, MPI_SUM,
| ^~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~
space.c:1706:14: warning: argument type 'const size_t *' (aka 'const unsigned long *') doesn't match specified 'MPI' type tag that requires 'long long *' [-Wtype-safety]
1706 | MPI_Exscan(&local_nr_dm, &offset_dm, 1, MPI_LONG_LONG_INT, MPI_SUM,
| ^~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~
space.c:1708:14: warning: argument type 'size_t *' (aka 'unsigned long *') doesn't match specified 'MPI' type tag that requires 'long long *' [-Wtype-safety]
1708 | MPI_Exscan(&local_nr_dm_background, &offset_dm_background, 1,
| ^~~~~~~~~~~~~~~~~~~~~~~
1709 | MPI_LONG_LONG_INT, MPI_SUM, MPI_COMM_WORLD);
| ~~~~~~~~~~~~~~~~~
space.c:1710:14: warning: argument type 'size_t *' (aka 'unsigned long *') doesn't match specified 'MPI' type tag that requires 'long long *' [-Wtype-safety]
1710 | MPI_Exscan(&local_nr_nuparts, &offset_nuparts, 1, MPI_LONG_LONG_INT, MPI_SUM,
| ^~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~
space_unique_id.c:60:17: warning: argument type 'const int *' doesn't match specified 'MPI' type tag that requires 'int *' [-Wtype-safety]
60 | MPI_Allgather(&require_new_batch, 1, MPI_INT, all_requires, 1, MPI_INT,
| ^~~~~~~~~~~~~~~~~~ ~~~~~~~
engine.c:325:18: warning: argument type 'double (*)[4]' doesn't match specified 'MPI' type tag that requires 'double *' [-Wtype-safety]
325 | MPI_Gather(&timemem, 4, MPI_DOUBLE, timemems, 4, MPI_DOUBLE, 0,
| ^~~~~~~~ ~~~~~~~~~~
engine.c:1284:31: warning: argument type 'float (*)[5]' doesn't match specified 'MPI' type tag that requires 'float *' [-Wtype-safety]
1284 | MPI_Allreduce(MPI_IN_PLACE, &e->s->max_mpole_power,
| ^~~~~~~~~~~~~~~~~~~~~~
1285 | SELF_GRAVITY_MULTIPOLE_ORDER + 1, MPI_FLOAT, MPI_MAX,
| ~~~~~~~~~
task.c:1578:67: warning: argument type 'double (*)[33]' doesn't match specified 'MPI' type tag that requires 'double *' [-Wtype-safety]
1578 | int res = MPI_Reduce((engine_rank == 0 ? MPI_IN_PLACE : sum), sum, size,
| ^~~
1579 | MPI_DOUBLE, MPI_SUM, 0, MPI_COMM_WORLD);
| ~~~~~~~~~~
task.c:1582:64: warning: argument type 'double (*)[33]' doesn't match specified 'MPI' type tag that requires 'double *' [-Wtype-safety]
1582 | res = MPI_Reduce((engine_rank == 0 ? MPI_IN_PLACE : tsum), tsum, size,
| ^~~~
1583 | MPI_DOUBLE, MPI_SUM, 0, MPI_COMM_WORLD);
| ~~~~~~~~~~
task.c:1586:65: warning: argument type 'int (*)[33]' doesn't match specified 'MPI' type tag that requires 'int *' [-Wtype-safety]
1586 | res = MPI_Reduce((engine_rank == 0 ? MPI_IN_PLACE : count), count, size,
| ^~~~~
1587 | MPI_INT, MPI_SUM, 0, MPI_COMM_WORLD);
| ~~~~~~~
task.c:1590:63: warning: argument type 'double (*)[33]' doesn't match specified 'MPI' type tag that requires 'double *' [-Wtype-safety]
1590 | res = MPI_Reduce((engine_rank == 0 ? MPI_IN_PLACE : min), min, size,
| ^~~
1591 | MPI_DOUBLE, MPI_MIN, 0, MPI_COMM_WORLD);
| ~~~~~~~~~~
task.c:1594:64: warning: argument type 'double (*)[33]' doesn't match specified 'MPI' type tag that requires 'double *' [-Wtype-safety]
1594 | res = MPI_Reduce((engine_rank == 0 ? MPI_IN_PLACE : tmin), tmin, size,
| ^~~~
1595 | MPI_DOUBLE, MPI_MIN, 0, MPI_COMM_WORLD);
| ~~~~~~~~~~
task.c:1598:63: warning: argument type 'double (*)[33]' doesn't match specified 'MPI' type tag that requires 'double *' [-Wtype-safety]
1598 | res = MPI_Reduce((engine_rank == 0 ? MPI_IN_PLACE : max), max, size,
| ^~~
1599 | MPI_DOUBLE, MPI_MAX, 0, MPI_COMM_WORLD);
| ~~~~~~~~~~
task.c:1602:64: warning: argument type 'double (*)[33]' doesn't match specified 'MPI' type tag that requires 'double *' [-Wtype-safety]
1602 | res = MPI_Reduce((engine_rank == 0 ? MPI_IN_PLACE : tmax), tmax, size,
| ^~~~
1603 | MPI_DOUBLE, MPI_MAX, 0, MPI_COMM_WORLD);
| ~~~~~~~~~~
distributed_io.c:952:17: warning: argument type 'const long long *' doesn't match specified 'MPI' type tag that requires 'long long *' [-Wtype-safety]
952 | MPI_Allreduce(N, N_total, swift_type_count, MPI_LONG_LONG_INT, MPI_SUM, comm);
| ^ ~~~~~~~~~~~~~~~~~
distributed_io.c:957:14: warning: argument type 'const long long *' doesn't match specified 'MPI' type tag that requires 'long long *' [-Wtype-safety]
957 | MPI_Gather(N, swift_type_count, MPI_LONG_LONG_INT, N_counts, swift_type_count,
| ^ ~~~~~~~~~~~~~~~~~
distributed_io.c:1503:14: warning: argument type 'const long long *' doesn't match specified 'MPI' type tag that requires 'long long *' [-Wtype-safety]
1503 | MPI_Exscan(N, global_offsets, swift_type_count, MPI_LONG_LONG_INT, MPI_SUM,
| ^ ~~~~~~~~~~~~~~~~~
parallel_io.c:1606:14: warning: argument type 'size_t *' (aka 'unsigned long *') doesn't match specified 'MPI' type tag that requires 'long long *' [-Wtype-safety]
1606 | MPI_Exscan(N, offset, swift_type_count, MPI_LONG_LONG_INT, MPI_SUM, comm);
| ^ ~~~~~~~~~~~~~~~~~
fof_catalogue_io.c:532:17: warning: argument type 'const size_t *' (aka 'const unsigned long *') doesn't match specified 'MPI' type tag that requires 'long long *' [-Wtype-safety]
532 | MPI_Allreduce(&num_groups, &num_groups_total, 1, MPI_LONG_LONG, MPI_SUM,
| ^~~~~~~~~~~ ~~~~~~~~~~~~~
neutrino/Default/neutrino.c:218:14: warning: argument type 'double (*)[7]' doesn't match specified 'MPI' type tag that requires 'double *' [-Wtype-safety]
218 | MPI_Reduce(&sums, &total_sums, 7, MPI_DOUBLE, MPI_SUM, 0, MPI_COMM_WORLD);
| ^~~~~ ~~~~~~~~~~
neutrino/Default/neutrino.c:218:21: warning: argument type 'double (*)[7]' doesn't match specified 'MPI' type tag that requires 'double *' [-Wtype-safety]
218 | MPI_Reduce(&sums, &total_sums, 7, MPI_DOUBLE, MPI_SUM, 0, MPI_COMM_WORLD);
| ^~~~~~~~~~~ ~~~~~~~~~~
swift.c:1327:19: warning: argument type 'long long (*)[8]' doesn't match specified 'MPI' type tag that requires 'long long *' [-Wtype-safety]
1327 | MPI_Allreduce(&N_long, &N_total, swift_type_count + 1, MPI_LONG_LONG_INT,
| ^~~~~~~ ~~~~~~~~~~~~~~~~~
swift.c:1327:28: warning: argument type 'long long (*)[8]' doesn't match specified 'MPI' type tag that requires 'long long *' [-Wtype-safety]
1327 | MPI_Allreduce(&N_long, &N_total, swift_type_count + 1, MPI_LONG_LONG_INT,
| ^~~~~~~~ ~~~~~~~~~~~~~~~~~
swift.c:1452:19: warning: argument type 'long long (*)[8]' doesn't match specified 'MPI' type tag that requires 'long long *' [-Wtype-safety]
1452 | MPI_Allreduce(&N_long, &N_total, swift_type_count + 1, MPI_LONG_LONG_INT,
| ^~~~~~~ ~~~~~~~~~~~~~~~~~
swift.c:1452:28: warning: argument type 'long long (*)[8]' doesn't match specified 'MPI' type tag that requires 'long long *' [-Wtype-safety]
1452 | MPI_Allreduce(&N_long, &N_total, swift_type_count + 1, MPI_LONG_LONG_INT,
| ^~~~~~~~ ~~~~~~~~~~~~~~~~~