summaryrefslogtreecommitdiff
path: root/test/performance
diff options
context:
space:
mode:
authorCedric Nugteren <web@cedricnugteren.nl>2017-11-21 22:05:08 +0100
committerCedric Nugteren <web@cedricnugteren.nl>2017-11-21 22:05:08 +0100
commit8c9ecd97366980200a58a4b8cd77bd7f8b859abc (patch)
tree6f94e48ac0736aed2c9d594b5e4e10199fa97e52 /test/performance
parent606990af6f7297528dcc44f67ce777e1ba56d2d0 (diff)
Implemented first version of reading JSON files from disk in the client to override parameters
Diffstat (limited to 'test/performance')
-rw-r--r--test/performance/client.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/test/performance/client.cpp b/test/performance/client.cpp
index 076481f7..b2b579b1 100644
--- a/test/performance/client.cpp
+++ b/test/performance/client.cpp
@@ -184,9 +184,6 @@ Arguments<U> Client<T,U>::ParseArguments(int argc, char *argv[], const size_t le
template <typename T, typename U>
void Client<T,U>::PerformanceTest(Arguments<U> &args, const SetMetric set_sizes) {
- // Prints the header of the output table
- PrintTableHeader(args);
-
// Initializes OpenCL and the libraries
auto platform = Platform(args.platform_id);
auto device = Device(platform, args.device_id);
@@ -199,6 +196,12 @@ void Client<T,U>::PerformanceTest(Arguments<U> &args, const SetMetric set_sizes)
if (args.compare_cublas) { cublasSetup(args); }
#endif
+ // Optionally overrides parameters if "CLBLAST_JSON_FILE_OVERRIDE" environmental variable is set
+ OverrideParametersFromJSONFiles(device(), args.precision);
+
+ // Prints the header of the output table
+ PrintTableHeader(args);
+
// Iterates over all "num_step" values jumping by "step" each time
auto s = size_t{0};
while(true) {