diff --git a/main.cpp b/main.cpp index 4fb35c3..c31df9c 100644 --- a/main.cpp +++ b/main.cpp @@ -72,6 +72,11 @@ int main(int argc, char *argv[]) template void run() { + if (sizeof(T) == sizeof(float)) + std::cout << "Precision: float" << std::endl; + else + std::cout << "Precision: double" << std::endl; + // Create host vectors std::vector a(ARRAY_SIZE, 1.0); std::vector b(ARRAY_SIZE, 2.0);