summaryrefslogtreecommitdiff
path: root/lib/msk40sync.f90
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2026-09-26 23:24:03 +0200
committerChristoph Berg <myon@debian.org>2026-09-26 23:24:03 +0200
commit059831534c7e884f0a607ed86b582fd00d821731 (patch)
tree76bcb67a78f8aa2654fd34c2ad801a62136b0170 /lib/msk40sync.f90
parentd83a420f0517d7fc47aeb288a6a0cf4891784fcc (diff)
New upstream version 3.2.0~rc1+dfsgupstream/3.2.0_rc1+dfsg
Diffstat (limited to 'lib/msk40sync.f90')
-rw-r--r--lib/msk40sync.f9012
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)