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
[Flang][OpenMP] OpenMP directive DEFAULT (NONE) is set, but a compilation-time error occurs indicating that the variable does not specify data-sharing attribute.
#110442
Open
ohno-fj opened this issue
Sep 29, 2024
· 1 comment
· May be fixed by #112963
Version of flang-new : 20.0.0(2603c8b23be06116bc61bda36fae05b81d906c3f)/AArch64
When building CP2K, the following error is detected. OpenMP directive DEFAULT (NONE) is set, but a compilation-time error occurs indicating that the variable does not specify data-sharing attribute.
The following are a self-made reproducer, Flang-new compilation result.
z1.f90:
subroutinesub( aaa)
real,dimension(*),intent(in)::aaa
integer::ip
real::ccc
!$omp parallel do private(ip,ccc) default(none)
do ip =1, 10
ccc= aaa(ip)
end doendsubroutine subprogram main
real::arg(10)
arg=1.0print*,'pass'end program main
$ flang-new -fopenmp z1.f90
error: Semantic errors in z1.f90
./z1.f90:7:11: error: The DEFAULT(NONE) clause requires that 'aaa' must be listed in a data-sharing attribute clause
ccc= aaa(ip)
^^^
$
The text was updated successfully, but these errors were encountered:
```
Version of flang-new : 20.0.0(2603c8b)/AArch64
```
When building CP2K, the following error is detected. OpenMP directive DEFAULT (NONE) is set, but a compilation-time error occurs indicating that the variable does not specify data-sharing attribute.
The following are a self-made reproducer, Flang-new compilation result.
z1.f90:
subroutinesub( aaa)
real,dimension(*),intent(in)::aaa
integer::ip
real::ccc
!$omp parallel do private(ip,ccc) default(none)
do ip =1, 10
ccc= aaa(ip)
end doendsubroutine subprogram main
real::arg(10)
arg=1.0print*,'pass'end program main
$ flang-new -fopenmp z1.f90
error: Semantic errors in z1.f90
./z1.f90:7:11: error: The DEFAULT(NONE) clause requires that 'aaa' must be listed in a data-sharing attribute clause
ccc= aaa(ip)
^^^
$
When building CP2K, the following error is detected.
OpenMP
directiveDEFAULT (NONE)
is set, but a compilation-time error occurs indicating that the variable does not specifydata-sharing
attribute.The following are a self-made reproducer, Flang-new compilation result.
z1.f90:
The text was updated successfully, but these errors were encountered: