Revert "Revert "Remove option for float - only use doubles for now""

This reverts commit 903a66b2e9.
This commit is contained in:
Tom Deakin 2015-07-16 17:01:48 +01:00
parent 903a66b2e9
commit c31644d001

View File

@ -12,7 +12,6 @@
#define DATATYPE double #define DATATYPE double
unsigned int ARRAY_SIZE = 50000000; unsigned int ARRAY_SIZE = 50000000;
bool useFloat = false;
#define NTIMES 10 #define NTIMES 10
#define MIN(a,b) ((a) < (b)) ? (a) : (b) #define MIN(a,b) ((a) < (b)) ? (a) : (b)
@ -386,10 +385,6 @@ void parseArguments(int argc, char *argv[])
exit(1); exit(1);
} }
} }
else if (!strcmp(argv[i], "--float"))
{
useFloat = true;
}
else if (!strcmp(argv[i], "--help") || !strcmp(argv[i], "-h")) else if (!strcmp(argv[i], "--help") || !strcmp(argv[i], "-h"))
{ {
std::cout << std::endl; std::cout << std::endl;
@ -399,7 +394,6 @@ void parseArguments(int argc, char *argv[])
std::cout << " --list List available devices" << std::endl; std::cout << " --list List available devices" << std::endl;
std::cout << " --device INDEX Select device at INDEX" << std::endl; std::cout << " --device INDEX Select device at INDEX" << std::endl;
std::cout << " -s --arraysize SIZE Use SIZE elements in the array" << std::endl; std::cout << " -s --arraysize SIZE Use SIZE elements in the array" << std::endl;
std::cout << " --float Enable use of floats instead of doubles" << std::endl;
std::cout << std::endl; std::cout << std::endl;
exit(0); exit(0);
} }