diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2017-11-02 21:47:14 +0100 |
---|---|---|
committer | Cedric Nugteren <web@cedricnugteren.nl> | 2017-11-02 21:47:14 +0100 |
commit | 9b0a435fb00b845b875590be90acffcd4f3bb009 (patch) | |
tree | 754b523789ef717619b540925c97e7167ba28f06 /src/utilities | |
parent | 73272ab97dbd5abe757f6558c9b89665c5ac99d0 (diff) |
Integrated the GEMM routine tuner for kernel selection; added first tuning results
Diffstat (limited to 'src/utilities')
-rw-r--r-- | src/utilities/timing.hpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/utilities/timing.hpp b/src/utilities/timing.hpp index 423e6e2b..bfad6147 100644 --- a/src/utilities/timing.hpp +++ b/src/utilities/timing.hpp @@ -73,16 +73,17 @@ void PrintTimingsToFileAsJSON(const std::string &filename, const Device& device, const Platform& platform, const std::vector<std::pair<std::string,std::string>> &metadata, const std::vector<TuningResult>& tuning_results) { + printf("[ STATUS ] Writing results to '%s'\n", filename.c_str()); auto file = fopen(filename.c_str(), "w"); fprintf(file, "{\n"); for (auto &datum: metadata) { fprintf(file, " \"%s\": \"%s\",\n", datum.first.c_str(), datum.second.c_str()); } fprintf(file, " \"platform_version\": \"%s\",\n", platform.Version().c_str()); - fprintf(file, " \"device_name\": \"%s\",\n", GetDeviceName(device).c_str()); - fprintf(file, " \"device_vendor\": \"%s\",\n", platform.Vendor().c_str()); - fprintf(file, " \"device_type\": \"%s\",\n", device.Type().c_str()); - fprintf(file, " \"device_architecture\": \"%s\",\n", GetDeviceArchitecture(device).c_str()); + fprintf(file, " \"clblast_device_name\": \"%s\",\n", GetDeviceName(device).c_str()); + fprintf(file, " \"clblast_device_vendor\": \"%s\",\n", platform.Vendor().c_str()); + fprintf(file, " \"clblast_device_type\": \"%s\",\n", device.Type().c_str()); + fprintf(file, " \"clblast_device_architecture\": \"%s\",\n", GetDeviceArchitecture(device).c_str()); fprintf(file, " \"device_core_clock\": \"%zu\",\n", device.CoreClock()); fprintf(file, " \"device_compute_units\": \"%zu\",\n", device.ComputeUnits()); fprintf(file, " \"results\": [\n"); |