-
Notifications
You must be signed in to change notification settings - Fork 65
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
Conversation
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
@@ -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\""); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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".
There was a problem hiding this comment.
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\"");
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
No description provided.