-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
[Flang][OpenMP] Compilation abnormally terminates when pointer (first argument) of cray pointer is specified in threadprivate directive #123535
Comments
@llvm/issue-subscribers-flang-ir Author: None (ohno-fj)
```
Version of flang : 20.0.0(f5a35a3)/AArch64
```
When The following are the test program, Flang, Gfortran and ifx compilation/execution result. snfm_omp_default_peta_03_2.f90: program main
pointer (ip1,var1)
!$OMP threadprivate(ip1)
call sub()
contains
subroutine sub()
!$omp parallel default(private)
if (1.eq.2) then
if (ip1.ne.1) print *,'error'
endif
!$omp endparallel
print *,"pass"
end subroutine sub
end program main
|
…atization (#127754) Issue: Compilation abnormally terminates in parallel default(private) Documentation reference: A threadprivate variable must not appear as the base variable of a list item in any clause except for the copyin and copyprivate clauses Explanation: From the reference, the threadprivate symbols cannot be used in the DSA clauses, which in turn means, the symbol can be skipped for default privatization Fixes #123535
@llvm/issue-subscribers-flang-frontend Author: None (ohno-fj)
```
Version of flang : 20.0.0(f5a35a3)/AArch64
```
When The following are the test program, Flang, Gfortran and ifx compilation/execution result. snfm_omp_default_peta_03_2.f90: program main
pointer (ip1,var1)
!$OMP threadprivate(ip1)
call sub()
contains
subroutine sub()
!$omp parallel default(private)
if (1.eq.2) then
if (ip1.ne.1) print *,'error'
endif
!$omp endparallel
print *,"pass"
end subroutine sub
end program main
|
When
pointer (first argument)
ofcray pointer
is specified inthreadprivate
directive, a compilation terminates abnormally.The following are the test program, Flang, Gfortran and ifx compilation/execution result.
snfm_omp_default_peta_03_2.f90:
The text was updated successfully, but these errors were encountered: