Skip to content
Snippets Groups Projects
Commit 86eac788 authored by Pietro Incardona's avatar Pietro Incardona
Browse files

Fixing const auto

parent 5c5d77c6
No related branches found
No related tags found
No related merge requests found
Pipeline #4024 failed
......@@ -9,15 +9,18 @@ inline __global__ void translate_fill_prop(vector_type vd_out, vector_type2 vd_i
{
auto p = blockIdx.x * blockDim.x + threadIdx.x;
vd_out.template get<0>(p) = vd_in.template get<0>(p)[0] + vd_in.template get<0>(p)[1];
float a = vd_in.template get<0>(p)[0];
float b = vd_in.template get<0>(p)[1];
vd_out.template get<1>(p)[0] = vd_in.template get<0>(p)[0];
vd_out.template get<1>(p)[1] = vd_in.template get<0>(p)[1];
vd_out.template get<0>(p) = a + b;
vd_out.template get<2>(p)[0][0] = vd_in.template get<0>(p)[0];
vd_out.template get<2>(p)[0][1] = vd_in.template get<0>(p)[1];
vd_out.template get<2>(p)[1][0] = vd_in.template get<0>(p)[0] + vd_in.template get<0>(p)[1];
vd_out.template get<2>(p)[1][1] = vd_in.template get<0>(p)[1] - vd_in.template get<0>(p)[0];
vd_out.template get<1>(p)[0] = a;
vd_out.template get<1>(p)[1] = b;
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_in.template get<0>(p)[0] += 0.01f;
vd_in.template get<0>(p)[1] += 0.01f;
......@@ -57,7 +60,7 @@ int main(int argc, char *argv[])
t.stop();
std::cout << "Time: " << t.getwct() << std::endl;
std::cout << "BW: " << nele*4*19 / t.getwct() * 1e-9 << " GB/s" << std::endl;
std::cout << "BW: " << nele*4*11 / t.getwct() * 1e-9 << " GB/s" << std::endl;
}
}
......
openfpm_data @ 0cef3b81
Subproject commit 1d388743232b43ff75f539492f62d5b8eeb8f7e9
Subproject commit 0cef3b814a89f3a5ae18c3582468f2bbd5b230c9
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment