Display precision in the header output
This commit is contained in:
parent
80955ff2dc
commit
7ba0b8fc18
@ -162,7 +162,7 @@ int main(int argc, char *argv[])
|
||||
std::cout
|
||||
<< "GPU-STREAM" << std::endl
|
||||
<< "Version: " << VERSION_STRING << std::endl
|
||||
<< "Implementation: CUDA" << std::endl << std::endl;
|
||||
<< "Implementation: CUDA" << std::endl;
|
||||
|
||||
try
|
||||
{
|
||||
@ -170,6 +170,11 @@ int main(int argc, char *argv[])
|
||||
|
||||
if (NTIMES < 2) throw badntimes();
|
||||
|
||||
std::cout << "Precision: ";
|
||||
if (useFloat) std::cout << "float";
|
||||
else std::cout << "double";
|
||||
std::cout << std::endl << std::endl;
|
||||
|
||||
if (ARRAY_SIZE % 1024 != 0)
|
||||
{
|
||||
unsigned int OLD_ARRAY_SIZE = ARRAY_SIZE;
|
||||
|
||||
@ -127,7 +127,7 @@ int main(int argc, char *argv[])
|
||||
std::cout
|
||||
<< "GPU-STREAM" << std::endl
|
||||
<< "Version: " << VERSION_STRING << std::endl
|
||||
<< "Implementation: OpenCL" << std::endl << std::endl;
|
||||
<< "Implementation: OpenCL" << std::endl;
|
||||
|
||||
try
|
||||
{
|
||||
@ -135,6 +135,13 @@ int main(int argc, char *argv[])
|
||||
|
||||
if (NTIMES < 2) throw badntimes();
|
||||
|
||||
std::cout << "Precision: ";
|
||||
if (useFloat) std::cout << "float";
|
||||
else std::cout << "double";
|
||||
std::cout << std::endl << std::endl;
|
||||
|
||||
|
||||
|
||||
// Open the Kernel source
|
||||
std::ifstream in("ocl-stream-kernels.cl");
|
||||
if (!in.is_open()) throw badfile();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user