From a6d6a9e64790b4e94dfcc35105e16460c3500dac Mon Sep 17 00:00:00 2001 From: Jan David Mol <mol@astron.nl> Date: Tue, 25 Nov 2014 09:37:11 +0000 Subject: [PATCH] Task #6760: Use SCHED_SPIN and non-RT sync again --- RTCP/Cobalt/GPUProc/src/cuda/SubbandProcs/SubbandProc.cc | 2 +- RTCP/Cobalt/GPUProc/src/cuda/gpu_wrapper.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/RTCP/Cobalt/GPUProc/src/cuda/SubbandProcs/SubbandProc.cc b/RTCP/Cobalt/GPUProc/src/cuda/SubbandProcs/SubbandProc.cc index 6f33de85b0c..300cd256401 100644 --- a/RTCP/Cobalt/GPUProc/src/cuda/SubbandProcs/SubbandProc.cc +++ b/RTCP/Cobalt/GPUProc/src/cuda/SubbandProcs/SubbandProc.cc @@ -227,7 +227,7 @@ namespace LOFAR { // If we delay the reception of the DONE signal from the GPU, // we can't schedule the next batch of work in time. - Thread::ScopedPriority sp(SCHED_RR, 10); + //Thread::ScopedPriority sp(SCHED_RR, 10); queue.synchronize(); } diff --git a/RTCP/Cobalt/GPUProc/src/cuda/gpu_wrapper.h b/RTCP/Cobalt/GPUProc/src/cuda/gpu_wrapper.h index 30fb1b0eadb..831a5e05993 100644 --- a/RTCP/Cobalt/GPUProc/src/cuda/gpu_wrapper.h +++ b/RTCP/Cobalt/GPUProc/src/cuda/gpu_wrapper.h @@ -235,7 +235,7 @@ namespace LOFAR // CU_CTX_SCHED_BLOCKING_SYNC: // Instruct CUDA to block the CPU thread on a synchronization primitive // when waiting for the GPU to finish work. - Context(const Device &device, unsigned int flags = CU_CTX_SCHED_SPIN); + Context(const Device &device, unsigned int flags = CU_CTX_SCHED_YIELD); // Returns the device associated to this context. Device getDevice() const; -- GitLab