Tests: Added double precision check

This commit is contained in:
Philippe Tillet
2015-07-26 21:35:39 -07:00
parent 4715723e61
commit 5f78dedbcd
8 changed files with 62 additions and 32 deletions

View File

@@ -148,8 +148,11 @@ int main()
std::cout << "---" << std::endl;
std::cout << ">> float" << std::endl;
test_impl<float>(1e-4, elem.first);
std::cout << ">> double" << std::endl;
test_impl<double>(1e-9, elem.first);
if(device.fp64_support())
{
std::cout << ">> double" << std::endl;
test_impl<double>(1e-9, elem.first);
}
std::cout << "---" << std::endl;
}
clblasTeardown();