diff --git a/RTCP/GPUProc/src/Correlator.cl b/RTCP/GPUProc/src/Correlator.cl index 5d41253f40d8ca7cabe4bc7a640ab1309ea913fd..588cf7297c94f1adfe0fc82ca28eb49308f2dd93 100644 --- a/RTCP/GPUProc/src/Correlator.cl +++ b/RTCP/GPUProc/src/Correlator.cl @@ -1,8 +1,14 @@ #define NR_BASELINES (NR_STATIONS * (NR_STATIONS + 1) / 2) #if NR_STATIONS == 288 +#if defined NVIDIA_CUDA +#define BLOCK_SIZE 8 +#elif NR_SAMPLES_PER_CHANNEL % 6 == 0 #define BLOCK_SIZE 6 -#elif defined NVIDIA_CUDA && NR_SAMPLES_PER_CHANNEL % 24 == 0 +#else +#define BLOCK_SIZE 4 +#endif +#elif NR_SAMPLES_PER_CHANNEL % 24 == 0 #define BLOCK_SIZE 24 #else #define BLOCK_SIZE 16