From 34314b34fff3eae123ae7e91752bdcfeb441dd23 Mon Sep 17 00:00:00 2001 From: DavidDiazGuerra Date: Fri, 21 Oct 2022 12:35:37 +0200 Subject: [PATCH] Fix bug reported in #39 --- src/gpuRIR_cuda.cu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gpuRIR_cuda.cu b/src/gpuRIR_cuda.cu index 1c804e2..81a05b5 100644 --- a/src/gpuRIR_cuda.cu +++ b/src/gpuRIR_cuda.cu @@ -310,7 +310,7 @@ __global__ void calcAmpTau_kernel(float* g_amp /*[M_src]M_rcv][nb_img_x][nb_img_ sh_orV_src[m*3+2] = g_orV_src[m*3+2]; } } - sh_orV_rcv = &sh_orV_src[M_rcv*3]; + sh_orV_rcv = &sh_orV_src[M_src*3]; } else sh_orV_rcv = sh_orV_src; if (mic_pattern != DIR_OMNI) { if (threadIdx.x==0 && threadIdx.y==0) {