From 208a8e217caccaa5c0744c12640d192334357e3e Mon Sep 17 00:00:00 2001 From: Incardona Pietro <incardon@mpi-cbg.de> Date: Mon, 20 Dec 2021 00:07:50 +0100 Subject: [PATCH] Fixing membw for ratio 8:1 --- example/Performance/memBW/main.cu | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/example/Performance/memBW/main.cu b/example/Performance/memBW/main.cu index 0738bcf4f..1b77af499 100644 --- a/example/Performance/memBW/main.cu +++ b/example/Performance/memBW/main.cu @@ -10,17 +10,17 @@ __global__ void translate_fill_prop_write(vector_type vd_out, vector_type2 vd_in auto p = blockIdx.x * blockDim.x + threadIdx.x; float a = vd_in.template get<0>(p)[0]; - float b = vd_in.template get<0>(p)[1]; - vd_out.template get<0>(p) = a + b; + vd_out.template get<0>(p) = a; vd_out.template get<1>(p)[0] = a; - vd_out.template get<1>(p)[1] = b; + vd_out.template get<1>(p)[1] = a; vd_out.template get<2>(p)[0][0] = a; - vd_out.template get<2>(p)[0][1] = b; - vd_out.template get<2>(p)[1][0] = a + b; - vd_out.template get<2>(p)[1][1] = b - a; + vd_out.template get<2>(p)[0][1] = a; + vd_out.template get<2>(p)[1][0] = a; + vd_out.template get<2>(p)[1][1] = a; + vd_in.template get<0>(p)[1] = a; } @@ -39,8 +39,8 @@ __global__ void translate_fill_prop_read(vector_type vd_out, vector_type2 vd_in) float f = vd_out.template get<2>(p)[1][0]; float g = vd_out.template get<2>(p)[1][1]; - vd_in.template get<0>(p)[0] = a+b+c+d; - vd_in.template get<0>(p)[1] = e+f+g; + float h = vd_in.template get<0>(p)[0]; + vd_in.template get<0>(p)[1] = a+b+c+d+e+f+g+h; } // Arrays -- GitLab