You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Back in #63904, I've reported that the OpenMP Tools Interface implementation in LLVM fails to transfer the loop type to an attached tool, giving only a limited amount of information.
At some point between the reported issue and #97429, a warning was added for Flang explicitly:
OMP: Warning #189: OMPT: Cannot determine workshare type; using the default (loop) instead. This issue is fixed in an up-to-date compiler.
Back when the issue was not fixed in libomp, the warning was a bit weird, as the issue was not fixed in an up-to-date compiler. However, the issue is now irrelevant, as the information is transferred correctly:
program parallel_sum
use omp_lib
implicit noneinteger(8) :: sum
integer:: i
sum =0call omp_set_num_threads( 2 )
!$omp parallel do reduction(+:sum) default(none)
do i =0, 99
sum = sum + i
end do
!$omp end parallel do
!$omp parallel do reduction(+:sum) default(none) schedule(static)
do i =0, 99
sum = sum + i
end do
!$omp end parallel do
!$omp parallel do reduction(+:sum) default(none) schedule(dynamic)
do i =0, 99
sum = sum + i
end do
!$omp end parallel do
!$omp parallel do reduction(+:sum) default(none) schedule(guided)
do i =0, 99
sum = sum + i
end do
!$omp end parallel do
!$omp parallel do reduction(+:sum) default(none) schedule(auto)
do i =0, 99
sum = sum + i
end do
!$omp end parallel do
!$omp parallel do reduction(+:sum) default(none) schedule(runtime)
do i =0, 99
sum = sum + i
end do
!$omp end parallel doend program parallel_sum
Attaching a basic information dumping tool, the following information is obtained:
Back in #63904, I've reported that the OpenMP Tools Interface implementation in LLVM fails to transfer the loop type to an attached tool, giving only a limited amount of information.
At some point between the reported issue and #97429, a warning was added for Flang explicitly:
Back when the issue was not fixed in
libomp
, the warning was a bit weird, as the issue was not fixed in an up-to-date compiler. However, the issue is now irrelevant, as the information is transferred correctly:Attaching a basic information dumping tool, the following information is obtained:
This matches the information obtained with a C / C++ source code.
Therefore, the warning can probably just be removed.
The text was updated successfully, but these errors were encountered: