Disable OpenMP in msk144sync. As initially coded it's no improvement.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@7123 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Joe Taylor 2016-09-29 23:44:24 +00:00
parent 13be9cb566
commit 845420f2b2

View File

@ -15,6 +15,7 @@ subroutine msk144sync(cdat,nframes,ntol,delf,navmask,npeaks,fc,fest, &
integer iloc(1)
integer npklocs(npeaks)
integer navmask(nframes) ! defines which frames to average
integer OMP_GET_NUM_THREADS
real cbi(42),cbq(42)
real pkamps(npeaks)
@ -78,14 +79,15 @@ subroutine msk144sync(cdat,nframes,ntol,delf,navmask,npeaks,fc,fest, &
ct2(1:NSPM)=c
ct2(NSPM+1:2*NSPM)=c
nchunk=NSPM/2
!$OMP PARALLEL SHARED(cb,ct2,cc,nchunk) PRIVATE(ish)
!$OMP DO SCHEDULE(DYNAMIC,nchunk)
! nchunk=NSPM/2
! !$OMP PARALLEL SHARED(cb,ct2,cc,nchunk) PRIVATE(ish)
! !$OMP DO SCHEDULE(DYNAMIC,nchunk)
do ish=0,NSPM-1
cc(ish)=dot_product(ct2(1+ish:42+ish)+ct2(337+ish:378+ish),cb(1:42))
enddo
!$OMP END DO NOWAIT
!$OMP END PARALLEL
! !$OMP END DO NOWAIT
! rewind 71; nt=OMP_GET_NUM_THREADS(); write(71,*) nt; flush(71)
! !$OMP END PARALLEL
xcc=abs(cc)
xb=maxval(xcc)*fac