diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2017-11-19 16:31:08 +0100 |
---|---|---|
committer | Cedric Nugteren <web@cedricnugteren.nl> | 2017-11-19 16:31:08 +0100 |
commit | a3a8b44f598b3eca18ab226112bf5c2bc3b19df8 (patch) | |
tree | d9302e2e174817b91142739c254211cef0317acb /src/tuning/tuning.cpp | |
parent | c6690df8962dc48112558c09531eeda9d93d1e97 (diff) |
Some fixed for the new auto-tuner to be compatible with the Python scripts
Diffstat (limited to 'src/tuning/tuning.cpp')
-rw-r--r-- | src/tuning/tuning.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/tuning/tuning.cpp b/src/tuning/tuning.cpp index 5db7d2fb..6804fbce 100644 --- a/src/tuning/tuning.cpp +++ b/src/tuning/tuning.cpp @@ -37,13 +37,17 @@ void PrintTimingsToFileAsJSON(const std::string &filename, 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, " \"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_vendor\": \"%s\",\n", platform.Vendor().c_str()); fprintf(file, " \"clblast_device_architecture\": \"%s\",\n", GetDeviceArchitecture(device).c_str()); + fprintf(file, " \"clblast_device_name\": \"%s\",\n", GetDeviceName(device).c_str()); + fprintf(file, " \"device\": \"%s\",\n", device.Name().c_str()); + fprintf(file, " \"platform_version\": \"%s\",\n", platform.Version().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_core_clock\": \"%zu\",\n", device.CoreClock()); fprintf(file, " \"device_compute_units\": \"%zu\",\n", device.ComputeUnits()); + fprintf(file, " \"device_extra_info\": \"%s\",\n", device.GetExtraInfo().c_str()); fprintf(file, " \"results\": [\n"); // Loops over all results |