diff options
| author | hibby <d@vehibberd.com> | 2026-10-06 21:24:40 +0100 |
|---|---|---|
| committer | hibby <d@vehibberd.com> | 2026-10-06 21:24:40 +0100 |
| commit | c25cbdf6fb6d946175f4335fab77bfea601b56db (patch) | |
| tree | 6f7a94b7b81f999e434f61b73d47e337dfd26bf2 /lib/msk40sync.f90 | |
| parent | 71f5689252c9f13e70e1c24856904475b2307809 (diff) | |
| parent | 0685fcada9f95fe90f70b387cd7d757da8209624 (diff) | |
Merge tag 'debian/3.2.0_rc1+dfsg-2' into debian/trixie-backportsdebian/trixie-backports
tagging wsjtx 3.2.0~rc1+dfsg-2
Diffstat (limited to 'lib/msk40sync.f90')
| -rw-r--r-- | lib/msk40sync.f90 | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/msk40sync.f90 b/lib/msk40sync.f90 index 5a2ca1e7..888673f7 100644 --- a/lib/msk40sync.f90 +++ b/lib/msk40sync.f90 @@ -27,6 +27,13 @@ subroutine msk40sync(cdat,nframes,ntol,delf,navmask,npeaks,fc,fest, & data s8r/1,0,1,1,0,0,0,1/ save first,cb,fs,pi,twopi,dt,s8r,pp + interface + subroutine wsjt_tsan_acquire_msk40_sync() bind(C) + end subroutine wsjt_tsan_acquire_msk40_sync + subroutine wsjt_tsan_release_msk40_sync() bind(C) + end subroutine wsjt_tsan_release_msk40_sync + end interface + if(first) then pi=4.0*atan(1.0) twopi=8.0*atan(1.0) @@ -67,10 +74,13 @@ subroutine msk40sync(cdat,nframes,ntol,delf,navmask,npeaks,fc,fest, & if2=if1+nstep-1 if(id.eq.nthreads) if2=nint(ntol/delf) call msk40_freq_search(cdat,fc,if1,if2,delf,nframes,navmask,cb, & - cdat2(1,id),xm(id),bf(id),cs(1,id),xccs(1,id)) + cdat2(1,id),xm(id),bf(id),cs(1,id),xccs(:,id)) + ! GCC TSan does not observe libgomp's implicit barrier. + call wsjt_tsan_release_msk40_sync() ! write(73,3002) id,if1,if2,nfreqs,nthreads,bf(id),xm(id) !3002 format(5i5,2f10.3) !$OMP END PARALLEL + call wsjt_tsan_acquire_msk40_sync() xmax=xm(1) fest=fc+bf(1) |
