- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
>cat omp_private_type.F90
module junk_mod
type junk
integer :: threadid=-1
contains
procedure setID
procedure getID
end type junk
contains
subroutine setID( this, id )
class(junk) :: this
integer :: id
this%threadid = id
end subroutine setID
function getID( this ) result( id )
class(junk) :: this
integer :: id
id = this%threadid
end function getID
end module junk_mod
program test
use omp_lib
use junk_mod
type(junk), allocatable :: junktype
integer nthreads
!$omp parallel default(shared), private(junktype,id,idjunk)
allocate(junktype)
id=omp_get_thread_num()
call junktype%setid(id)
idjunk=junktype%getid()
print *, id, idjunk
deallocate(junktype)
!$omp end parallel
end program test
>ifort -v
Version 12.0.4
>ifort -openmp omp_private_type.F90
0_1855
omp_private_type.F90(27): catastrophic error: **Internal compiler error: internal abort** Please report this error along with the circumstances in which it occurred in a Software Problem Report. Note: File and line given may not be explicit cause of this error.
compilation aborted for omp_private_type.F90 (code 1)
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page