Skip to content

V2021.8 #53

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Jun 25, 2024
Merged

V2021.8 #53

merged 8 commits into from
Jun 25, 2024

Conversation

JuliaRS
Copy link
Contributor

@JuliaRS JuliaRS commented Jun 25, 2024

No description provided.

JuliaRS added 8 commits June 25, 2024 06:23
fix warnings -Wstrict-prototypes

fix warnings due to incorrect declaration classes

fix warnings due to c++11/17 standarts

fix compiler warnings in GPU case

fix build warnings with openMPI

fix cleanning IMB without GPU
@JuliaRS JuliaRS self-assigned this Jun 25, 2024
@JuliaRS JuliaRS merged commit 4625038 into master Jun 25, 2024
@JuliaRS JuliaRS deleted the v2021.8 branch June 25, 2024 11:41
@@ -342,7 +342,11 @@ Input variables:
break;

case SAMPLE_FAILED_INT_OVERFLOW:
sprintf(aux_string + offset, " int-overflow.; The production rank*size caused int overflow for given sample");
#ifdef MPI1
sprintf(aux_string + offset, " int-overflow; The production rank*size caused int overflow for given sample; use flag \"-data_type double\"");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems like there is aux_string overflow in overflow message. aux_string is 104 bytes, but the string " int-overflow; The production rank*size caused int overflow for given sample; use flag "-data_type double"" is 106 bytes

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Sergei-Lebedev did you face with problem ? Please give me scenario if "yes".

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just gcc compilation fails with two errors

../src_c/IMB_chk_diff.c:1065:13: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation]
 1065 |             if (ranks[i + 1] == rank && pos2 - pos1 + 1 == (lengths[i] + (lengths[i + 1])))
      |             ^~
../src_c/IMB_chk_diff.c:1066:41: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 1066 |                 c_info->reccnt[rank]++; i++;
      |                                         ^
/tmp/ompi/install/bin/mpicc -g -O0 -Wall -Werror -DCHECK=1 -Ihelpers -I../src_c -DMPI1 -I. -DMPI1 -c -o MPI1/CPU/IMB_warm_up.o ../src_c/IMB_warm_up.c
/tmp/ompi/install/bin/mpicxx -DCHECK=1 -Ihelpers -I../src_c -DMPI1 -I. -g -O0 -Wall -Wextra -Werror -DMPI1 -c -o MPI1/CPU/MPI1_suite.o MPI1/MPI1_suite.cpp
/tmp/ompi/install/bin/mpicxx -DCHECK=1 -Ihelpers -I../src_c -DMPI1 -I. -g -O0 -Wall -Wextra -Werror -DMPI1 -c -o MPI1/CPU/MPI1_benchmark.o MPI1/MPI1_benchmark.cpp
../src_c/IMB_output.c: In function ‘IMB_display_times’:
../src_c/IMB_output.c:346:152: error: ‘ int-overflow; The productio...’ directive writing 106 bytes into a region of size 104 [-Werror=format-overflow=]
  346 |                 sprintf(aux_string + offset, " int-overflow; The production rank*size caused int overflow for given sample; use flag \"-data_type double\"");
      |                                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
../src_c/IMB_output.c:346:17: note: ‘sprintf’ output 107 bytes into a destination of size 104
  346 |                 sprintf(aux_string + offset, " int-overflow; The production rank*size caused int overflow for given sample; use flag \"-data_type double\"");
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Copy link
Contributor Author

@JuliaRS JuliaRS Jun 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Sergei-Lebedev please try to use branch from #54 and let me know is it works for you or not.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRS, thanks for the quick fix, it helped

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.

2 participants