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

Fixing MemBW

parent c1b608c3
No related branches found
No related tags found
No related merge requests found
Pipeline #4050 failed
......@@ -143,7 +143,7 @@ void check_read(in_type & in, out_type & out)
if (success == false)
{
std::cout << "FAIL READ " << i << in.template get<0>(i)[1] << " != " << a+b+c+d+e+f+g+h << std::endl;
std::cout << "FAIL READ " << i << " " << in.template get<0>(i)[1] << " != " << a+b+c+d+e+f+g+h << std::endl;
exit(1);
}
}
......@@ -202,6 +202,12 @@ int main(int argc, char *argv[])
check_write(in,out);
for (int i = 0 ; i < 16777216 ; i++)
{
in.template get<0>(i)[0] = i;
in.template get<0>(i)[1] = i+100.0;
}
for (int i = 0 ; i < 110 ; i++)
{
cudaDeviceSynchronize();
......@@ -277,6 +283,12 @@ int main(int argc, char *argv[])
double dev_write_lamb = 0.0;
standard_deviation(res,mean_write_lamb,dev_write_lamb);
for (int i = 0 ; i < 16777216 ; i++)
{
in.template get<0>(i)[0] = i;
in.template get<0>(i)[1] = i+100.0;
}
for (int i = 0 ; i < 110 ; i++)
{
cudaDeviceSynchronize();
......
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