- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
dear all
ifort produces a wrong error with the following codethanks
v
ifort -v
ifort version 14.0.1
cat ifort_14.0.1_copyprivate.f90
program test
use omp_lib
implicit none
integer :: b
!$omp parallel
!$omp end parallel
!$omp parallel private (b)
!$omp single
b = omp_get_num_threads ()
!$omp end single copyprivate (b)
write(*,*) b
!$omp end parallel
end program test
ifort -openmp ifort_14.0.1_copyprivate.f90
ifort_14.0.1_copyprivate.f90(12): error #7982: Variables in the COPYPRIVATE list must be PRIVATE in the enclosing parallel region.
!$omp end single copyprivate (b)
--------------------------------^
compilation aborted for ifort_14.0.1_copyprivate.f90 (code 1)
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I got the same error; the error goes away when lines 6 and 7
[fortran]!$omp parallel
!$omp end parallel[/fortran]
are commented out or removed.
[bash]ifort -v
ifort version 13.1.0[/bash]
and
[bash]ifort -v
ifort version 14.0.1[/bash]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for notifying us about this error. I reported this to Development and will update this post as I hear more.
(Internal tracking id: DPD200250671)
(Resolution Update on 09/15/2014): This defect is fixed in the Intel® Parallel Studio XE 2015 Initial Release (2015.0.090 - Linux)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I confirmed this issue is resolved in the Intel® Parallel Studio XE 2015 release for Linux (Version 15.0.0.090 Build 20140723) now available from the Intel® Registration Center.
![](/skins/images/98E68944C1FF703B8AC50091329B92AF/responsive_peak/images/icon_anonymous_message.png)
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page