mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-13 15:41:50 -05:00
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:
parent
13be9cb566
commit
845420f2b2
@ -15,6 +15,7 @@ subroutine msk144sync(cdat,nframes,ntol,delf,navmask,npeaks,fc,fest, &
|
|||||||
integer iloc(1)
|
integer iloc(1)
|
||||||
integer npklocs(npeaks)
|
integer npklocs(npeaks)
|
||||||
integer navmask(nframes) ! defines which frames to average
|
integer navmask(nframes) ! defines which frames to average
|
||||||
|
integer OMP_GET_NUM_THREADS
|
||||||
|
|
||||||
real cbi(42),cbq(42)
|
real cbi(42),cbq(42)
|
||||||
real pkamps(npeaks)
|
real pkamps(npeaks)
|
||||||
@ -78,14 +79,15 @@ subroutine msk144sync(cdat,nframes,ntol,delf,navmask,npeaks,fc,fest, &
|
|||||||
ct2(1:NSPM)=c
|
ct2(1:NSPM)=c
|
||||||
ct2(NSPM+1:2*NSPM)=c
|
ct2(NSPM+1:2*NSPM)=c
|
||||||
|
|
||||||
nchunk=NSPM/2
|
! nchunk=NSPM/2
|
||||||
!$OMP PARALLEL SHARED(cb,ct2,cc,nchunk) PRIVATE(ish)
|
! !$OMP PARALLEL SHARED(cb,ct2,cc,nchunk) PRIVATE(ish)
|
||||||
!$OMP DO SCHEDULE(DYNAMIC,nchunk)
|
! !$OMP DO SCHEDULE(DYNAMIC,nchunk)
|
||||||
do ish=0,NSPM-1
|
do ish=0,NSPM-1
|
||||||
cc(ish)=dot_product(ct2(1+ish:42+ish)+ct2(337+ish:378+ish),cb(1:42))
|
cc(ish)=dot_product(ct2(1+ish:42+ish)+ct2(337+ish:378+ish),cb(1:42))
|
||||||
enddo
|
enddo
|
||||||
!$OMP END DO NOWAIT
|
! !$OMP END DO NOWAIT
|
||||||
!$OMP END PARALLEL
|
! rewind 71; nt=OMP_GET_NUM_THREADS(); write(71,*) nt; flush(71)
|
||||||
|
! !$OMP END PARALLEL
|
||||||
|
|
||||||
xcc=abs(cc)
|
xcc=abs(cc)
|
||||||
xb=maxval(xcc)*fac
|
xb=maxval(xcc)*fac
|
||||||
|
Loading…
Reference in New Issue
Block a user